<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>wpa_supplicant</Name>
        <Homepage>http://hostap.epitest.fi/wpa_supplicant/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>BSD</License>
        <IsA>service</IsA>
        <Summary>IEEE 802.1X/WPA supplicant for secure wireless transfers</Summary>
        <Description>wpa_supplicant is a WPA supplicant with support for WPA and WPA2.</Description>
        <Archive sha1sum="22886a40b09029b0b8544d4bb268ed07912c103d" type="targz">http://hostap.epitest.fi/releases/wpa_supplicant-2.4.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="wpa_supplicant/.config">wpa_supplicant.config</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>libnl-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">ubuntu/01_use_pkg-config_for_pcsc-lite_module.patch</Patch>
            <!--<Patch level="1">wpa_supplicant-1.0-generate-libeap-peer.patch</Patch>-->
            <Patch level="1">wpa_supplicant-1.0-dbus-path-fix.patch</Patch>
            <Patch level="1">wpa_supplicant-1.0-do-not-call-dbus-functions-with-NULL-path.patch</Patch>
            <Patch level="1">mandriva/wpa_supplicant-0.6.3-WEP232.patch</Patch>
            <Patch level="1">fedora/wpa_supplicant-openssl-more-algs.patch</Patch>
            <Patch level="1">fedora/wpa_supplicant-flush-debug-output.patch</Patch>
            <!--<Patch level="1">fedora/wpa_supplicant-squelch-driver-disconnect-spam.patch</Patch>-->
            <!--<Patch level="1">fedora/wpa_supplicant-dbus-service-file-args.patch</Patch>-->
            <Patch level="1">fedora/wpa_supplicant-assoc-timeout.patch</Patch>
            <!--<Patch level="1">fedora/wpa_supplicant-quiet-scan-results-message.patch</Patch>-->

            <!--<Patch>suse/wpa_supplicant-driver-wext-debug.patch</Patch>-->
            <Patch>suse/wpa_supplicant-errormsg.patch</Patch>

            <!-- Add 3 patches from git://w1.fi/srv/git/hostap-07.git -->
            <!--<Patch level="1">0001-AP-Verify-that-HT40-secondary-channel-is-supported.patch</Patch>-->
            <!--<Patch level="1">0002-nl80211-Set-cipher-suites-when-using-user-space-SME.patch</Patch>-->
            <!--<Patch level="1">0003-dbus-Emit-property-changed-events-when-adding-removi.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>wpa_supplicant</Name>
        <RuntimeDependencies>
            <Dependency>libnl</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/etc/dbus-1</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/dbus-1/system-services</Path>
            <Path fileType="data">/run</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0600" target="/etc/wpa_supplicant.conf">wpa_supplicant.conf</AdditionalFile>
            <!-- This is the fedora one
            <AdditionalFile owner="root" permission="0600" target="/etc/wpa_supplicant.conf">wpa_supplicant.conf.fedora</AdditionalFile>
            -->
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/wpa_supplicant">wpa_supplicant.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/logrotate.d/wpa_supplicant">wpa_supplicant.logrotate</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/python2.7/site-packages/wpa_supplicant.py">wpa_supplicant.py</AdditionalFile>
        </AdditionalFiles>
        <!-- This service is not started by default since NM starts it automatically. Keep service for those not using NM and start wpa-supp service manually -->
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="4">
            <Date>2015-07-15</Date>
            <Version>2.4</Version>
            <Comment>Version Bump.</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2014-06-02</Date>
            <Version>2.1</Version>
            <Comment>Version Bump.</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2013-03-02</Date>
            <Version>2.0</Version>
            <Comment>V.Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-10-14</Date>
            <Version>1.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
