Cross-Compiled Linux From Scratch - Version GIT-20170803-Sparc64-Pure64

Chapter 7. If You Are Going to Boot

7.6. Shadow-4.5

The Shadow package contains programs for handling passwords in a secure way.

7.6.1. Installation of Shadow

Disable the installation of the groups program and man pages, as better versions of these programs are provided by Coreutils, Util-linux and Man-pages. Also, prevent Shadow from setting the suid bit on its installed programs:

cp -v src/Makefile.in{,.orig}
sed -e 's/groups$(EXEEXT) //' \
 -e 's/\(^suidu*bins = \).*/1円\\/' \
 src/Makefile.in.orig > src/Makefile.in

Tell Shadow to use passwd in /tools/bin:

cat > config.cache << "EOF"
shadow_cv_passwd_dir=/tools/bin
EOF

Prepare Shadow for compilation:

./configure \
 --prefix=/tools \
 --build=${CLFS_HOST} \
 --host=${CLFS_TARGET} \
 --cache-file=config.cache

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 10.25.4, “Contents of Shadow.”

AltStyle によって変換されたページ (->オリジナル) /