1 | #!/bin/bash
|
---|
2 |
|
---|
3 | DEST=/tmp/shadow
|
---|
4 | PACKAGE=shadow-4.4
|
---|
5 |
|
---|
6 | rm -rf $DEST
|
---|
7 | rm -rf $PACKAGE
|
---|
8 |
|
---|
9 | tar -xf $PACKAGE.tar.*
|
---|
10 | cd $PACKAGE
|
---|
11 |
|
---|
12 | sed -i 's/groups$(EXEEXT) //' src/Makefile.in
|
---|
13 | find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
|
---|
14 | find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
|
---|
15 | find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
|
---|
16 |
|
---|
17 | sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
|
---|
18 | -e 's@/var/spool/mail@/var/mail@' etc/login.defs
|
---|
19 |
|
---|
20 | sed -i 's/1000/999/' etc/useradd
|
---|
21 |
|
---|
22 | ./configure --sysconfdir=/etc --with-group-name-max-length=32
|
---|
23 | make
|
---|
24 | make DESTDIR=$DEST install
|
---|
25 | mv -v $DEST/usr/bin/passwd $DEST/bin
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|