view sources/control-images/lfs-bootstrap/mnt/build/shadow.sh @ 1288:c054a7a36cd9

Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
author Rob Landley <rob@landley.net>
date Wed, 17 Nov 2010 22:09:19 -0600
parents
children 42fd798bbe3e
line wrap: on
line source

#!/bin/sh

# Disable the groups program, coreutils provides a better one.

sed -i 's/groups$(EXEEXT) //' src/Makefile.in &&
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; &&

# Disable Chinese/Korean man pages Man-DB can't format properly.

sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in &&

# Change default password encryption to something that _doesn't_ limit
# password lengths to 8 characters, and change the user mbox location to
# the "new" one everybody started using back in the 1990's.

sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD MD5@' \
       -e 's@/var/spool/mail@/var/mail@' etc/login.defs &&
       
./configure --sysconfdir=/etc &&
make -j $CPUS &&
make install &&
pwconv &&
grpconv