2018-04-05 21:31:07 +02:00
|
|
|
VERSION="2.32"
|
2018-01-14 16:37:34 +01:00
|
|
|
SRCDIR="util-linux-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/"
|
2018-04-05 21:31:07 +02:00
|
|
|
SHA256SUM="6c7397abc764e32e8159c2e96042874a190303e77adceb4ac5bd502a272a4734"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="bash ncurses zlib"
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-02-09 18:49:17 +01:00
|
|
|
apply_patches
|
2018-01-14 16:37:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
|
|
--prefix="" --host="$TARGET" --sbindir="/bin" \
|
|
|
|
--with-bashcompletiondir="/share/bash-completion/completions" \
|
|
|
|
--disable-pylibmount --disable-static --without-python \
|
|
|
|
--without-systemd --without-systemdsystemunitdir \
|
|
|
|
--disable-cal --disable-chmem --disable-fdformat \
|
|
|
|
--disable-fsck --disable-logger --disable-mesg \
|
|
|
|
--disable-minix --disable-bfs --disable-more \
|
|
|
|
--disable-nologin --disable-nsenter --disable-pivot_root \
|
|
|
|
--disable-raw --disable-sulogin --disable-switch_root \
|
|
|
|
--disable-ul --disable-unshare --disable-utmpdump \
|
|
|
|
--disable-uuidd --disable-wall --disable-zramctl \
|
|
|
|
--disable-makeinstall-chown \
|
|
|
|
--disable-makeinstall-setuid \
|
2018-05-14 00:03:23 +02:00
|
|
|
--enable-agetty
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-02-19 12:43:22 +01:00
|
|
|
local UTIL
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/var/lib/hwclock"
|
|
|
|
|
2018-05-19 21:13:51 +02:00
|
|
|
unfuck_libtool
|
2018-05-14 00:03:23 +02:00
|
|
|
make DESTDIR="$DEPLOY" install
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
if [ -e "$DEPLOY/sbin" ]; then
|
|
|
|
mv ${DEPLOY}/sbin/* ${DEPLOY}/bin
|
|
|
|
fi
|
|
|
|
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-01-14 16:37:34 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "https://www.kernel.org/pub/linux/utils/util-linux" | \
|
|
|
|
grep -o "v[0-9.]*/" | grep -o "[0-9.]*" | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|