vp-build/srcpkgs/util-linux-ng/template
Juan RP 76c23270b5 util-linux-ng: clean up deps, bumprev.
--HG--
extra : convert_revision : ad06fe3d62871306bac68b463af83b6ae163b050
2010-01-07 21:43:57 +01:00

52 lines
1.4 KiB
Plaintext

# Template file for 'util-linux-ng'
pkgname=util-linux-ng
version=2.16.2
revision=1
distfiles="${KERNEL_SITE}/utils/$pkgname/v2.16/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-partx --enable-write --disable-libuuid
--disable-libblkid --disable-fsck"
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=b1c3f5986b97753f3f83338b36aa25fc1370d96734313047da257df489f9a3eb
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 ncurses-libs
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 ncurses-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()
{
# 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
}