2020-06-20 09:16:01 +00:00
|
|
|
# Description: Berkeley Internet Name Domain Service.
|
2019-09-20 23:34:30 +02:00
|
|
|
# URL: https://www.isc.org/bind
|
2008-03-16 21:30:26 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2020-06-20 09:16:01 +00:00
|
|
|
# Depends on: python3-ply, libuv
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
name=bind
|
2020-06-20 09:16:01 +00:00
|
|
|
version=9.16.4
|
2013-05-31 21:28:27 +02:00
|
|
|
release=1
|
2020-05-19 18:55:46 +02:00
|
|
|
source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.xz \
|
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
|
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 \
|
2017-11-07 00:25:50 +01:00
|
|
|
--sysconfdir=/etc
|
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}
|
2020-06-20 09:16:01 +00:00
|
|
|
chmod 770 $PKG/var/run/named
|
2008-03-16 21:30:26 +01:00
|
|
|
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}
|
2015-03-07 11:29:40 +01:00
|
|
|
|
|
|
|
# fix FS#1153
|
|
|
|
rm -f $PKG/usr/sbin/dnssec-{checkds,coverage}
|
2017-11-07 00:25:50 +01:00
|
|
|
rm -rf $PKG/usr/share/man/man8/dnssec-{checkds,coverage}.8
|
2015-03-07 11:29:40 +01:00
|
|
|
|
2017-11-07 00:25:50 +01:00
|
|
|
rm -rf $PKG/usr/share/man/man1
|
2007-01-28 03:02:47 +10:00
|
|
|
|
2020-06-20 09:16:01 +00:00
|
|
|
chown named:named $PKG/var/run/named/named.pid
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|