2008-10-31 02:09:14 +01:00
|
|
|
# Template file for 'util-linux-ng'
|
|
|
|
pkgname=util-linux-ng
|
2009-02-19 02:04:29 +01:00
|
|
|
version=2.14.2
|
2008-10-31 02:09:14 +01:00
|
|
|
distfiles="http://www.kernel.org/pub/linux/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2"
|
|
|
|
build_style=gnu_configure
|
2009-03-13 23:55:25 +01:00
|
|
|
configure_args="--enable-partx --enable-write"
|
2008-10-31 02:09:14 +01:00
|
|
|
short_desc="Miscellaneous linux utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-02-19 02:04:29 +01:00
|
|
|
checksum=108e63e9a007f6a8c0eff841dd38e0fe3b635c98b35bfac2d89b4b1a1ce0630e
|
2008-10-31 02:09:14 +01: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 16:38:17 +01:00
|
|
|
Add_dependency build e2fsprogs
|
2009-03-18 10:02:43 +01:00
|
|
|
Add_dependency full glibc
|
2009-02-24 08:22:29 +01:00
|
|
|
Add_dependency run e2fsprogs-libs
|
2009-03-18 10:02:43 +01:00
|
|
|
Add_dependency full coreutils
|
2009-02-24 08:22:29 +01:00
|
|
|
Add_dependency run ncurses-libs
|
2009-03-18 10:02:43 +01:00
|
|
|
Add_dependency full zlib
|
2008-10-31 02:09:14 +01:00
|
|
|
|
2009-03-05 04:24:00 +01:00
|
|
|
post_configure()
|
|
|
|
{
|
|
|
|
cd $wrksrc
|
2009-03-18 10:02:43 +01: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 04:24:00 +01:00
|
|
|
}
|
|
|
|
|
2008-10-31 02:09:14 +01:00
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Move logger to /bin.
|
2009-03-11 06:31:56 +01:00
|
|
|
install -d -m 755 ${DESTDIR}/bin
|
|
|
|
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
|
|
|
|
mkdir -p ${DESTDIR}/var/lib/hwclock
|
2008-10-31 02:09:14 +01:00
|
|
|
}
|