Initial commit of LFS notes and scripts.
This commit is contained in:
42
lfs-scripts/util-linux.sh
Normal file
42
lfs-scripts/util-linux.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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}
|
||||
Reference in New Issue
Block a user