2008-03-16 21:30:26 +01:00
|
|
|
# Description: Berkeley Internet Name Domain Service.
|
|
|
|
# URL: http://www.isc.org/products/BIND/
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Daniel Mueller, daniel at danm dot de
|
|
|
|
# Depends on:
|
2006-11-14 00:01:22 +01:00
|
|
|
|
|
|
|
name=bind
|
2015-02-27 23:31:18 +01:00
|
|
|
version=9.9.7
|
2013-05-31 21:28:27 +02:00
|
|
|
release=1
|
2006-11-14 00:01:22 +01:00
|
|
|
source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.gz \
|
2013-02-12 22:05:20 +01:00
|
|
|
named.root db.0.0.127 db.localhost db.ip6.arpa named named.conf)
|
2006-11-14 00:01:22 +01:00
|
|
|
|
|
|
|
build() {
|
2008-03-16 21:30:26 +01:00
|
|
|
cd $name-$version
|
|
|
|
sed -i -e 's|\@LN\@ \${man3}/|ln -s |g' lib/lwres/man/Makefile.in
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--enable-threads \
|
|
|
|
--with-openssl=yes \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/man
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
make && make DESTDIR=$PKG install
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
install -d $PKG/var/{named,run/named}
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
install -D -m755 $SRC/named $PKG/etc/rc.d/named
|
|
|
|
install -D -m640 -gnamed $SRC/named.conf $PKG/etc/named.conf
|
|
|
|
install -m640 -gnamed $SRC/named.root $SRC/db.* $PKG/var/named/
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
chown root:named $PKG/var/named
|
|
|
|
chmod 1770 $PKG/var/named
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
touch $PKG/etc/rndc.{conf,key}
|
|
|
|
chown root:named $PKG/var/run/named $PKG/etc/rndc.{conf,key}
|
|
|
|
chmod 770 $PKG/var/run/named
|
|
|
|
chmod 640 $PKG/etc/rndc.{conf,key}
|
|
|
|
touch $PKG/var/run/named/named.pid
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
rm -f $PKG/usr/bin/{dig,host}
|
2015-03-07 11:29:40 +01:00
|
|
|
|
|
|
|
# fix FS#1153
|
|
|
|
rm -f $PKG/usr/sbin/dnssec-{checkds,coverage}
|
|
|
|
rm -rf $PKG/usr/man/man8/dnssec-{checkds,coverage}.8
|
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
rm -rf $PKG/usr/man/man1
|
2007-01-27 18:02:47 +01:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
chown named:named $PKG/var/run/named/named.pid
|
2006-11-14 00:01:22 +01:00
|
|
|
}
|
|
|
|
|