updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / netkit-rwho-debian / PKGBUILD
blobac5585643e3dfddf5b9f439f93f5b1e6385de03b
1 pkgname=netkit-rwho-debian
2 pkgver=0.17
3 pkgrel=2
4 arch=('i686' 'x86_64')
5 license=('GPL')
6 pkgdesc="Remote who"
7 depends=('glibc')
8 conflicts=('netkit-rwho')
9 url="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
10 install=rwhod.install
11 backup=(etc/conf.d/rwhod)
12 source=(http://ftp.de.debian.org/debian/pool/main/n/netkit-rwho/netkit-rwho_0.17.orig.tar.gz http://ftp.de.debian.org/debian/pool/main/n/netkit-rwho/netkit-rwho_$pkgver-12.diff.gz rwhod.rc rwhod.conf)
13 md5sums=('0f71620d45d472f89134ba0d74242e75' 'ccbb57e61d8594aa37c33cc906071ce1' '5ab5042d60e508658e0a676d13556acb' 'd052293ac9c851ba8093338c530b349e')
15 build() {
16   cd $srcdir/netkit-rwho-$pkgver
17   patch -Np1 -i ../netkit-rwho_$pkgver-12.diff
18   ./configure --prefix=/usr --installroot=$pkgdir
19   make || return 1
20   mkdir -p $pkgdir/usr/{bin,sbin,man/man1,man/man8} $pkgdir/etc/rc.d
21   make install || return 1
22   mkdir -p $pkgdir/var/spool/rwho
23   install -m755 $srcdir/rwhod.rc $pkgdir/etc/rc.d/rwhod || return 1
24   install -m644 -D $srcdir/rwhod.conf $pkgdir/etc/conf.d/rwhod || return 1
27 # end of file #