extra/bind: fix install scripts

This commit is contained in:
Natanael Copa 2009-03-06 18:10:33 +00:00
parent b68d15db9d
commit 702bc24736
4 changed files with 24 additions and 23 deletions

View File

@ -1,23 +1,24 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bind
pkgver=9.6.0_p1
pkgrel=0
pkgrel=1
pkgdesc="BIND - Berkeley Internet Name Domain - Name Server and tools"
url="http://www.isc.org"
license="as-is"
depends=
depends=uclibc
makedepends="openssl-dev"
install=$pkgname.install
install="$pkgname.pre-install $pkgname.post-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
$pkgname.initd
$pkgname.confd
$pkgname.conf
$pkgname.127.zone
$pkgname.localhost.zone
$pkgname.named.ca
$pkgname.install"
bind.so_bsdcompat.patch
$pkgname.initd
$pkgname.confd
$pkgname.conf
$pkgname.127.zone
$pkgname.localhost.zone
$pkgname.named.ca
$install"
build() {
cd "$srcdir/bind-9.6.0-P1"
@ -90,4 +91,5 @@ be5fd752bdbd59385f2a559d603098d5 bind.conf
a7455b009b7fccd74ac6f6eaa6902a00 bind.127.zone
c3220168fabfb31a25e8c3a545545e34 bind.localhost.zone
a94e29ac677846f3d4d618c50b7d34f1 bind.named.ca
65a324ab73d4ce8720a07b46a391f58a bind.install"
d3137e2de6f82acfc914d4916999cf2a bind.pre-install
695c957be18ec4f8ea46d0b1ff50b09b bind.post-install"

View File

@ -1,11 +0,0 @@
#!/bin/sh
case "$1" in
pre_install)
adduser -h /etc/bind -s /bin/false -D named 2>/dev/null
;;
post_install)
install -dD -o named -g named /var/run/named
chown -R named:named /var/bind
esac
exit 0

View File

@ -0,0 +1,5 @@
#!/bin/sh
install -dD -o named -g named /var/run/named
chown -R named:named /var/bind

View File

@ -0,0 +1,5 @@
#!/bin/sh
adduser -h /etc/bind -s /bin/false -D named 2>/dev/null
exit 0