mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
newer util-linux-ng
This commit is contained in:
parent
65b2010cf4
commit
38c85bccdb
1 changed files with 29 additions and 17 deletions
|
@ -1,34 +1,46 @@
|
||||||
# Maintainer: Philipp Scholl <pscholl@bawue.de>
|
# Maintainer: judd <jvinet@zeroflux.org>
|
||||||
|
|
||||||
pkgname=util-linux-ng
|
pkgname=util-linux-ng
|
||||||
pkgver=2.14.2
|
pkgver=2.16
|
||||||
_loop_date=20090214
|
_loop_date=20090725
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Miscellaneous system utilities for Linux"
|
pkgdesc="Miscellaneous system utilities for Linux"
|
||||||
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
||||||
arch=('arm')
|
arch=(i686 x86_64 arm)
|
||||||
groups=('base')
|
groups=('base')
|
||||||
depends=('bash' 'ncurses>=5.7' 'zlib' 'e2fsprogs')
|
depends=('bash' 'ncurses>=5.7' 'zlib')
|
||||||
replaces=('linux32' 'util-linux')
|
replaces=('linux32' 'util-linux')
|
||||||
conflicts=('linux32' 'util-linux')
|
conflicts=('linux32' 'util-linux' 'e2fsprogs<1.41.8-2')
|
||||||
provides=('linux32' 'util-linux')
|
provides=('linux32' 'util-linux')
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.14/${pkgname}-${pkgver}.tar.bz2
|
options=('!libtool')
|
||||||
http://loop-aes.sourceforge.net/updates/${pkgname}-${pkgver}-${_loop_date}.diff.bz2)
|
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.16/${pkgname}-${pkgver}.tar.bz2
|
||||||
md5sums=('b9d0053a22cfcbf0b9c0aa6d6eccfbc8'
|
http://loop-aes.sourceforge.net/updates/${pkgname}-${pkgver}-${_loop_date}.diff.bz2
|
||||||
'72c5b3e961efc1bda2750dbad019e414')
|
fsck-static.patch)
|
||||||
|
install=util-linux-ng.install
|
||||||
|
md5sums=('9623380641b0c2e0449f5b1ecc567663'
|
||||||
|
'1752b93df05410a8df8e84d07d41f048'
|
||||||
|
'35c3ba312782f042b594399b50b8de62')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
# Provide static fsck
|
||||||
|
patch -Np1 -i "${srcdir}/fsck-static.patch" || return 1
|
||||||
|
|
||||||
# cryptoloop support
|
# 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
|
# hardware clock
|
||||||
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c
|
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c || return 1
|
||||||
mkdir -p ${startdir}/pkg/var/lib/hwclock
|
mkdir -p "${pkgdir}/var/lib/hwclock" || return 1
|
||||||
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev
|
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 || 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
|
# 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue