blob: 7876454136c487aceb1355bafbaf1e7632ff17ef (
plain)
1 # Description: Berkeley Internet Name Domain Service
2 # URL: https://www.isc.org/bind/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4
5 name=bind
6 version=9.18.10
7 release=1
8 source=(https://downloads.isc.org/isc/bind9/$version/$name-$version.tar.xz
9 named.root db.0.0.127 db.localhost db.ip6.arpa named named.conf)
10
11 build() {
12 cd $name-$version
13
14 ./configure \
15 --prefix=/usr \
16 --enable-ipv6 \
17 --enable-threads \
18 --with-openssl=yes \
19 --sysconfdir=/etc
20
21 make && make DESTDIR=$PKG install
22
23 install -d $PKG/var/{named,run/named}
24
25 install -D -m755 $SRC/named $PKG/etc/rc.d/named
26 install -D -m640 -gnamed $SRC/named.conf $PKG/etc/named.conf
27 install -m640 -gnamed $SRC/named.root $SRC/db.* $PKG/var/named/
28
29 chown root:named $PKG/var/named
30 chmod 1770 $PKG/var/named
31
32 touch $PKG/etc/rndc.{conf,key}
33 chown root:named $PKG/var/run/named $PKG/etc/rndc.{conf,key}
34 chmod 770 $PKG/var/run/named
35 chmod 640 $PKG/etc/rndc.{conf,key}
36 touch $PKG/var/run/named/named.pid
37
38 rm $PKG/usr/bin/{dig,host}
39
40 rm -r $PKG/usr/share/man/man1
41
42 chown named:named $PKG/var/run/named/named.pid
43
44 # remove delv and nslookup, provided by bindutils
45 rm $PKG/usr/bin/{delv,nslookup}
46 }
|