blob: 8afbe3ed9447bcb8c148533e778191ea4ee8685d (
plain)
1 # Description: Berkeley Internet Name Domain Service.
2 # URL: http://www.isc.org/products/BIND/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Daniel Mueller, daniel at danm dot de
5 # Depends on:
6
7 name=bind
8 version=9.9.3-P2
9 release=1
10 source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.gz \
11 named.root db.0.0.127 db.localhost db.ip6.arpa named named.conf)
12
13 build() {
14 cd $name-$version
15 sed -i -e 's|\@LN\@ \${man3}/|ln -s |g' lib/lwres/man/Makefile.in
16
17 ./configure \
18 --prefix=/usr \
19 --enable-ipv6 \
20 --enable-threads \
21 --with-openssl=yes \
22 --sysconfdir=/etc \
23 --mandir=/usr/man
24
25 make && make DESTDIR=$PKG install
26
27 install -d $PKG/var/{named,run/named}
28
29 install -D -m755 $SRC/named $PKG/etc/rc.d/named
30 install -D -m640 -gnamed $SRC/named.conf $PKG/etc/named.conf
31 install -m640 -gnamed $SRC/named.root $SRC/db.* $PKG/var/named/
32
33 chown root:named $PKG/var/named
34 chmod 1770 $PKG/var/named
35
36 touch $PKG/etc/rndc.{conf,key}
37 chown root:named $PKG/var/run/named $PKG/etc/rndc.{conf,key}
38 chmod 770 $PKG/var/run/named
39 chmod 640 $PKG/etc/rndc.{conf,key}
40 touch $PKG/var/run/named/named.pid
41
42 rm -f $PKG/usr/bin/{dig,host}
43 rm -rf $PKG/usr/man/man1
44
45 chown named:named $PKG/var/run/named/named.pid
46 }
|