50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
![]() |
# $Id: Pkgfile 1330 2006-11-13 20:54:04Z prologic $
|
||
|
# Description: Berkeley Internet Name Domain Service.
|
||
|
# URL: http://www.isc.org/products/BIND/
|
||
|
# Maintainer: James Mills prologic at shortcircuit dot net dot au
|
||
|
# Packager: Daniel Mueller, daniel at danm dot de
|
||
|
# Depends on:
|
||
|
|
||
|
name=bind
|
||
|
version=9.3.2-P1
|
||
|
release=1
|
||
|
source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.gz \
|
||
|
ftp://ftp.rs.internic.net/domain/named.root \
|
||
|
db.0.0.127 db.localhost db.ip6.arpa named named.conf)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
sed -i -e 's|\@LN\@ \${man3}/|ln -s |g' lib/lwres/man/Makefile.in
|
||
|
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--enable-ipv6 \
|
||
|
--enable-threads \
|
||
|
--with-openssl=yes \
|
||
|
--sysconfdir=/etc
|
||
|
|
||
|
make && make DESTDIR=$PKG install
|
||
|
chown -R root:root $PKG
|
||
|
|
||
|
install -d $PKG/var/{named,run/named}
|
||
|
|
||
|
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/
|
||
|
|
||
|
chown root:named $PKG/var/named
|
||
|
chmod 1770 $PKG/var/named
|
||
|
|
||
|
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
|
||
|
|
||
|
rm -f $PKG/usr/bin/{dig,host}
|
||
|
rm -rf $PKG/usr/man/man1
|
||
|
|
||
|
chown named:named $PKG/var/run/named/named.pid
|
||
|
}
|
||
|
|