31 lines
889 B
Plaintext
31 lines
889 B
Plaintext
# Description: Miscellaneous system utilities
|
|
# URL: http://userweb.kernel.org/~kzak/util-linux-ng/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: eudev ncurses zlib
|
|
|
|
name=util-linux
|
|
version=2.28.2
|
|
release=1
|
|
source=(https://www.kernel.org/pub/linux/utils/$name/v2.28/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-nls \
|
|
--disable-{login,su,sulogin,nologin,runuser} \
|
|
--disable-chfn-chsh \
|
|
--enable-{write,raw,kill} \
|
|
--without-python
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/{etc,var/{lib/libuuid,run/uuidd}}
|
|
touch $PKG/etc/adjtime
|
|
|
|
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
|
|
}
|