shadow-4.12.1

This commit is contained in:
Rmys
2022-08-17 09:48:13 +03:00
committed by GitHub
parent 3a21a71043
commit 0568a47a46
2 changed files with 26 additions and 13 deletions
+7 -3
View File
@@ -10,6 +10,9 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
pisitools.dosed("configure.ac", "man/uk/Makefile", deleteLine=True)
#pisitools.dosed("configure", "man/uk/Makefile", deleteLine=True)
shelltools.unlink('po/uk.*')
shelltools.system("sed -i 's/groups$(EXEEXT) //' src/Makefile.in && \
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; && \
find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; && \
@@ -17,15 +20,16 @@ def setup():
sed -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
-e 's@/var/spool/mail@/var/mail@' \
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
-i etc/login.defs && \
sed -i 's/1000/100/' etc/useradd")
-i etc/login.defs")
shelltools.system("./pisi-shadowbase.sh")
#autotools.autoreconf("-fiv")
autotools.configure("--sysconfdir=/etc \
--with-group-name-max-length=32 \
--with-audit \
--with-libcrack \
--without-selinux \
--with-acl")
def build():
@@ -34,7 +38,7 @@ def build():
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.system("sed -i 's/yes/no/' " + get.installDIR() + "/etc/default/useradd")
#shelltools.system("sed -i 's/yes/no/' " + get.installDIR() + "/etc/default/useradd")
shelltools.system("install -v -m644 " + get.installDIR() + "/etc/login.defs{,.orig}")
for f in ["login", "passwd", "su", "chage", "system-login"]: