wok annotate bind/receipt @ rev 17358
Add asterisk-speech-recog
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 18 21:43:05 2014 +0100 (2014-11-18) |
parents | 31615bc6828a |
children | ea94058cfe7f |
rev | line source |
---|---|
pascal@1612 | 1 # SliTaz package receipt. |
pascal@1612 | 2 |
pascal@1612 | 3 PACKAGE="bind" |
slaxemulator@15822 | 4 VERSION="9.9.4-P2" |
pascal@1612 | 5 CATEGORY="network" |
pascal@1612 | 6 SHORT_DESC="Domain Name System daemon." |
pascal@1612 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="ISC" |
pascal@1612 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1612 | 10 WEB_SITE="http://www.isc.org/products/BIND/" |
pascal@1612 | 11 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL" |
pascal@1612 | 12 CONFIG_FILES="/etc/bind" |
pascal@14772 | 13 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE" |
jozee@4932 | 14 TAGS="DNS daemon" |
pascal@1612 | 15 |
slaxemulator@10709 | 16 DEPENDS="libbind libcrypto attr openssl perl" |
slaxemulator@10709 | 17 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl" |
slaxemulator@10709 | 18 |
pascal@1612 | 19 # Rules to configure and make the package. |
pascal@1612 | 20 compile_rules() |
pascal@1612 | 21 { |
pascal@1612 | 22 cd $src |
slaxemulator@10136 | 23 mkdir -p $DESTDIR/etc/bind |
pascal@1612 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1612 | 25 --sysconfdir=/etc/bind --localstatedir=/var --with-libtool \ |
slaxemulator@6352 | 26 --mandir=/usr/share/man --with-openssl $CONFIGURE_ARGS && \ |
slaxemulator@10136 | 27 make && make DESTDIR=$DESTDIR install && \ |
slaxemulator@10136 | 28 LD_LIBRARY_PATH=$DESTDIR/usr/lib \ |
slaxemulator@10136 | 29 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root |
pascal@1612 | 30 } |
pascal@1612 | 31 |
pascal@1612 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1612 | 33 genpkg_rules() |
pascal@1612 | 34 { |
pascal@1612 | 35 mkdir -p $fs/usr $fs/var/cache/bind |
pascal@14489 | 36 cp -a $install/usr/sbin $fs/usr |
pascal@14489 | 37 cp -a $install/etc $fs |
pankso@9697 | 38 cp -a $stuff/etc $fs |
pascal@1612 | 39 } |
pascal@1612 | 40 |
pascal@17283 | 41 # Post message when installing. |
pascal@17283 | 42 post_install() |
pascal@17283 | 43 { |
pascal@17283 | 44 localnets="192.168.0.0/16; 127.0.0.1;" |
pascal@17283 | 45 grep -qs allow-recursion $1/etc/bind/named.conf.options || |
pascal@17283 | 46 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \ |
pascal@17283 | 47 $1/etc/bind/named.conf.options |
pascal@17283 | 48 } |