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 09:01:22 +10:00
|
|
|
|
|
|
|
name=bind
|
2014-06-18 11:48:03 +02:00
|
|
|
version=9.9.5-P1
|
2013-05-31 21:28:27 +02:00
|
|
|
release=1
|
2006-11-14 09:01:22 +10: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 09:01:22 +10: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-28 03:02:47 +10: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-28 03:02:47 +10:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
make && make DESTDIR=$PKG install
|
2007-01-28 03:02:47 +10:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
install -d $PKG/var/{named,run/named}
|
2007-01-28 03:02:47 +10: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-28 03:02:47 +10:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
chown root:named $PKG/var/named
|
|
|
|
chmod 1770 $PKG/var/named
|
2007-01-28 03:02:47 +10: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-28 03:02:47 +10:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
rm -f $PKG/usr/bin/{dig,host}
|
|
|
|
rm -rf $PKG/usr/man/man1
|
2007-01-28 03:02:47 +10:00
|
|
|
|
2008-03-16 21:30:26 +01:00
|
|
|
chown named:named $PKG/var/run/named/named.pid
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|
|
|
|
|