New package: bind-9.8.1.P1.

This commit is contained in:
Juan RP 2012-01-31 13:52:16 +01:00
parent 8634f7174f
commit fc7d3e2a7d
18 changed files with 261 additions and 0 deletions

View file

@ -949,3 +949,9 @@ libgssglue.so.1 libgssglue libgssglue-devel
libtirpc.so.1 libtirpc libtirpc-devel
librpcsecgss.so.3 librpcsecgss librpcsecgss-devel
libnfsidmap.so.0 libnfsidmap libnfsidmap-devel
liblwres.so.80 bind-libs bind-devel
libdns.so.81 bind-libs bind-devel
libbind9.so.80 bind-libs bind-devel
libisccfg.so.82 bind-libs bind-devel
libisc.so.83 bind-libs bind-devel
libisccc.so.80 bind-libs bind-devel

1
srcpkgs/bind-devel Symbolic link
View file

@ -0,0 +1 @@
bind

1
srcpkgs/bind-libs Symbolic link
View file

@ -0,0 +1 @@
bind

1
srcpkgs/bind-utils Symbolic link
View file

@ -0,0 +1 @@
bind

17
srcpkgs/bind/INSTALL Normal file
View file

@ -0,0 +1,17 @@
case "${ACTION}" in
post)
touch var/log/named.log
chown root:named var/log/named.log
chmod 0770 var/log/named.log
# create an rndc.key if it doesn't already exist
if [ ! -s etc/named/rndc.key ]; then
usr/sbin/rndc-confgen -r /dev/urandom -b 256 | \
head -n 5 >> etc/named/rndc.key
chown root:named etc/named/rndc.key
chmod 644 etc/named/rndc.key
fi
chown root:named etc/named/named.conf
chown -R root:named var/named
;;
esac

View file

@ -0,0 +1,15 @@
# Template file for 'bind-devel'.
#
short_desc="${short_desc} - development files"
long_desc="${long_desc}
This package contains development files, static files, headers, etc."
Add_dependency run bind-libs
do_install() {
vmove usr/bin/isc-config.sh usr/bin
vmove usr/share/man/man1/isc-config.sh.1 usr/share/man/man1
vmove usr/include usr
vmove usr/share/man/man3 usr/share/man
}

View file

@ -0,0 +1,12 @@
libdl.so.2
libpthread.so.0
libxml2.so.2
libz.so.1
libm.so.6
libc.so.6
libgssapi_krb5.so.2
libkrb5.so.3
libk5crypto.so.3
libcom_err.so.2
libcrypto.so.1
libcap.so.2

View file

@ -0,0 +1,10 @@
# Template file for 'bind-libs'.
#
short_desc="${short_desc} - Runtime libraries"
long_desc="${long_desc}
This package contains the runtime libraries."
do_install() {
vmove "usr/lib/*.so*" usr/lib
}

View file

@ -0,0 +1,7 @@
liblwres.so.80
libdns.so.81
libbind9.so.80
libisccfg.so.82
libisc.so.83
libpthread.so.0
libc.so.6

View file

@ -0,0 +1,14 @@
# Template file for 'bind-utils'.
#
short_desc="${short_desc} - DNS utils"
long_desc="${long_desc}
This package contains dig(1), host(1) and nslookup(1) utilities
provided by bind, containing a set of useful DNS related applications."
do_install() {
for f in dig host nslookup; do
vmove usr/bin/${f} usr/bin
vmove usr/share/man/man1/${f}.1 usr/share/man/man1
done
}

12
srcpkgs/bind/bind.rshlibs Normal file
View file

@ -0,0 +1,12 @@
libkrb5.so.3
libdl.so.2
libpthread.so.0
libxml2.so.2
libc.so.6
liblwres.so.80
libdns.so.81
libbind9.so.80
libisccfg.so.82
libisccc.so.80
libisc.so.83
libcap.so.2

2
srcpkgs/bind/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=">=9.8.1"
api_depends="${abi_depends}"

View file

@ -0,0 +1,11 @@
$ORIGIN 0.0.127.in-addr.arpa.
@ 1D IN SOA localhost. root.localhost. (
42 ; serial (yyyymmdd##)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum ttl
1D IN NS localhost.
1 1D IN PTR localhost.

View file

@ -0,0 +1,10 @@
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (yyyymmdd##)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum ttl
1D IN NS @
1D IN A 127.0.0.1

View file

@ -0,0 +1,63 @@
//
// /etc/named/named.conf
//
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
auth-nxdomain yes;
datasize default;
// Uncomment these to enable IPv6 connections support
// IPv4 will still work:
// listen-on-v6 { any; };
// Add this for no IPv4:
// listen-on { none; };
// Default security settings.
allow-recursion { 127.0.0.1; };
allow-transfer { none; };
allow-update { none; };
version none;
hostname none;
server-id none;
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-transfer { any; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
allow-transfer { any; };
};
zone "." IN {
type hint;
file "root.hint";
};
//zone "example.org" IN {
// type slave;
// file "example.zone";
// masters {
// 192.168.1.100;
// };
// allow-query { any; };
// allow-transfer { any; };
//};
logging {
channel xfer-log {
file "/var/log/named.log";
print-category yes;
print-severity yes;
print-time yes;
severity info;
};
category xfer-in { xfer-log; };
category xfer-out { xfer-log; };
category notify { xfer-log; };
};

View file

@ -0,0 +1,6 @@
/var/log/named.log {
missingok
postrotate
/bin/kill -HUP `cat /var/run/named/named.pid 2>/dev/null` 2>/dev/null || true
endscript
}

View file

@ -0,0 +1,18 @@
[Unit]
Description=Berkeley Internet Name Domain (DNS) server
Wants=nss-lookup.target
Before=nss-lookup.target
After=network.target
[Service]
Type=forking
PIDFile=/var/run/named/named.pid
ExecStartPre=/usr/sbin/named-checkconf -z /etc/named/named.conf
ExecStart=/usr/sbin/named -u named
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
PrivateTmp=true
TimeoutSec=25
[Install]
WantedBy=multi-user.target

55
srcpkgs/bind/template Normal file
View file

@ -0,0 +1,55 @@
# Template file for 'bind'
pkgname=bind
_distver=9.8.1
_patchver=P1
version=${_distver}.${_patchver}
wrksrc=${pkgname}-${_distver}-${_patchver}
homepage="http://www.isc.org/software/bind/"
distfiles="http://ftp.isc.org/isc/bind9/${_distver}-${_patchver}/bind-${_distver}-${_patchver}.tar.gz"
build_style=gnu-configure
configure_args="--disable-static --with-openssl --with-libxml2
--enable-threads --enable-largefile --enable-ipv6 --with-libtool
--enable-atomic --sysconfdir=/etc/named"
short_desc="Berkeley Internet Name Domain server"
maintainer="Juan RP <xtraeme@gmail.com>"
license="ISC"
checksum=867fdd52d3436c6ab6d357108d7f9eaaf03f1422652e6e61c742816ff7f87929
long_desc="
BIND is by far the most widely used DNS software on the Internet. It provides
a robust and stable platform on top of which organizations can build
distributed computing systems with the knowledge that those systems are fully
compliant with published DNS standards."
subpackages="bind-libs bind-utils bind-devel"
make_dirs="
/var/named 0770 root named
/var/run/named 0770 root named"
systemd_services="named.service true"
conf_files="/etc/named/named.conf"
system_accounts="named"
named_desc="BIND DNS server"
named_homedir="/var/named"
named_shell="/bin/false"
Add_dependency build perl ">=0"
Add_dependency build openssl-devel
Add_dependency build mit-krb5-devel
Add_dependency build libxml2-devel
Add_dependency build libcap-devel
pre_build() {
# temporary fix for issue reported upstream
ln -s .libs/driver.o bin/tests/system/dlzexternal/
}
post_install() {
vinstall ${FILESDIR}/named.service 644 lib/systemd/system
vinstall ${FILESDIR}/named.logrotate 600 etc/logrotate.d named
vinstall ${FILESDIR}/named.conf 640 etc/named
vinstall bin/tests/system/common/root.hint 640 var/named
vinstall ${FILESDIR}/127.0.0.zone 640 var/named
vinstall ${FILESDIR}/localhost.zone 640 var/named
}