42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Description: System utilities for handling file systems consoles partitions and messages.
|
|
# URL: http://freshmeat.net/projects/util-linux/
|
|
# Maintainer: Karel Zak kzak at redhat dot com
|
|
# Packager: milisarge@gmail.com
|
|
name=util-linux
|
|
version=2.27.1
|
|
release=1
|
|
source=(http://www.kernel.org/pub/linux/utils/util-linux/v${version:0:4}/util-linux-$version.tar.xz
|
|
)
|
|
|
|
build()
|
|
{
|
|
cd util-linux-$version
|
|
|
|
mkdir -pv $PKG/var/lib/hwclock
|
|
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
--docdir=/usr/share/doc/$name-$version \
|
|
--disable-chfn-chsh \
|
|
--disable-login \
|
|
--disable-nologin \
|
|
--disable-su \
|
|
--disable-setpriv \
|
|
--disable-runuser \
|
|
--disable-pylibmount \
|
|
--disable-static \
|
|
--without-python \
|
|
--without-systemd \
|
|
--without-systemdsystemunitdir
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mv $PKG/usr/bin/* $PKG/bin/
|
|
rm -r $PKG/usr/bin
|
|
|
|
mv $PKG/usr/sbin/* $PKG/sbin/
|
|
rm -r $PKG/usr/sbin
|
|
rm -r $PKG/usr/share/{doc,bash-completion}
|
|
rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix}
|
|
rm $PKG/usr/share/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8
|
|
}
|