core/util-linux/Pkgfile

31 lines
889 B
Plaintext
Raw Normal View History

2007-12-05 17:30:18 +01:00
# Description: Miscellaneous system utilities
2017-07-22 02:39:59 +02:00
# URL: https://www.kernel.org/pub/linux/utils/util-linux/
2007-12-05 17:30:18 +01:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2014-09-03 13:41:33 +02:00
# Depends on: eudev ncurses zlib
2007-12-05 17:30:18 +01:00
2012-08-08 10:20:19 +02:00
name=util-linux
2017-09-21 20:37:54 +02:00
version=2.30.2
2015-08-04 15:15:44 +02:00
release=1
2017-06-03 15:12:08 +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() {
2012-08-08 10:20:19 +02:00
cd $name-$version
2007-12-05 17:30:18 +01:00
./configure --prefix=/usr \
2013-10-22 13:13:50 +02:00
--disable-nls \
--disable-{login,su,sulogin,nologin,runuser} \
--disable-chfn-chsh \
2014-08-20 10:35:14 +02:00
--enable-{write,raw,kill} \
2017-06-03 15:12:08 +02:00
--without-python
2013-10-22 13:13:50 +02:00
2009-07-16 14:22:04 +02:00
make
make DESTDIR=$PKG install
2009-07-16 14:22:04 +02:00
install -d $PKG/{etc,var/{lib/libuuid,run/uuidd}}
2007-12-05 17:30:18 +01:00
touch $PKG/etc/adjtime
rm -r $PKG/usr/share/{doc,bash-completion}
2013-10-22 13:13:50 +02:00
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
}