43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Set the package we're building.
|
|
package="util-linux-2.40.2"
|
|
extension=".tar.xz"
|
|
|
|
# Decompress the source.
|
|
echo "Unpacking ${package}${extension} ..."
|
|
tar xvf ${package}${extension}
|
|
|
|
# Enter the unpacked sources.
|
|
echo "Entering ${package} directory ..."
|
|
cd ${package}
|
|
|
|
# LFS commands.
|
|
./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-liblastlog2 \
|
|
--disable-static \
|
|
--without-python \
|
|
--without-systemd \
|
|
--without-systemdsystemunitdir \
|
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
--docdir=/usr/share/doc/util-linux-2.40.2
|
|
make
|
|
# skipping tests
|
|
make install
|
|
|
|
# Exit sources directory.
|
|
echo "Exiting ${package} directory ..."
|
|
cd ..
|
|
|
|
# Remove the directory of source files.
|
|
echo "Removing ${package} directory ..."
|
|
rm -rf ${package}
|