mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
kmod, don't build cracklib for now
This commit is contained in:
parent
a69fd35f2e
commit
7a68055b39
@ -252,15 +252,15 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash BLFS.01-cracklib.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed BLFS.01-cracklib.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "BLFS Cracklib Complete"
|
||||
sleep 3
|
||||
fi
|
||||
#/bin/bash BLFS.01-cracklib.sh
|
||||
#
|
||||
#if [ $? -ne 0 ]; then
|
||||
# echo "failed BLFS.01-cracklib.sh"
|
||||
# exit 1
|
||||
#else
|
||||
# echo "BLFS Cracklib Complete"
|
||||
# sleep 3
|
||||
#fi
|
||||
|
||||
/bin/bash CH08.26-shadow.sh
|
||||
|
||||
|
@ -122,6 +122,15 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.47-kmod.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.47-kmod.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Kmod Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@ sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \
|
||||
-i etc/login.defs
|
||||
|
||||
|
||||
sed -i 's:DICTPATH.*:DICTPATH\t/lib/cracklib/pw_dict:' etc/login.defs
|
||||
#sed -i 's:DICTPATH.*:DICTPATH\t/lib/cracklib/pw_dict:' etc/login.defs
|
||||
|
||||
|
||||
touch /usr/bin/passwd
|
||||
@ -31,8 +31,7 @@ touch /usr/bin/passwd
|
||||
--disable-static \
|
||||
--with-{b,yes}crypt \
|
||||
--without-libbsd \
|
||||
--with-group-name-max-length=32 \
|
||||
--with-libcrack
|
||||
--with-group-name-max-length=32
|
||||
|
||||
|
||||
make
|
||||
@ -44,10 +43,12 @@ make exec_prefix=/usr install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing shadow"
|
||||
fi
|
||||
make -C man install-man
|
||||
|
||||
pwconv
|
||||
|
||||
grpconv
|
||||
|
||||
echo "You should set the root password now."
|
||||
mkdir -p /etc/default
|
||||
useradd -D --gid 999
|
||||
|
||||
|
||||
|
35
CH8Build/CH08.47-kmod.sh
Normal file
35
CH8Build/CH08.47-kmod.sh
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d kmod-${kmod_version} ] && rm -rf kmod-${kmod_version}
|
||||
|
||||
tar -Jxf ${kmod_tarball}
|
||||
|
||||
cd kmod-${zstd_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-openssl \
|
||||
--with-xz \
|
||||
--with-zstd \
|
||||
--with-zlib \
|
||||
--disable-manpages
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building kmod"
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing kmod"
|
||||
fi
|
||||
for target in depmod insmod modinfo modprobe rmmod; do
|
||||
ln -sfv ../bin/kmod /usr/sbin/$target
|
||||
rm -fv /usr/bin/$target
|
||||
done
|
Loading…
Reference in New Issue
Block a user