newer util-linux-ng

This commit is contained in:
root 2009-11-01 09:59:10 -08:00
parent 65b2010cf4
commit 38c85bccdb

View file

@ -1,34 +1,46 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=util-linux-ng
pkgver=2.14.2
_loop_date=20090214
pkgver=2.16
_loop_date=20090725
pkgrel=1
pkgdesc="Miscellaneous system utilities for Linux"
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
arch=('arm')
arch=(i686 x86_64 arm)
groups=('base')
depends=('bash' 'ncurses>=5.7' 'zlib' 'e2fsprogs')
depends=('bash' 'ncurses>=5.7' 'zlib')
replaces=('linux32' 'util-linux')
conflicts=('linux32' 'util-linux')
conflicts=('linux32' 'util-linux' 'e2fsprogs<1.41.8-2')
provides=('linux32' 'util-linux')
license=('GPL2')
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.14/${pkgname}-${pkgver}.tar.bz2
http://loop-aes.sourceforge.net/updates/${pkgname}-${pkgver}-${_loop_date}.diff.bz2)
md5sums=('b9d0053a22cfcbf0b9c0aa6d6eccfbc8'
'72c5b3e961efc1bda2750dbad019e414')
options=('!libtool')
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.16/${pkgname}-${pkgver}.tar.bz2
http://loop-aes.sourceforge.net/updates/${pkgname}-${pkgver}-${_loop_date}.diff.bz2
fsck-static.patch)
install=util-linux-ng.install
md5sums=('9623380641b0c2e0449f5b1ecc567663'
'1752b93df05410a8df8e84d07d41f048'
'35c3ba312782f042b594399b50b8de62')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cd "${srcdir}/${pkgname}-${pkgver}"
# Provide static fsck
patch -Np1 -i "${srcdir}/fsck-static.patch" || return 1
# cryptoloop support
patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-${_loop_date}.diff || return 1
patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-${_loop_date}.diff" || return 1
# hardware clock
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c
mkdir -p ${startdir}/pkg/var/lib/hwclock
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c || return 1
mkdir -p "${pkgdir}/var/lib/hwclock" || return 1
autoconf || return 1
automake || return 1
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev || return 1
make HAVE_SLN=yes ADD_RAW=yes || return 1
make HAVE_SLN=yes ADD_RAW=yes DESTDIR=${startdir}/pkg install || return 1
make HAVE_SLN=yes ADD_RAW=yes DESTDIR="${pkgdir}" install || return 1
# remove files
rm -f ${pkgdir}/bin/kill
rm -f "${pkgdir}/bin/kill"
rm -f "${pkgdir}/usr/share/man/man1/kill.1"
rm -f "${pkgdir}/usr/share/man/man5/nfs.5"
rm -f "${pkgdir}/usr/share/info/dir"
gzip -9 "${pkgdir}/usr/share/info/ipc.info" || return 1
}