summaryrefslogtreecommitdiff
path: root/extra/ypbind-mt/PKGBUILD
blob: 279d11481a2ec596c81a12f16cb0a3fb7cfeaf88 (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
37
38
39
40
41
42
43
44
45
46
# $Id: PKGBUILD 138068 2011-09-15 22:41:35Z tomegun $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=ypbind-mt
pkgver=1.33
pkgrel=3
pkgdesc='Linux NIS daemon'
url='http://www.linux-nis.org/nis/ypbind-mt/'
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
makedepends=('networkmanager')
depends=('rpcbind' 'openslp' 'dbus-glib')
optdepends=('yp-tools: to set a domain name')
backup=('etc/yp.conf' 'etc/conf.d/ypbind' 'etc/conf.d/nisdomainname')
source=("ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${pkgname}-${pkgver}.tar.gz"
        'nisdomainname.conf'
        'ypbind.conf'
        'ypbind')
sha1sums=('49f578d15aa5d4f4130a2e96cd9c0e519263fc88'
          'eb00aecc0679e25a36b007e797f4468b40cb3e8e'
          '07dee386d001fb9e9e6b76dda8af5b2092e5a4a2'
          '112fc2aedfe3f761325b69647b7938bc1be5bfcd')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	./configure \
		--prefix=/usr \
		--enable-dbus-nm \

	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	make DESTDIR="${pkgdir}" install

	install -D -m644 etc/yp.conf "${pkgdir}"/etc/yp.conf
	install -D -m755 ../ypbind "${pkgdir}"/etc/rc.d/ypbind
	install -D -m644 ../ypbind.conf "${pkgdir}"/etc/conf.d/ypbind
	install -D -m644 ../nisdomainname.conf "${pkgdir}"/etc/conf.d/nisdomainname
	install -d -m755 "${pkgdir}"/var/yp/binding
}