2011-02-13 05:26:46 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=util-linux-ng
|
2011-02-13 05:26:46 +08:00
|
|
|
pkgver=2.19
|
|
|
|
pkgrel=1
|
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')
|
2011-02-13 05:26:46 +08:00
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v${pkgver}/util-linux-${pkgver}.tar.bz2)
|
2010-03-13 23:25:19 +08:00
|
|
|
optdepends=('perl: for chkdupexe support')
|
|
|
|
install=util-linux-ng.install
|
2011-02-13 05:26:46 +08:00
|
|
|
md5sums=('590ca71aad0b254e2631d84401f28255')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
2011-02-13 05:26:46 +08:00
|
|
|
cd "${srcdir}/util-linux-${pkgver}"
|
2010-03-13 23:25:19 +08:00
|
|
|
# hardware clock
|
2011-02-13 05:26:46 +08:00
|
|
|
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c
|
|
|
|
|
|
|
|
autoreconf
|
|
|
|
automake
|
|
|
|
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev --enable-partx
|
|
|
|
make HAVE_SLN=yes ADD_RAW=yes
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/util-linux-${pkgver}"
|
|
|
|
mkdir -p "${pkgdir}/var/lib/hwclock"
|
|
|
|
make HAVE_SLN=yes ADD_RAW=yes DESTDIR="${pkgdir}" install
|
2010-03-13 23:25:19 +08:00
|
|
|
# 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"
|
|
|
|
}
|
|
|
|
|