<?xml version="1.0"?>
<package name="bind">
	<description>Internet Domain Name Server</description>
	<releases>
		<release version="9.20.18" revision="1">
			<deps>
				<dep name="json-c"/>
				<dep name="libcap"/>
				<dep name="libuv"/>
				<dep name="lmdb"/>
				<dep name="nghttp2"/>
				<dep name="openssl"/>
				<dep name="python-sphinx"/>
				<dep name="userspace-rcu"/>
			</deps>
			<preinst>
				<cmd>groupadd -f -g 10 named</cmd>
				<cmd check="no">useradd -u 10 -g named -d /var/lib/named -c "DNS server" -s /bin/false named</cmd>
			</preinst>
			<build>
				<script>
					<archive name="bind-$VERSION">
						<cmd>./configure --libexecdir=/usr/bin --without-gssapi --without-python</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>
						<cmd>install -d -o named -g named -m 0750 /var/lib/named</cmd>
						<cmd check="no">cat &gt; /var/lib/named/localhost.zone &lt;&lt; "EOF"
$TTL 1D
@		IN SOA	@ root (1 1D 2H 1W 1D)
IN NS	@
IN A	127.0.0.1
EOF</cmd>
						<cmd check="no">cat &gt; /var/lib/named/127.0.0.zone &lt;&lt; "EOF"
$TTL 1D
@		IN SOA	localhost. root.localhost. (1 1D 2H 1W 1D)
IN NS	localhost.
1		IN PTR	localhost.
EOF</cmd>
						<install name="root.hint-20040831" dest="/var/lib/named/root.hint"/>
						<install name="named.service-20110403" dest="/lib/systemd/system/named.service"/>
						<install name="tmpfiles-bind-20110815" dest="/usr/lib/tmpfiles.d/bind.conf"/>
					</archive>
				</script>
			</build>
			<postinst>
				<cmd>rndc-confgen -a</cmd>
			</postinst>
			<config>
				<configfile name="named.conf-20041227" default="$DOCDIR/named.conf-paldo" dest="/etc/named.conf"/>
			</config>
		</release>
	</releases>
</package>
