40fccb5321
--HG-- rename : srcpkgs/util-linux-ng/INSTALL => srcpkgs/util-linux/INSTALL rename : srcpkgs/util-linux-ng/depends => srcpkgs/util-linux/depends rename : srcpkgs/util-linux-ng/files/adjtime.cron-hourly => srcpkgs/util-linux/files/adjtime.cron-hourly rename : srcpkgs/util-linux-ng/libblkid-devel.template => srcpkgs/util-linux/libblkid-devel.template rename : srcpkgs/util-linux-ng/libblkid.template => srcpkgs/util-linux/libblkid.template rename : srcpkgs/util-linux-ng/libmount-devel.template => srcpkgs/util-linux/libmount-devel.template rename : srcpkgs/util-linux-ng/libmount.template => srcpkgs/util-linux/libmount.template rename : srcpkgs/util-linux-ng/libuuid-devel.template => srcpkgs/util-linux/libuuid-devel.template rename : srcpkgs/util-linux-ng/libuuid.template => srcpkgs/util-linux/libuuid.template rename : srcpkgs/util-linux-ng/template => srcpkgs/util-linux/template
56 lines
1.7 KiB
Text
56 lines
1.7 KiB
Text
# Template file for 'util-linux'
|
|
pkgname=util-linux
|
|
_distver=2.19
|
|
_patchver=rc1
|
|
version=${_distver}${_patchver}
|
|
wrksrc=${pkgname}-${_distver}-${_patchver}
|
|
distfiles="${KERNEL_SITE}/utils/${pkgname}-ng/v${_distver}/${pkgname}-${_distver}-${_patchver}.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=583c122245f301b8cdd27e37a7a1fc774fcf1a73c3d633d9eac0c165e9b573d6
|
|
long_desc="
|
|
The ${pkgname} package contains miscellaneous utility programs. Among
|
|
them are utilities for handling file systems, consoles, partitions,
|
|
and messages."
|
|
|
|
replaces="util-linux-ng>=0"
|
|
subpackages="libmount libmount-devel 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 libmount
|
|
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
|
|
}
|