mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
3363827c78
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
63 lines
1.8 KiB
Text
Executable file
63 lines
1.8 KiB
Text
Executable file
VERSION="2.32"
|
|
SRCDIR="util-linux-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/"
|
|
SHA256SUM="6c7397abc764e32e8159c2e96042874a190303e77adceb4ac5bd502a272a4734"
|
|
DEPENDS="bash ncurses zlib"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
$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 \
|
|
--enable-agetty \
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
local DEVDEPLOY="$3"
|
|
local UTIL
|
|
|
|
mkdir -p "$DEPLOY/var/lib/hwclock"
|
|
|
|
make DESTDIR="$DEPLOY" install-strip
|
|
|
|
rm -r "$DEPLOY/share/man" "$DEPLOY/share/doc"
|
|
|
|
if [ -e "$DEPLOY/sbin" ]; then
|
|
mv ${DEPLOY}/sbin/* ${DEPLOY}/bin
|
|
rmdir ${DEPLOY}/sbin
|
|
fi
|
|
|
|
for UTIL in chcpu chrt col colcrt colrm column ctrlaltdel setarch \
|
|
isosize look lsns mcookie mkfs mkswap readprofile rev \
|
|
script scriptreplay setsid swaplabel swapoff swapon \
|
|
uname26 i386 linux32 linux64 whereis last lastb \
|
|
lslogins fsck.cramfs mkfs.cramfs;
|
|
do
|
|
local path="$DEPLOY/bin/$UTIL"
|
|
|
|
if [ -f "$path" ] || [ -L "$path" ]; then
|
|
rm "$path"
|
|
fi
|
|
done
|
|
|
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
|
}
|