<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>util-linux</Name>
        <Homepage>https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>Various useful Linux utilities</Summary>
        <Description>The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function.</Description>
        <Archive sha1sum="1484b6d498527906d2e4c059ca3a3f3d05631e76" type="tarxz">https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.40/util-linux-2.40.4.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>eudev-devel</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>shadow</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>libcap-ng-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>libpcre2-devel</Dependency>
            <!-- <Dependency releaseFrom="2">utempter-devel</Dependency>-->
        </BuildDependencies>
        <Patches>
             <Patch level="1">upstream/util-linux-ng-2.21-login-lastlog.patch</Patch>
<!--              <Patch level="1">libmount-Fix-regression-when-mounting-with-atime.patch</Patch> -->
         </Patches>
    </Source>

    <Package>
        <Name>util-linux</Name>
        <RuntimeDependencies>
            <Dependency version="current">libutil-linux</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>file</Dependency>
            <Dependency>perl</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>eudev</Dependency>
            <!--<Dependency>utempter</Dependency>-->
            <Dependency>libcap-ng</Dependency>
            <Dependency>libpcre2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/bin</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="data">/usr/share/misc</Path>
            <Path fileType="data">/usr/share/getopt</Path>
            <Path fileType="data">/usr/share/bash-completion/completions</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>uuidd</Name>
        <IsA>service</IsA>
        <IsA>app:console</IsA>
        <PartOf>util.misc</PartOf>
        <Summary>Helper daemon to guarantee uniqueness of time-based UUIDs</Summary>
        <RuntimeDependencies>
            <Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <!-- FIXME: Add COMAR service -->
        <Files>
            <Path fileType="executable">/usr/bin/uuidgen</Path>
            <Path fileType="executable">/usr/sbin/uuidd</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/uuidd.conf</Path>
            <Path fileType="man">/usr/share/man/man1/uuidgen.1</Path>
            <Path fileType="man">/usr/share/man/man8/uuidd.8</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/usr/lib/tmpfiles.d/uuidd.conf" permission="0644" owner="root">uuidd.tmpfiles</AdditionalFile>
        </AdditionalFiles> 
    </Package>

    <Package>
        <Name>libutil-linux</Name>
        <IsA>library</IsA>
        <Summary>util-linux runtime library</Summary>
        <RuntimeDependencies>
            <Dependency>python3</Dependency>
            <Dependency>sqlite</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid</Package>
            <Package>libuuid</Package>
        </Replaces>
        <Files>
            <Path fileType="library">/lib</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man/man3/uuid*</Path>
            <Path fileType="man">/usr/share/man/man3/libblkid*</Path>
            <Path fileType="man">/usr/share/man/man8/blkid*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libutil-linux-devel</Name>
        <IsA>header</IsA>
        <PartOf>system.devel</PartOf>
        <Summary>libutil-linux header files</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libutil-linux</Dependency>
            <Dependency>sqlite-devel</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid-devel</Package>
            <Package>libuuid-devel</Package>
        </Replaces>
        <Files>
            <Path fileType="header">/usr/include/</Path>
            <Path fileType="data">/usr/lib/pkgconfig/*.pc</Path>
            <Path fileType="data">/usr/lib32/pkgconfig/*.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libutil-linux-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libutil-linux</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>sqlite-32bit</Dependency>
            <Dependency>ncurses-32bit</Dependency>
			<Dependency>libpcre2-32bit</Dependency>
			<Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>sqlite-32bit</Dependency>
			<Dependency>ncurses-32bit</Dependency>
			<Dependency>libpcre2-32bit</Dependency>
			<Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid-32bit</Package>
            <Package>libuuid-32bit</Package>
        </Replaces>
        <Files>
            <Path fileType="library">/usr/lib32/</Path>
        </Files>
    </Package>

    <History>
        <Update release="23">
            <Date>2025-01-14</Date>
            <Version>2.40.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="22">
            <Date>2024-07-05</Date>
            <Version>2.40.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="21">
            <Date>2024-05-07</Date>
            <Version>2.40.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="20">
            <Date>2023-09-11</Date>
            <Version>2.39.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@hotmail.com</Email>
        </Update>
        <Update release="19">
            <Date>2023-08-19</Date>
            <Version>2.39.2</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@hotmail.com</Email>
        </Update>
        <Update release="18">
            <Date>2023-01-28</Date>
            <Version>2.38.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2022-08-07</Date>
            <Version>2.38.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2022-07-21</Date>
            <Version>2.37.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2021-03-14</Date>
            <Version>2.36</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2021-02-20</Date>
            <Version>2.36</Version>
            <Comment>Rebuild shadow</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2020-04-20</Date>
            <Version>2.35.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
		<Update release="12">
            <Date>2019-12-25</Date>
            <Version>2.35_rc1</Version>
            <Comment>Version bump</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2019-03-17</Date>
            <Version>2.31.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2019-01-09</Date>
            <Version>2.31.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2018-07-15</Date>
            <Version>2.31.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2018-07-11</Date>
            <Version>2.31.1</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2017-09-11</Date>
            <Version>2.30.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-03-26</Date>
            <Version>2.29</Version>
            <Comment>add upstream patch.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-01-26</Date>
            <Version>2.29</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2016-09-10</Date>
            <Version>2.27.1</Version>
            <Comment>Enable runuser</Comment>
            <Name>Burak Ertürk</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-25</Date>
            <Version>2.27.1</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.27.1</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-28</Date>
            <Version>2.27.1</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
