You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
757 B
30 lines
757 B
#!/usr/bin/env bash |
|
|
|
find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; |
|
find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; |
|
|
|
sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \ |
|
-e 's:/var/spool/mail:/var/mail:' \ |
|
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ |
|
-i etc/login.defs |
|
|
|
touch /usr/bin/passwd |
|
./configure --sysconfdir=/etc \ |
|
--disable-static \ |
|
--with-{b,yes}crypt \ |
|
--without-libbsd \ |
|
--disable-logind \ |
|
--with-group-name-max-length=32 |
|
|
|
make |
|
|
|
make exec_prefix=/usr install |
|
make -C man install-man |
|
|
|
pwconv |
|
grpconv |
|
|
|
mkdir -p /etc/default |
|
useradd -D --gid 999 |
|
|
|
echo "root:$(basename "$(pwd)")" | chpasswd
|
|
|