void-packages/templates/util-linux-ng/template
Juan RP f7c1a34b88 Install the cron jobs with 744 perms.
--HG--
extra : convert_revision : 03e9b1e542f20c45d691b7fd2c7c17a794199209
2009-03-29 07:23:39 +02:00

41 lines
1.1 KiB
Text

# Template file for 'util-linux-ng'
pkgname=util-linux-ng
version=2.14.2
revision=1
distfiles="http://www.kernel.org/pub/linux/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-partx --enable-write"
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=108e63e9a007f6a8c0eff841dd38e0fe3b635c98b35bfac2d89b4b1a1ce0630e
long_desc="
The util-linux-ng package contains miscellaneous utility programs. Among
them are utilities for handling file systems, consoles, partitions,
and messages."
Add_dependency build e2fsprogs
Add_dependency full glibc
Add_dependency run e2fsprogs-libs
Add_dependency full coreutils
Add_dependency run ncurses-libs
Add_dependency full zlib
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
}