2007-12-05 17:30:18 +01:00
|
|
|
# Description: Miscellaneous system utilities
|
2021-06-01 18:59:24 +02:00
|
|
|
# URL: https://github.com/karelzak/util-linux
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2021-12-13 11:48:15 +01:00
|
|
|
# Depends on: bzip2 eudev file readline xz
|
2007-12-05 17:30:18 +01:00
|
|
|
|
2012-08-08 10:20:19 +02:00
|
|
|
name=util-linux
|
2023-12-05 12:22:46 +01:00
|
|
|
version=2.39.3
|
2015-08-04 15:15:44 +02:00
|
|
|
release=1
|
2022-03-28 16:54:25 +02:00
|
|
|
source=(https://www.kernel.org/pub/linux/utils/$name/v${version:0:4}/$name-$version.tar.xz)
|
2007-12-05 17:30:18 +01:00
|
|
|
|
|
|
|
build() {
|
2023-08-21 21:49:13 +02:00
|
|
|
cd $name-$version
|
2009-05-15 13:21:25 +02:00
|
|
|
|
2023-08-21 21:49:13 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-{write,kill} \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-asciidoc \
|
|
|
|
--disable-{login,su,sulogin,nologin,runuser,raw} \
|
|
|
|
--disable-chfn-chsh \
|
|
|
|
--without-python
|
2013-10-22 13:13:50 +02:00
|
|
|
|
2023-08-21 21:49:13 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2009-05-15 13:21:25 +02:00
|
|
|
|
2023-08-21 21:49:13 +02:00
|
|
|
install -d $PKG/{etc,var/lib/libuuid}
|
|
|
|
touch $PKG/etc/adjtime
|
2007-12-05 17:30:18 +01:00
|
|
|
|
2023-08-21 21:49:13 +02:00
|
|
|
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix}
|
|
|
|
rm $PKG/usr/share/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8
|
2007-12-05 17:30:18 +01:00
|
|
|
}
|