<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>iputils</Name>
        <Homepage>http://www.linux-ipv6.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>app:console</IsA>
        <Summary>Network monitoring tools including ping and ping6</Summary>
        <Description>iputils contains network monitoring tools including ping and ping6.</Description>
        <Archive sha1sum="4d56d8c75d6a5d58f052e4056e975f01ebab9ba9" type="tarbz2">http://www.skbuff.net/iputils/iputils-s20121221.tar.bz2</Archive>
        <AdditionalFiles>
            <!-- Taken from linux-2.6.git/Documentation/networking and applied fedora's iputils-ifenslave.patch on top of it -->
            <AdditionalFile target="ifenslave.c">ifenslave/ifenslave.c</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libidn-devel</Dependency>
            <Dependency>gnutls-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <!-- needed for generating man pages, see below
            <Dependency>docbook-utils</Dependency>
             -->
        </BuildDependencies>
        <Patches>
            <Patch level="1">021109-uclibc-no-ether_ntohost.patch</Patch>
            <!--<Patch level="1">iputils-20100418-printf-size.patch</Patch>-->
            <Patch level="1">iputils-20121221-printf-size.patch</Patch>
            <Patch level="1">iputils-20121221-owl-pingsock.diff</Patch>
            <Patch level="1">iputils-20121221-openssl.patch</Patch>
            <Patch level="1">iputils-20121221-makefile.patch</Patch>
            <Patch level="1">iputils-20121221-crypto-build.patch</Patch>
            <Patch level="0">iputils-20100418-so_mark.patch</Patch>
            <Patch level="1">iputils-20071127-nonroot-floodping.patch</Patch>
            <Patch level="1">iputils-20071127-kernel-ifaddr.patch</Patch>

            <!-- Fedora patches -->
            <!--<Patch level="1">fedora/iputils-20020927-rh.patch</Patch>-->
            <Patch level="1">fedora/iputils-20020124-countermeasures.patch</Patch>
            <!--<Patch level="1">fedora/iputils-20020927-addrcache.patch</Patch>-->
            <Patch level="1">fedora/iputils-20020927-ping-subint.patch</Patch>
            <!--<Patch level="1">fedora/iputils-ping_cleanup.patch</Patch>
            <Patch level="1">fedora/iputils-20070202-idn.patch</Patch>-->
            <Patch level="1">fedora/iputils-20070202-traffic_class.patch</Patch>
            <!--<Patch level="1">fedora/iputils-20070202-ia64_align.patch</Patch>
            <Patch level="1">fedora/iputils-20071127-warnings.patch</Patch>
            <Patch level="1">fedora/iputils-20071127-corr_type.patch</Patch>
            <Patch level="1">fedora/iputils-20071127-infiniband.patch</Patch>-->
            <Patch level="1">fedora/iputils-20100418-convtoint.patch</Patch>
            <!--<Patch level="1">fedora/iputils-20100418-flowlabel.patch</Patch>-->

            <!-- We don't have capability setting support in PiSi, disable this
            <Patch level="1">fedora/iputils-20101006-drop_caps.patch</Patch>
            -->

            <!--<Patch level="1">fedora/iputils-20101006-unused.patch</Patch>
            <Patch level="1">fedora/iputils-20101006-man.patch</Patch>-->

            <Patch level="1">docs.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>iputils</Name>
        <RuntimeDependencies>
            <Dependency>libcap</Dependency>
            <Dependency>gnutls</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/bin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="data">/lib/systemd/system</Path>
            <Path fileType="config">/etc/conf.d/rdisc</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <!-- pregenerated man pages, update if necessary. -->
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/arping.8">man/arping.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/clockdiff.8">man/clockdiff.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/ping.8">man/ping.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/rarpd.8">man/rarpd.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/rdisc.8">man/rdisc.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/tracepath.8">man/tracepath.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/traceroute6.8">man/traceroute6.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/ifenslave.8">ifenslave/ifenslave.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/doc/iputils/README.bonding">ifenslave/README.bonding</AdditionalFile>

            <!-- Add systemd files for rdisc daemon -->
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/rdisc">fedora/rdisc.sysconfig</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/rdisc.service">fedora/rdisc.service</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="4">
            <Date>2014-05-11</Date>
            <Version>20121221</Version>
            <Comment>Release bump.</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2013-07-26</Date>
            <Version>20121221</Version>
            <Comment>Fix dep, release bump.</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2013-01-14</Date>
            <Version>20121221</Version>
            <Comment>New release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-08-23</Date>
            <Version>20101006</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
