2010-05-16 23:08:55 +08:00
|
|
|
# $Id: PKGBUILD 78106 2010-04-19 10:52:18Z allan $
|
2010-03-13 23:25:19 +08:00
|
|
|
# Maintainer: judd <jvinet@zeroflux.org>
|
|
|
|
pkgname=util-linux-ng
|
2010-05-16 23:08:55 +08:00
|
|
|
pkgver=2.17.2
|
|
|
|
pkgrel=2
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Miscellaneous system utilities for Linux"
|
|
|
|
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
groups=('base')
|
2010-05-16 23:08:55 +08:00
|
|
|
depends=('bash' 'ncurses>=5.7' 'zlib' 'filesystem')
|
2010-03-13 23:25:19 +08:00
|
|
|
replaces=('linux32' 'util-linux')
|
|
|
|
conflicts=('linux32' 'util-linux' 'e2fsprogs<1.41.8-2')
|
|
|
|
provides=('linux32' 'util-linux')
|
|
|
|
license=('GPL2')
|
|
|
|
options=('!libtool')
|
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.17/${pkgname}-${pkgver}.tar.bz2
|
|
|
|
fsck-static.patch)
|
|
|
|
optdepends=('perl: for chkdupexe support')
|
|
|
|
install=util-linux-ng.install
|
2010-05-16 23:08:55 +08:00
|
|
|
md5sums=('4635725a3eef1c57090bac8ea5e082e6'
|
2010-03-13 23:25:19 +08:00
|
|
|
'499f80605a50d1c7b27894f3319343e8')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# Provide static fsck
|
|
|
|
patch -Np1 -i "${srcdir}/fsck-static.patch" || return 1
|
|
|
|
# hardware clock
|
|
|
|
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c || return 1
|
|
|
|
mkdir -p "${pkgdir}/var/lib/hwclock" || return 1
|
|
|
|
autoreconf || return 1
|
|
|
|
automake || return 1
|
|
|
|
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev --enable-partx || return 1
|
|
|
|
make HAVE_SLN=yes ADD_RAW=yes || return 1
|
|
|
|
make HAVE_SLN=yes ADD_RAW=yes DESTDIR="${pkgdir}" install || return 1
|
|
|
|
# remove files
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|