Commit 81f67abf authored by Carlo Lanmdeter's avatar Carlo Lanmdeter

extra/bind: added missing install file

parent c59bfb5f
......@@ -8,7 +8,7 @@ url="http://www.isc.org"
license="as-is"
depends=
makedepends="openssl-dev"
install=
install=$pkgname.install
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-tools"
source="http://ftp.isc.org/isc/bind9/9.6.0-P1/bind-9.6.0-P1.tar.gz
bind.so_bsdcompat.patch
......@@ -18,7 +18,8 @@ $pkgname.conf
$pkgname.127.zone
$pkgname.localhost.zone
$pkgname.envd
$pkgname.named.ca"
$pkgname.named.ca
$pkgname.install"
build() {
cd "$srcdir/bind-9.6.0-P1"
......@@ -91,4 +92,5 @@ be5fd752bdbd59385f2a559d603098d5 bind.conf
a7455b009b7fccd74ac6f6eaa6902a00 bind.127.zone
c3220168fabfb31a25e8c3a545545e34 bind.localhost.zone
42b5ed5adcee33cf40531d7955412b21 bind.envd
a94e29ac677846f3d4d618c50b7d34f1 bind.named.ca"
a94e29ac677846f3d4d618c50b7d34f1 bind.named.ca
8449d77a1bc4cf4010589ed8ecbea39a bind.install"
#!/bin/sh
case "$1" in
pre_install)
adduser -h /etc/bind -s /bin/false -D named 2>/dev/null
;;
post_install)
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' $ROOT/etc/conf.d/named 2>/dev/null`
[ -z "$CHROOT" ] && CHROOT=/chroot/dns
if [ -d "$CHROOT" ] ; then
echo "$CHROOT already exist. Will not set up chroot"
exit 0
fi
# Set up the chroot
mkdir -m 700 -p ${CHROOT}
for i in dev etc var/run/named ; do
mkdir -p "${CHROOT}/$i"
done
mkdir -p "$ROOT/var/run/named"
chown -R named:named "${CHROOT}/var/run/named"
chown -R named:named "$ROOT/var/run/named"
cp -R "$ROOT/etc/bind" "${CHROOT}/etc/"
cp /etc/TZ ${CHROOT}/etc/TZ
#chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind "${CHROOT}/var/"
chown -R named:named "${CHROOT}/var/"
mknod "${CHROOT}/dev/zero" c 1 5
mknod "${CHROOT}/dev/random" c 1 8
chmod 666 "${CHROOT}/dev/random" "${CHROOT}/dev/zero"
chown named:named "${CHROOT}"
esac
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment