util-linux-ng: use /var/lib/hwclock as suggested by LFS.

--HG--
extra : convert_revision : 69e91a921185e4f4ca05349e5482172183b434fa
This commit is contained in:
Juan RP 2009-03-05 04:24:00 +01:00
parent 955f9f3d74
commit 30ddc236cd

View file

@ -21,6 +21,13 @@ Add_dependency run coreutils
Add_dependency run ncurses-libs Add_dependency run ncurses-libs
Add_dependency run zlib Add_dependency run zlib
post_configure()
{
cd $wrksrc
sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g'
-i $(grep -rl '/etc/adjtime' .)
}
post_install() post_install()
{ {
local destdir=$XBPS_DESTDIR/$pkgname-$version local destdir=$XBPS_DESTDIR/$pkgname-$version
@ -28,4 +35,5 @@ post_install()
# Move logger to /bin. # Move logger to /bin.
install -d -m 755 ${destdir}/bin install -d -m 755 ${destdir}/bin
mv ${destdir}/usr/bin/logger ${destdir}/bin mv ${destdir}/usr/bin/logger ${destdir}/bin
mkdir -p ${destdir}/var/lib/hwclock
} }