contrib/bind/Pkgfile

49 lines
1.2 KiB
Plaintext
Raw Normal View History

# 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-08-21 12:07:58 +02:00
# Depends on: libuv python3-ply
2006-11-14 00:01:22 +01:00
name=bind
2020-09-20 19:34:13 +02:00
version=9.16.7
2013-05-31 21:28:27 +02:00
release=1
2020-08-21 12:07:58 +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 00:01:22 +01:00
build() {
2008-03-16 21:30:26 +01:00
cd $name-$version
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 \
2017-11-07 00:25:50 +01:00
--sysconfdir=/etc
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
2008-03-16 21:30:26 +01:00
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}
# 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
2017-11-07 00:25:50 +01:00
rm -rf $PKG/usr/share/man/man1
2007-01-27 18:02:47 +01:00
chown named:named $PKG/var/run/named/named.pid
2006-11-14 00:01:22 +01:00
}