<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mdadm</Name>
        <Homepage>http://www.kernel.org/pub/linux/utils/raid/mdadm</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Utility to control Linux MD devices (software RAID arrays)</Summary>
        <Description>mdadm is used to create, manage, and monitor Linux MD (software RAID) devices.</Description>
        <Archive sha1sum="fb0bace919325b42a005372b5a5cfa999da6567a" type="tarxz">https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-4.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>dietlibc</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">sysmacros.patch</Patch>
            <Patch level="1">mdadm-4.3-no-udev.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>mdadm</Name>
        <Files>
            <Path fileType="executable">/sbin/mdadm</Path>
            <Path fileType="executable">/sbin/mdmon</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="data">/usr/lib/tmpfiles.d</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/etc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/mdadm.conf">mdadm.tmpfiles.conf</AdditionalFile>
            <!-- Add a cron job to run a weekly repair of the array to correct bad sectors -->
            <AdditionalFile owner="root" permission="0755" target="/etc/cron.weekly/raid-check">scripts/raid-check</AdditionalFile>

            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/mdadm">mdadm.confd</AdditionalFile>

            <!-- Udev rules file for device assembly. This is different than the mdadm rules file shipped with udev -->
            <AdditionalFile owner="root" permission="0644" target="/lib/udev/rules.d/65-md-incremental.rules">mdadm.rules</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>mdadm-static</Name>
        <PartOf>system.base</PartOf>
        <Files>
            <Path fileType="executable">/sbin/mdadm.static</Path>
            <Path fileType="executable">/sbin/mdassemble.static</Path>
        </Files>
    </Package>

    <History>
        <Update release="9">
            <Date>2024-07-25</Date>
            <Version>4.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="8">
            <Date>2023-11-08</Date>
            <Version>4.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2020-12-09</Date>
            <Version>3.4</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2019-12-27</Date>
            <Version>3.4</Version>
            <Comment>Rebuild</Comment>
            <Name>idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-10-02</Date>
            <Version>3.4</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-07-19</Date>
            <Version>3.4</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-13</Date>
            <Version>3.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
