void-packages/srcpkgs/util-linux/template

55 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template file for 'util-linux'
pkgname=util-linux
2011-08-30 09:37:43 +02:00
_distver=2.20
2011-10-20 16:45:17 +02:00
_patchver=".1"
2011-08-30 09:37:43 +02:00
version=${_distver}${_patchver}
revision=2
2011-05-03 12:21:15 +02:00
wrksrc=${pkgname}-${version}
2011-10-20 16:45:17 +02:00
#distfiles="${KERNEL_SITE}/utils/${pkgname}/v${_distver}/${pkgname}-${version}.tar.bz2"
distfiles="ftp://ftp.infradead.org/pub/${pkgname}/v2.20/${pkgname}-${version}.tar.bz2"
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"
2011-10-20 16:45:17 +02:00
checksum=d16ebcda3e64ab88ed363d9c1242cdb7ccfd5e1f56c83d0c3b0638c23793bbe0
long_desc="
The ${pkgname} package contains miscellaneous utility programs. Among
them are utilities for handling file systems, consoles, partitions,
and messages."
2011-06-25 22:03:35 +02:00
replaces="util-linux-ng>=0 e2fsprogs<=1.41.14_1"
subpackages="libmount libmount-devel libblkid libblkid-devel libuuid libuuid-devel"
2011-11-09 16:07:37 +01:00
make_dirs="/var/lib/hwclock 0755 0 0"
Add_dependency run coreutils
Add_dependency run shadow
Add_dependency build pkg-config
Add_dependency build gettext
Add_dependency build zlib-devel
Add_dependency build ncurses-devel
do_configure()
{
./configure ${CONFIGURE_SHARED_ARGS} \
--enable-partx --enable-write \
--enable-libuuid --disable-makeinstall-chown \
--enable-libblkid --enable-fsck --disable-rpath \
--enable-libmount-mount
}
do_build()
{
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i include/pathnames.h
make ${makejobs}
}
do_install()
{
make DESTDIR=${DESTDIR} install
# Move logger to /bin.
vmkdir bin
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
vmkdir var/lib/hwclock
}