summaryrefslogtreecommitdiff
path: root/extra/ypserv/PKGBUILD
blob: f3dd919f7500bf571f44c1d967169ea3d0b7339b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 91699 2010-09-27 17:41:23Z bisson $
# Maintainer: judd <jvinet@zeroflux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=ypserv
pkgver=2.24
pkgrel=1
pkgdesc='Linux NIS Server'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.linux-nis.org/nis/ypserv/'
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.gz" \
        'yppasswd'
        'ypserv')
sha1sums=('3ae53fe5e047b3bf6a1e407424311ec6e806a95d'
          '96192b628afe36709496e4801d016c4bff343f0e'
          'b625381bfa6cf62345377a7df30b8f45935206c5')

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install

	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
}