<?xml version="1.0"?>
<package name="util-linux">
	<description>linux utilities like mount,hwclock,...</description>
	<releases>
		<release version="2.41.3" revision="1">
			<deps>
				<dep name="cap-ng"/>
			</deps>
			<build>
				<script>
					<archive name="util-linux-$VERSION">
						<!-- add loopback-setup option -->
						<patch name="util-linux-$VERSION-unshare-loopback-setup-1"/>

						<!-- ignore bogus optimal io size, e.g., 33553920 bytes from USB devices
						     to avoid alignment issues with fdisk -->
						<patch name="util-linux-$VERSION-usb-io-size-1"/>

						<cmd>./configure --enable-last --enable-mesg --disable-chfn-chsh --disable-login --disable-nologin --disable-su --disable-static --without-python</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>
						<cmd>install -dv $DOCDIR</cmd>
						<text dest="$DOCDIR/default-fstab.paldo">
@ROOTDEV@ / @ROOTFSTYPE@ defaults,noatime 0 1
@BOOTDEV@ /boot vfat defaults,noatime 0 2
# @HOMEDEV@ /home @HOMEFSTYPE@ defaults,noatime 0 2
# @SWAP@ swap swap pri=1 0 0
</text>
					</archive>
				</script>
			</build>
			<postinst>
				<!-- clear screen -->
				<cmd>echo -e -n "\e[H\e[J" &gt; /etc/issue</cmd>
				<cmd>echo "paldo $BRANCH (linux \r \m) on \l" &gt;&gt; /etc/issue</cmd>
				
				<cmd check="no">if [ ! -e /etc/fstab ] ; then</cmd>
				<cmd>echo "@ROOTDEV@ / @ROOTFSTYPE@ defaults,noatime 0 1" &gt; /etc/fstab</cmd>
				<cmd>echo "@BOOTDEV@ /boot vfat defaults,noatime 0 2" &gt;&gt; /etc/fstab</cmd>
				<cmd>echo "# @HOMEDEV@ /home @HOMEFSTYPE@ defaults,noatime 0 2" &gt;&gt; /etc/fstab</cmd>
				<cmd>echo "# @SWAP@ swap swap pri=1 0 0" &gt;&gt; /etc/fstab</cmd>
				<cmd check="no">fi</cmd>
			</postinst>
		</release>
	</releases>
</package>
