Details on this package are located in Section 10.23.4, “Contents of Shadow.”
The Shadow package contains programs for handling passwords in a secure way.
Disable the installation of the groups program, as Coreutils provides a better version:
cp -v src/Makefile.in{,.orig}
sed -e 's/groups$(EXEEXT) //' src/Makefile.in.orig > src/Makefile.in
The following cache entries set the values for tests that do not run while cross-compiling:
echo "ac_cv_func_setpgrp_void=yes" > config.cache
Prepare Shadow for compilation:
./configure --prefix=/tools \
--build=${CLFS_HOST} --host=${CLFS_TARGET} --sysconfdir=/etc \
--cache-file=config.cache
The meaning of the configure options:
--sysconfdir=/etc
Tells Shadow to install its configuration files into
/etc, rather than /tools/etc.
Compile the package:
make
This package does not come with a test suite.
Install the package:
make DESTDIR=${CLFS} install
Details on this package are located in Section 10.23.4, “Contents of Shadow.”