blob: f334c37f447a1c365378a18f64b5481bef9e97c5 (
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.6.2
9 release=1
10 source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.gz \
11 ftp://ftp.rs.internic.net/domain/named.root \
12 db.0.0.127 db.localhost db.ip6.arpa named named.conf)
13
14 build() {
15 cd $name-$version
16 sed -i -e 's|\@LN\@ \${man3}/|ln -s |g' lib/lwres/man/Makefile.in
17
18 ./configure \
19 --prefix=/usr \
20 --enable-ipv6 \
21 --enable-threads \
22 --with-openssl=yes \
23 --sysconfdir=/etc \
24 --mandir=/usr/man
25
26 make && make DESTDIR=$PKG install
27
28 install -d $PKG/var/{named,run/named}
29
30 install -D -m755 $SRC/named $PKG/etc/rc.d/named
31 install -D -m640 -gnamed $SRC/named.conf $PKG/etc/named.conf
32 install -m640 -gnamed $SRC/named.root $SRC/db.* $PKG/var/named/
33
34 chown root:named $PKG/var/named
35 chmod 1770 $PKG/var/named
36
37 touch $PKG/etc/rndc.{conf,key}
38 chown root:named $PKG/var/run/named $PKG/etc/rndc.{conf,key}
39 chmod 770 $PKG/var/run/named
40 chmod 640 $PKG/etc/rndc.{conf,key}
41 touch $PKG/var/run/named/named.pid
42
43 rm -f $PKG/usr/bin/{dig,host}
44 rm -rf $PKG/usr/man/man1
45
46 chown named:named $PKG/var/run/named/named.pid
47 }
|