vp-build/srcpkgs/util-linux-ng/template
Juan RP 4cb02d243d util-linux-ng: set tty group to wall(1)/write(1) via INSTALL script.
--HG--
extra : convert_revision : c8023146e2d69937d7f2bce5aaf9f3ca74a95084
2010-04-23 15:31:29 +02:00

53 lines
1.5 KiB
Plaintext

# Template file for 'util-linux-ng'
pkgname=util-linux-ng
version=2.17.2
revision=1
distfiles="${KERNEL_SITE}/utils/$pkgname/v2.17/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-partx --enable-write --enable-libuuid
--enable-libblkid --disable-fsck --disable-rpath --with-gnu-ld
--disable-makeinstall-chown"
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=c9ae801b6a5ab20b7749a278a8bf6830ef53adc5e8b7eb0ac1a9f410c774118f
long_desc="
The util-linux-ng package contains miscellaneous utility programs. Among
them are utilities for handling file systems, consoles, partitions,
and messages."
subpackages="libblkid libblkid-devel libuuid libuuid-devel"
# 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 ncursesw
Add_dependency run shadow
Add_dependency build pkg-config
Add_dependency build gettext
Add_dependency build zlib-devel
Add_dependency build ncursesw-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
}