# $Id: PKGBUILD 66970 2012-03-03 00:47:31Z seblu $ # Maintainer: Sébastien Luttringer # Contributor: Kaiting Chen # Contributor: Mark Smith pkgname=radvd pkgver=1.8.5 pkgrel=1 pkgdesc='IPv6 Router Advertisement Daemon' url='http://www.litech.org/radvd/' license=('custom') depends=('glibc') arch=('i686' 'x86_64' 'mips64el') backup=('etc/radvd.conf' 'etc/conf.d/radvd') source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.gz" "$pkgname.rc" "$pkgname.conf" "$pkgname.service") sha1sums=('344c145bd29938b7eefb0210cf92bf18df3e191d' '7b187db1f0ba2897cc07ea14233c079593b69ef0' 'd7755ac7e752452e5ac92d2bfd970db00525902d' 'd95dc4d650a086641d62bf42806669e0a407d1df') build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --with-pidfile=/run/radvd.pid \ --mandir=/usr/share/man make } package() { cd ${pkgname}-${pkgver} make DESTDIR="$pkgdir" install # install default config install -D -m 644 radvd.conf.example "$pkgdir/etc/radvd.conf" # install license install -D -m 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT" # install initscripts & systemd files install -D -m 755 ../$pkgname.rc "$pkgdir/etc/rc.d/$pkgname" install -D -m 644 ../$pkgname.conf "$pkgdir/etc/conf.d/$pkgname" install -D -m 644 ../$pkgname.service \ "$pkgdir/lib/systemd/system/$pkgname.service" } # vim:set ts=2 sw=2 ft=sh et: