annotate sources/control-images/lfs-bootstrap/mnt/build/shadow.sh @ 1301:42fd798bbe3e

Make more of the LFS build actually build.
author Rob Landley <rob@landley.net>
date Mon, 22 Nov 2010 17:53:17 -0600
parents c054a7a36cd9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1288
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/sh
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # Disable the groups program, coreutils provides a better one.
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 sed -i 's/groups$(EXEEXT) //' src/Makefile.in &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
7
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 # Disable Chinese/Korean man pages Man-DB can't format properly.
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
9
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
11
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 # Change default password encryption to something that _doesn't_ limit
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 # password lengths to 8 characters, and change the user mbox location to
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 # the "new" one everybody started using back in the 1990's.
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
15
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD MD5@' \
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 -e 's@/var/spool/mail@/var/mail@' etc/login.defs &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
18
1301
42fd798bbe3e Make more of the LFS build actually build.
Rob Landley <rob@landley.net>
parents: 1288
diff changeset
19 ./configure --sysconfdir=/etc --without-nscd &&
1288
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
20 make -j $CPUS &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
21 make install &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
22 pwconv &&
c054a7a36cd9 Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff changeset
23 grpconv