wok-next diff bind/receipt @ rev 20214
xchat: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 08:49:55 2017 +0100 (2017-11-05) |
parents | 3af6a1c93f35 |
children | e6615350078d |
line diff
1.1 --- a/bind/receipt Mon Oct 17 10:20:42 2016 +0200 1.2 +++ b/bind/receipt Sun Nov 05 08:49:55 2017 +0100 1.3 @@ -1,45 +1,79 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="bind" 1.8 -VERSION="9.11.0" 1.9 +VERSION="9.11.1" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Domain Name System daemon." 1.12 +SHORT_DESC="BIND DNS server" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 -LICENSE="ISC" 1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://www.isc.org/products/BIND/" 1.17 -WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL" 1.18 -CONFIG_FILES="/etc/bind" 1.19 +LICENSE="MPL2" 1.20 +WEB_SITE="http://www.isc.org/downloads/BIND/" 1.21 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE" 1.22 TAGS="DNS daemon" 1.23 1.24 -DEPENDS="libbind libcrypto attr openssl perl" 1.25 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.26 +WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL" 1.27 + 1.28 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl krb5-dev readline-dev" 1.29 +SPLIT="bind-client libbind bind-dev" 1.30 1.31 # Rules to configure and make the package. 1.32 compile_rules() 1.33 { 1.34 mkdir -p $DESTDIR/etc/bind 1.35 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.36 - --sysconfdir=/etc/bind --localstatedir=/var --with-libtool \ 1.37 - --mandir=/usr/share/man --with-openssl $CONFIGURE_ARGS && \ 1.38 - make && make DESTDIR=$DESTDIR install && \ 1.39 + ./configure \ 1.40 + --sysconfdir=/etc/bind \ 1.41 + --localstatedir=/var \ 1.42 + --enable-threads \ 1.43 + --disable-static \ 1.44 + --with-libtool \ 1.45 + --with-openssl \ 1.46 + --with-randomdev=/dev/urandom \ 1.47 + $CONFIGURE_ARGS && 1.48 + make && make DESTDIR=$DESTDIR install && 1.49 + 1.50 LD_LIBRARY_PATH=$DESTDIR/usr/lib \ 1.51 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root 1.52 + 1.53 + cp -a $stuff/etc $install 1.54 + chown -R root:root $install/etc 1.55 + 1.56 + docdir=$install/usr/share/doc/bind-$VERSION 1.57 + mkdir -p $docdir/arm $docdir/misc 1.58 + cp doc/arm/*.html $docdir/arm 1.59 + cd doc/misc 1.60 + cp dnssec ipv6 migrat* options rfc-compliance roadmap sdb $docdir/misc 1.61 } 1.62 1.63 # Rules to gen a SliTaz package suitable for Tazpkg. 1.64 genpkg_rules() 1.65 { 1.66 - mkdir -p $fs/usr $fs/var/cache/bind 1.67 - cp -a $install/usr/sbin $fs/usr 1.68 - cp -a $install/etc $fs 1.69 - cp -a $stuff/etc $fs 1.70 + case $PACKAGE in 1.71 + bind) 1.72 + CONFIG_FILES="/etc/bind/" 1.73 + copy etc/ sbin/ 1.74 + DEPENDS="libbind libcrypto attr openssl perl" 1.75 + ;; 1.76 + bind-client) 1.77 + copy bin/; rm $fs/usr/bin/bind9-config 1.78 + CAT="network|client" 1.79 + DEPENDS="libbind libcrypto attr libpcap" 1.80 + ;; 1.81 + libbind) 1.82 + copy *.so* 1.83 + CAT="libdevel|shared libraries" 1.84 + DEPENDS="libcrypto libcap libxml2 zlib attr libkrb5" 1.85 + ;; 1.86 + bind-dev) 1.87 + copy @dev 1.88 + ;; 1.89 + esac 1.90 } 1.91 1.92 # Post message when installing. 1.93 -post_install() 1.94 +post_install_bind() 1.95 { 1.96 + mkdir -p "$1/var/cache/bind" 1.97 + 1.98 localnets="192.168.0.0/16; 127.0.0.1;" 1.99 grep -qs allow-recursion "$1/etc/bind/named.conf.options" || 1.100 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \