wok view bind/receipt @ rev 17982

pavucontrol: remove patch
author Richard Dunbar <mojo@slitaz.org>
date Sun Apr 19 16:50:55 2015 -0400 (2015-04-19)
parents 04fd2696b43a
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="bind"
4 VERSION="9.9.6-P1"
5 CATEGORY="network"
6 SHORT_DESC="Domain Name System daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="ISC"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.isc.org/products/BIND/"
11 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/bind"
13 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
14 TAGS="DNS daemon"
16 DEPENDS="libbind libcrypto attr openssl perl"
17 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 mkdir -p $DESTDIR/etc/bind
24 ./configure --prefix=/usr --infodir=/usr/share/info \
25 --sysconfdir=/etc/bind --localstatedir=/var --with-libtool \
26 --mandir=/usr/share/man --with-openssl $CONFIGURE_ARGS && \
27 make && make DESTDIR=$DESTDIR install && \
28 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
29 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr $fs/var/cache/bind
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/etc $fs
38 cp -a $stuff/etc $fs
39 }
41 # Post message when installing.
42 post_install()
43 {
44 localnets="192.168.0.0/16; 127.0.0.1;"
45 grep -qs allow-recursion $1/etc/bind/named.conf.options ||
46 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
47 $1/etc/bind/named.conf.options
48 }