2008-10-31 01:09:14 +00:00
|
|
|
# Template file for 'util-linux-ng'
|
|
|
|
pkgname=util-linux-ng
|
2009-02-19 01:04:29 +00:00
|
|
|
version=2.14.2
|
2009-03-28 17:49:46 +00:00
|
|
|
revision=1
|
2008-10-31 01:09:14 +00:00
|
|
|
distfiles="http://www.kernel.org/pub/linux/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2"
|
|
|
|
build_style=gnu_configure
|
2009-03-13 22:55:25 +00:00
|
|
|
configure_args="--enable-partx --enable-write"
|
2008-10-31 01:09:14 +00:00
|
|
|
short_desc="Miscellaneous linux utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-02-19 01:04:29 +00:00
|
|
|
checksum=108e63e9a007f6a8c0eff841dd38e0fe3b635c98b35bfac2d89b4b1a1ce0630e
|
2008-10-31 01:09:14 +00:00
|
|
|
long_desc="
|
|
|
|
The util-linux-ng package contains miscellaneous utility programs. Among
|
|
|
|
them are utilities for handling file systems, consoles, partitions,
|
|
|
|
and messages."
|
|
|
|
|
2009-02-25 15:38:17 +00:00
|
|
|
Add_dependency build e2fsprogs
|
2009-03-18 09:02:43 +00:00
|
|
|
Add_dependency full glibc
|
2009-02-24 07:22:29 +00:00
|
|
|
Add_dependency run e2fsprogs-libs
|
2009-03-18 09:02:43 +00:00
|
|
|
Add_dependency full coreutils
|
2009-02-24 07:22:29 +00:00
|
|
|
Add_dependency run ncurses-libs
|
2009-03-18 09:02:43 +00:00
|
|
|
Add_dependency full zlib
|
2008-10-31 01:09:14 +00:00
|
|
|
|
2009-03-05 03:24:00 +00:00
|
|
|
post_configure()
|
|
|
|
{
|
|
|
|
cd $wrksrc
|
2009-03-18 09:02:43 +00:00
|
|
|
for f in $(grep -rl '/etc/adjtime' .); do
|
|
|
|
sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' $f
|
|
|
|
done
|
2009-03-05 03:24:00 +00:00
|
|
|
}
|
|
|
|
|
2008-10-31 01:09:14 +00:00
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Move logger to /bin.
|
2009-03-11 05:31:56 +00:00
|
|
|
install -d -m 755 ${DESTDIR}/bin
|
|
|
|
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
|
|
|
|
mkdir -p ${DESTDIR}/var/lib/hwclock
|
2009-03-28 17:49:46 +00:00
|
|
|
|
|
|
|
# Install the cron daily job.
|
|
|
|
install -D -m755 ${FILESDIR}/adjtime.cron-hourly \
|
|
|
|
${DESTDIR}/etc/cron.hourly/adjtime
|
2008-10-31 01:09:14 +00:00
|
|
|
}
|