<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>bind</Name>
        <Homepage>http://www.isc.org/products/BIND/bind9.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>service</IsA>
        <Summary>The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server</Summary>
        <Description>bind is an implementation of the DNS protocols, bind includes a DNS server (named), a resolver library and tools for verifying that the DNS server is operating properly.</Description>
        <Archive sha1sum="4ddb2670976c06af7e86352616383958d82c51ce" type="targz">ftp://ftp.isc.org/isc/bind9/9.10.2/bind-9.10.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>geoip-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">nslookup-pisilinux.patch</Patch>
            <Patch level="1">fedora/bind-9.5-PIE.patch</Patch>
            <Patch level="1">fedora/bind-9.5-parallel-build.patch</Patch>
            <Patch level="1">fedora/bind-96-libtool2.patch</Patch>
            <Patch level="1">fedora/bind-95-rh452060.patch</Patch>
            <Patch level="0">fedora/bind93-rh490837.patch</Patch>
            <Patch level="1">fedora/bind97-rh478718.patch</Patch>
            <Patch level="1">fedora/bind97-rh645544.patch</Patch>
            <Patch level="1">fedora/bind97-rh693982.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>bind-libs</Name>
        <IsA>library</IsA>
        <PartOf>server.library</PartOf>
        <Summary>bind-libs contains the libraries used by both the bind server package and the tools package</Summary>
        <RuntimeDependencies>
            <Dependency>openssl</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
	<Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-devel</Name>
        <IsA>library</IsA>
        <PartOf>server.library</PartOf>
        <Summary>bind header and development files</Summary>
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="executable">/usr/bin/isc-config.sh</Path>
            <Path fileType="man">/usr/share/man/man1/isc-config*</Path>
            <Path fileType="man">/usr/share/man/man3/lwres*</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-tools</Name>
        <IsA>app:console</IsA>
        <PartOf>network.analyzer</PartOf>
        <Summary>Utilities for querying DNS name servers</Summary>
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-chroot</Name>
        <IsA>service</IsA>
        <Summary>A chroot runtime environment for the ISC BIND DNS server 'named'</Summary>
        <RuntimeDependencies>
            <Dependency release="current">bind</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/rsyslog.d/bind_chroot.conf</Path>
            <Path fileType="config">/var/named/chroot/etc</Path>
            <Path fileType="data">/var/named/chroot</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/rsyslog.d/bind_chroot.conf" owner="root" group="root" permission="0644">chroot.rsyslog</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="chroot_package.py">System.Package</COMAR>
            <COMAR script="chroot_service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>bind</Name>
        <IsA>service</IsA>
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="man">/usr/share/man/man5</Path>
            <Path fileType="man">/usr/share/man/man8</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/bind/named.conf">named.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/named">named.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/named.ca">gentoo/named.ca</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/pri/127.zone">gentoo/127.zone</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/pri/localhost.zone">gentoo/localhost.zone</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/logrotate.d/named">fedora/named.logrotate</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="bind_package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>9.10.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-05-08</Date>
            <Version>9.10.2</Version>
            <Comment>First release</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
