<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ppp</Name>
        <Homepage>http://samba.org/ppp</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>Point-to-point protocol - patched for PPPOE</Summary>
        <Description>The Point-to-Point Protocol (PPP) provides a standard way to transmit datagrams over a serial link.</Description>
        <Archive sha1sum="808b023172ea7189bc0d49935bf37a5382a1fe13" type="targz">https://www.samba.org/ftp/ppp/ppp-2.4.7.tar.gz</Archive>
        <Archive sha1sum="1a0b02788d522f2137d0b66c749ffe6c96cceb94" type="targz">http://distfiles.gentoo.org/distfiles/ppp-dhcpc.tgz</Archive>
        <BuildDependencies>
            <Dependency>libpcap-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>pam-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">gentoo/02_all_make-vars.patch</Patch>
            <Patch level="1">gentoo/04_all_mpls.patch</Patch>
            <Patch level="1">gentoo/06_all_killaddr-smarter.patch</Patch>
            <Patch level="1">gentoo/08_all_wait-children.patch</Patch>
<!--             <Patch level="1">gentoo/10_all_defaultgateway.patch</Patch> -->
            <Patch level="1">gentoo/12_all_linkpidfile.patch</Patch>
            <Patch level="1">gentoo/16_all_auth-fail.patch</Patch>
<!--             <Patch level="1">gentoo/18_all_defaultmetric.patch</Patch> -->
            <Patch level="1">gentoo/20_all_dev-ppp.patch</Patch>
            <Patch level="1">gentoo/24_all_passwordfd-read-early.patch</Patch>
            <Patch level="1">gentoo/26_all_pppd-usepeerwins.patch</Patch>
            <Patch level="1">gentoo/28_all_connect-errors.patch</Patch>
            <Patch level="1">gentoo/30_all_Makefile.patch</Patch>
            <Patch level="1">gentoo/32_all_pado-timeout.patch</Patch>
            <Patch level="1">gentoo/34_all_lcp-echo-adaptive.patch</Patch>
            <Patch level="1">ppp-2.3.6-sample.patch</Patch>
            <Patch level="1">ppp-2.4.3-fix64.patch</Patch>
            <Patch level="1">ppp-2.4.2-change_resolv_conf.patch</Patch>
            <Patch level="1">nostrip.patch</Patch>
            <Patch level="1">ppp-2.4.3-local.patch</Patch>
            <Patch level="1">ppp-2.4.3-ipv6-accept-remote.patch</Patch>
            <Patch level="1">ppp-2.4.5-ppp_resolv.patch</Patch>
            <Patch level="1">ppp-2.4.5-var_run_ppp.patch</Patch>
            <Patch level="1">ppp-2.4.6-eaptls-mppe-0.99.patch</Patch>
            <Patch level="1">0029-pppoe-include-netinet-in.h-before-linux-in.h.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>ppp</Name>
        <RuntimeDependencies>
            <Dependency>libpcap</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/ppp.conf</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/run/ppp</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/ppp.conf">tmpfiles.conf</AdditionalFile>
            <AdditionalFile target="/etc/ppp/options-pptp" permission="0644" owner="root">options-pptp</AdditionalFile>
            <AdditionalFile target="/etc/ppp/options-pppoe" permission="0644" owner="root">options-pppoe</AdditionalFile>
            <AdditionalFile target="/etc/ppp/chat-default" permission="0644" owner="root">chat-default</AdditionalFile>
            <AdditionalFile target="/etc/ppp/ip-up" permission="0755" owner="root">ip-up</AdditionalFile>
            <AdditionalFile target="/etc/ppp/ip-down" permission="0755" owner="root">ip-down</AdditionalFile>
            <AdditionalFile target="/etc/conf.d/net.ppp0" permission="0600" owner="root">confd.ppp0</AdditionalFile>
            <AdditionalFile target="/etc/pam.d/ppp" permission="0644" owner="root">ppp.pamd</AdditionalFile>
            <AdditionalFile target="/etc/logrotate.d/ppp" permission="0644" owner="root">ppp.logrotate</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>ppp-devel</Name>
        <Summary>Development files for ppp</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ppp</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-08-13</Date>
            <Version>2.4.7</Version>
            <Comment>Rebuild New T.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>2.4.7</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.4.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-26</Date>
            <Version>2.4.6</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
