<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>kmod</Name>
        <Homepage>http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>app:console</IsA>
        <Summary>Linux kernel module management utilities</Summary>
        <Description>Linux kernel module management utilities</Description>
        <Archive sha1sum="ca9647241d174aa3334950fce2a4ad7d0596b2e1" type="tarxz">https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-23.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>chrpath</Dependency>
            <!--<Dependency>libxslt</Dependency>-->
            <Dependency>xz-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>kernel-module-headers</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">kmod-15-dynamic-kmod.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>kmod</Name>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>glibc</Dependency>
            <Dependency version="current">libkmod</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/bin</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="manfile">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/usr/share/bash-completion/completions/kmod</Path>
        </Files>
        <AdditionalFiles>
            <!-- Blacklist files
                 These files are basically grabbed from Ubuntu Jaunty and merged into the current Pardus blacklist ones. -->
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist.conf">blacklist/blacklist.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-firewire.conf">blacklist/blacklist-firewire.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-framebuffer.conf">blacklist/blacklist-framebuffer.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-watchdog.conf">blacklist/blacklist-watchdog.conf</AdditionalFile>

            <!-- Grabbed from Fedora -->
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/modprobe.conf">modprobe.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/depmod.d/depmod.conf">depmod.conf</AdditionalFile>
             <!--archlinux thanks-->
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/depmod.d/search.conf">depmod-search.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <!-- FIXME: This backend needs a complete rewrite dude -->
            <COMAR script="backend.py">Boot.Modules</COMAR>
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>libkmod-devel</Name>
        <PartOf>system.devel</PartOf>
        <RuntimeDependencies>
            <Dependency version="current">libkmod</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>libkmod</Name>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Summary>kmod libraries</Summary>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>libkmod-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32bit libraries of libkmod</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>xz-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>xz-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2016-08-09</Date>
            <Version>23</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>22</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-05</Date>
            <Version>22</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
