Authentication & PAM Base rearranged from scratch
This commit is contained in:
+16
-22
@@ -10,41 +10,35 @@ from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.touch("ChangeLog")
|
||||
pisitools.flags.add("-fPIC -D_GNU_SOURCE")
|
||||
|
||||
shelltools.system("./conf.sh")
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure("--libdir=/usr/lib \
|
||||
--enable-nls \
|
||||
shelltools.system("sed -e /service_DATA/d \
|
||||
-i modules/pam_namespace/Makefile.am && NOCONFIGURE=1 ./autogen.sh")
|
||||
|
||||
shelltools.system("./pisi-pambase.sh")
|
||||
|
||||
autotools.configure("--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--libdir=/usr/lib \
|
||||
--disable-regenerate-docu \
|
||||
--disable-doc \
|
||||
--disable-audit \
|
||||
--enable-usergroups \
|
||||
--enable-securedir=/lib/security \
|
||||
--enable-isadir=/lib/security")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
--docdir=/usr/share/doc/Linux-PAM-" + get.srcVERSION())
|
||||
|
||||
def build():
|
||||
# Update .po files
|
||||
autotools.make("-C po update-gmo")
|
||||
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
# dlopen check
|
||||
shelltools.system("./dlopen-test.sh")
|
||||
pass
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
|
||||
#pisitools.removeDir("/usr/share/doc/Linux-PAM/")
|
||||
for f in ["system-password", "system-session", "system-account"]:
|
||||
for f in ["system-password", "system-session", "system-account", "system-auth", "other"]:
|
||||
shelltools.system("chmod 755 " + f)
|
||||
pisitools.insinto("/etc/pam.d/", "%s" % f)
|
||||
|
||||
|
||||
shelltools.system("chmod -v 4755 " + get.installDIR() + "/sbin/unix_chkpwd")
|
||||
|
||||
#pisitools.doman("doc/man/*.[0-9]")
|
||||
pisitools.dodoc("CHANGELOG", "Copyright", "README")
|
||||
|
||||
@@ -20,9 +20,12 @@ cat > system-session << "EOF"
|
||||
# Begin /etc/pam.d/system-session
|
||||
|
||||
session required pam_unix.so
|
||||
session required pam_loginuid.so
|
||||
session optional pam_elogind.so
|
||||
|
||||
# End /etc/pam.d/system-session
|
||||
EOF
|
||||
|
||||
cat > system-password << "EOF"
|
||||
# Begin /etc/pam.d/system-password
|
||||
|
||||
+21
-12
@@ -14,27 +14,29 @@
|
||||
<Description>PAM (Pluggable Authentication Modules) is a system security tool that allows system administrators to set authentication policy without having to recompile programs that handle authentication.</Description>
|
||||
<Archive sha1sum="d0f72065b3b3978876b29d55aad6328c5db58247" type="targz">https://github.com/linux-pam/linux-pam/archive/v1.5.1.tar.gz</Archive>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="conf.sh" permission="0755">conf.sh</AdditionalFile>
|
||||
<AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile>
|
||||
<AdditionalFile target="dlopen-test.sh" permission="0755">dlopen-test.sh</AdditionalFile>
|
||||
<AdditionalFile target="pisi-pambase.sh" permission="0755">pisi-pambase.sh</AdditionalFile>
|
||||
<!--AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile>
|
||||
<AdditionalFile target="dlopen-test.sh" permission="0755">dlopen-test.sh</AdditionalFile-->
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
<Dependency>cracklib-devel</Dependency>
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
<Dependency>docbook-xsl</Dependency>
|
||||
<Dependency>libnsl-devel</Dependency>
|
||||
<Dependency>libtirpc-devel</Dependency>
|
||||
<Dependency>audit-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">CVE-2020-27780.patch</Patch> -->
|
||||
<!-- <Patch level="1">fedora/pam-1.4.0-full-relro.patch</Patch> -->
|
||||
</Patches>
|
||||
<!--Patches>
|
||||
<Patch level="1">CVE-2020-27780.patch</Patch>
|
||||
<Patch level="1">fedora/pam-1.4.0-full-relro.patch</Patch>
|
||||
</Patches-->
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pam</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libpwquality</Dependency>
|
||||
<Dependency>cracklib</Dependency>
|
||||
<Dependency>audit</Dependency>
|
||||
<Dependency>libnsl</Dependency>
|
||||
<Dependency>libtirpc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
@@ -70,6 +72,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="8">
|
||||
<Date>2021-06-03</Date>
|
||||
<Version>1.5.1</Version>
|
||||
<Comment>PAM rebuild.</Comment>
|
||||
<Name>Berk Çakar</Name>
|
||||
<Email>berk2238@hotmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2021-04-29</Date>
|
||||
<Version>1.5.1</Version>
|
||||
|
||||
Reference in New Issue
Block a user