-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-util-linux.sh
executable file
·61 lines (52 loc) · 1.42 KB
/
2-util-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
export STAGE=2
. ./environment.sh
. ./package-versions.sh
export FORCE_UNSAFE_CONFIGURE=1
if [ -f $PROGRESS_DIR/2-util-linux-$PASS ] ; then
exit 0
fi
echo "building util-linux..."
set -e
tar xf util-linux-${util_linux_v}.tar.xz
cd util-linux-${util_linux_v}
if [ "$PASS" == "1" ] ; then
mkdir -p /var/lib/hwclock
./configure \
--libdir=/usr/lib \
--runstatedir=/run \
--disable-chfn-chsh \
--disable-login \
--disable-nologin \
--disable-su \
--disable-setpriv \
--disable-runuser \
--disable-pylibmount \
--disable-static \
--without-python \
ADJTIME_PATH=/var/lib/hwclock/adjtime \
--docdir=/usr/share/doc/util-linux-${util_linux_v}
else
sed -i '/test_mkfds/s/^/#/' tests/helpers/Makemodule.am
./configure \
--bindir=/usr/bin \
--libdir=/usr/lib \
--runstatedir=/run \
--sbindir=/usr/sbin \
--disable-chfn-chsh \
--disable-login \
--disable-nologin \
--disable-su \
--disable-setpriv \
--disable-runuser \
--disable-pylibmount \
--disable-static \
--without-python \
ADJTIME_PATH=/var/lib/hwclock/adjtime \
--docdir=/usr/share/doc/util-linux-2.39.1
fi
make
make install
cd ..
rm -rf util-linux-${util_linux_v}
touch $PROGRESS_DIR/2-util-linux-$PASS