PKGBUILDs/extra/ypserv/PKGBUILD
2009-10-10 23:11:32 -05:00

30 lines
1 KiB
Bash

# Maintainer: judd <jvinet@zeroflux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=ypserv
pkgver=2.20
pkgrel=1
pkgdesc="NIS (formerly YP) provides a simple network lookup service consisting of databases and processes"
arch=('arm')
url="http://www.linux-nis.org"
license=('GPL2')
depends=('gdbm' 'openslp')
backup=('etc/ypserv.conf' 'etc/netgroup' 'var/yp/securenets')
source=(ftp://ftp.kernel.org/pub/linux/utils/net/NIS/$pkgname-$pkgver.tar.bz2 \
ypserv
yppasswd)
md5sums=('6dd4f796a98089f87ed175d880bcd3a8'
'c40befe5932f1b42efaced6b46809303'
'4bc84c48ed1bb9659698853acb5cfd76')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
install -D -m644 etc/netgroup $pkgdir/etc/netgroup
install -D -m644 etc/ypserv.conf $pkgdir/etc/ypserv.conf
install -D -m644 etc/securenets $pkgdir/var/yp/securenets
install -D -m755 ../ypserv $pkgdir/etc/rc.d/ypserv
install -D -m755 ../yppasswd $pkgdir/etc/rc.d/yppasswd
}