blob: 6c17791a4aaf6787ac6dcd6a6ca21c49257197be (
plain)
1 # Description: Berkeley Internet Name Domain Service.
2 # URL: https://www.isc.org/bind
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Daniel Mueller, daniel at danm dot de
5 # Depends on: python-ply
6
7 name=bind
8 version=9.14.7
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
16 ./configure \
17 --prefix=/usr \
18 --enable-ipv6 \
19 --enable-threads \
20 --with-openssl=yes \
21 --sysconfdir=/etc
22
23 make && make DESTDIR=$PKG install
24
25 install -d $PKG/var/{named,run/named}
26
27 install -D -m755 $SRC/named $PKG/etc/rc.d/named
28 install -D -m640 -gnamed $SRC/named.conf $PKG/etc/named.conf
29 install -m640 -gnamed $SRC/named.root $SRC/db.* $PKG/var/named/
30
31 chown root:named $PKG/var/named
32 chmod 1770 $PKG/var/named
33
34 touch $PKG/etc/rndc.{conf,key}
35 chown root:named $PKG/var/run/named $PKG/etc/rndc.{conf,key}
36 chmod 770 $PKG/var/run/named
37 chmod 640 $PKG/etc/rndc.{conf,key}
38 touch $PKG/var/run/named/named.pid
39
40 rm -f $PKG/usr/bin/{dig,host}
41
42 # fix FS#1153
43 rm -f $PKG/usr/sbin/dnssec-{checkds,coverage}
44 rm -rf $PKG/usr/share/man/man8/dnssec-{checkds,coverage}.8
45
46 rm -rf $PKG/usr/share/man/man1
47
48 chown named:named $PKG/var/run/named/named.pid
49 }
|