void-packages/srcpkgs/util-linux/template

42 lines
1.4 KiB
Plaintext
Raw Normal View History

# Template file for 'util-linux'
pkgname=util-linux
2012-05-27 20:40:57 +02:00
version=2.21.2
2012-07-09 15:44:24 +02:00
revision=2
depends="coreutils shadow"
makedepends="pkg-config zlib-devel ncurses-devel"
2012-05-27 20:40:57 +02:00
replaces="util-linux-ng>=0 e2fsprogs<=1.41.14_1"
subpackages="libmount libmount-devel libblkid libblkid-devel libuuid libuuid-devel"
make_dirs="/var/lib/hwclock 0755 0 0"
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-08-30 09:37:43 +02:00
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"
license="GPL-2"
2012-07-09 15:44:24 +02:00
distfiles="${KERNEL_SITE}/utils/${pkgname}/v2.21/${pkgname}-${version}.tar.xz"
2012-05-27 20:40:57 +02:00
checksum=39b25765a02385dc73580ab5edc3c5a2cecd03c92b42e41b03fd037b1c7cefe6
long_desc="
The ${pkgname} package contains miscellaneous utility programs. Among
them are utilities for handling file systems, consoles, partitions,
and messages."
do_configure() {
2012-07-09 15:44:24 +02:00
./configure ${CONFIGURE_SHARED_ARGS} --bindir=/usr/bin --sbindir=/usr/sbin \
2012-05-27 20:40:57 +02:00
--libdir=/usr/lib --libexecdir=/usr/lib --without-udev \
--enable-partx --enable-write --enable-new-mount \
--enable-libuuid --disable-makeinstall-chown \
--enable-libblkid --enable-fsck --disable-rpath \
--enable-fs-paths-extra=/usr/sbin:/usr/bin \
SUID_CFLAGS="-fPIE" SUID_LDFLAGS="-pie"
}
do_build() {
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i include/pathnames.h
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
2012-05-27 20:40:57 +02:00
# Remove obsolete chkdupexec
rm -f ${DESTDIR}/usr/bin/chkdupexe
rm -f ${DESTDIR}/usr/share/man/man1/chkdupexe.1
}