wok-next view bind/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 757d032c55c7 |
children | b156aee559a7 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bind"
4 VERSION="9.11.1"
5 CATEGORY="network"
6 SHORT_DESC="BIND DNS server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="http://www.isc.org/downloads/BIND/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
14 BUILD_DEPENDS="libtool libcap-dev openssl-dev perl krb5-dev readline-dev"
15 SPLIT="bind-client libbind bind-dev"
17 compile_rules() {
18 mkdir -p $DESTDIR/etc/bind
20 ./configure \
21 --sysconfdir=/etc/bind \
22 --enable-threads \
23 --disable-static \
24 --with-libtool \
25 --with-openssl \
26 --with-randomdev=/dev/urandom \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make &&
30 make DESTDIR=$DESTDIR install || return 1
32 LD_LIBRARY_PATH=$DESTDIR/usr/lib \
33 $DESTDIR/usr/bin/dig ns . @a.root-servers.net. > $DESTDIR/etc/bind/db.root
35 cp -a $stuff/etc $install
36 chown -R root:root $install/etc
38 docdir=$install/usr/share/doc/bind-$VERSION
39 mkdir -p $docdir/arm $docdir/misc
40 cp doc/arm/*.html $docdir/arm
41 cd doc/misc
42 cp dnssec ipv6 migrat* options rfc-compliance roadmap sdb $docdir/misc
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 bind)
48 CONFIG_FILES="/etc/bind/"
49 copy etc/ sbin/
50 DEPENDS="libbind attr openssl perl"
51 TAZPANEL_DAEMON="edit::/etc/bind/named.conf|man|options|web::$WEB_SITE"
52 TAGS="DNS daemon"
53 ;;
54 bind-client)
55 copy bin/; rm $fs/usr/bin/bind9-config
56 CAT="network|client"
57 DEPENDS="libbind openssl attr libpcap"
58 ;;
59 libbind)
60 copy *.so*
61 CAT="libdevel|shared libraries"
62 DEPENDS="openssl libcap libxml2 zlib attr libkrb5"
63 ;;
64 bind-dev)
65 copy @dev
66 ;;
67 esac
68 }
70 post_install_bind() {
71 mkdir -p "$1/var/cache/bind"
73 localnets="192.168.0.0/16; 127.0.0.1;"
74 grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
75 sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
76 "$1/etc/bind/named.conf.options"
77 #[ -x "$1/usr/bin/ssh-keygen" ] &&
78 #chroot "$1/" "hostname -f | xargs ssh-keygen -r" | \
79 # sed 's/^/update add /;s/ IN / 3600&/;/ SSHFP . 1 /d;' \
80 #chroot "$1/" nsupdate
81 }