void-packages/srcpkgs/util-linux-ng/template
Juan RP 0ce3749025 libblkid, libuuid, util-linux-ng: update to 2.17.1.
--HG--
extra : convert_revision : 5793e15e8aaef19d4fa339184b4d3450c9310c13
2010-02-27 10:40:36 +01:00

54 lines
1.6 KiB
Text

# Template file for 'util-linux-ng'
pkgname=util-linux-ng
version=2.17.1
distfiles="${KERNEL_SITE}/utils/$pkgname/v2.17/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-partx --enable-write --enable-libuuid
--enable-libblkid --disable-fsck --disable-rpath --with-gnu-ld"
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e9c019ea3782dc20b82d27c1240009f9e194304a77ac36f51629a487a5181390
long_desc="
The util-linux-ng package contains miscellaneous utility programs. Among
them are utilities for handling file systems, consoles, partitions,
and messages."
# Required by /var/lib/hwclock
keep_empty_dirs=yes
Add_dependency run glibc
Add_dependency run coreutils
Add_dependency run zlib
Add_dependency run libuuid
Add_dependency run libblkid
Add_dependency run ncursesw
Add_dependency build pkg-config
Add_dependency build gettext
Add_dependency build zlib-devel
Add_dependency build libuuid-devel
Add_dependency build libblkid-devel
Add_dependency build ncursesw-devel
post_configure()
{
cd $wrksrc
for f in $(grep -rl '/etc/adjtime' .); do
sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' $f
done
}
post_install()
{
# Remove stuff provided by libuuid and libblkid.
rm -rf ${DESTDIR}/usr/lib ${DESTDIR}/usr/include \
${DESTDIR}/lib ${DESTDIR}/usr/share/man/man3
# Move logger to /bin.
install -d -m 755 ${DESTDIR}/bin
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
mkdir -p ${DESTDIR}/var/lib/hwclock
# Install the cron daily job.
install -D -m744 ${FILESDIR}/adjtime.cron-hourly \
${DESTDIR}/etc/cron.hourly/adjtime
}