Typo
[linux_from_scratch_hints.git] / OLD / shadow4.txt
blob9e880fc343525d56d9e47cd27b36e3a3b74433c5
1 TITLE:          shadow-4.0.0
2 LFS VERSION:    3.0 (possibly others as well)
3 AUTHOR:         Scott Alfter <salfter@salfter.dyndns.org>
5 SYNOPSIS:
6         Now that the shadow password suite v4 is final, here's a small patch
7 to build it as part of an LFS system in place of the beta version called out
8 in LFS 3.0.
10 HINT:
12 Download the package and the patch (available at these URLs):
14 ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.0.tar.bz2
15 http://salfter.dyndns.org/files/shadow-4.0.0-patch.bz2
17 Unpack the archive and change into its directory.  Apply the patch and build
18 with these commands:
20 bzcat shadow-4.0.0-patch.bz2 | patch -p1 &&
21 cp src/useradd.c src/useradd.c.backup &&
22 sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \
23    src/useradd.c > tmp~ &&
24 mv tmp~ src/useradd.c &&
25 ./configure --prefix=/usr &&
26 make &&
27 make install &&
28 cd etc &&
29 cp limits login.access /etc &&
30 sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs &&
31 cd /lib &&
32 mv libshadow.a /usr/lib &&
33 mv libshadow.la /usr/lib &&
34 ln -sf libshadow.so.0 libshadow.so &&
35 cd /usr/lib &&
36 ln -sf ../../lib/libshadow.so