Kaydet (Commit) ee8ed57f authored tarafından Adınız's avatar Adınız

pam downgrade

üst d07bc62d
...@@ -8,46 +8,38 @@ from inary.actionsapi import autotools ...@@ -8,46 +8,38 @@ from inary.actionsapi import autotools
from inary.actionsapi import inarytools from inary.actionsapi import inarytools
from inary.actionsapi import shelltools from inary.actionsapi import shelltools
from inary.actionsapi import get from inary.actionsapi import get
import os
def resetenv():
os.environ.clear()
os.environ["PATH"]="/bin:/usr/bin:/usr/sbin:/sbin"
def run(cmd):
print(cmd)
i=os.system(cmd)
if i!=0:
exit(i)
def setup(): def setup():
lib=("32" if get.buildTYPE()=="emul32" else "") inarytools.flags.add("-fPIC -D_GNU_SOURCE")
resetenv()
if lib =="32": autotools.autoreconf("-fi")
os.environ["CFLAGS"]="-m32" autotools.configure("--libdir=/usr/lib{0} \
os.environ["CXXFLAGS"]="-m32" --enable-nls \
os.environ["LDFLAGS"]="-m32" --enable-audit \
run("sed -e 's/pam_rhosts//g' -i modules/Makefile.am")
run(" autoreconf -fvi")
run("./configure --libdir=/usr/lib{0} \
--disable-nls \
--disable-db \
--disable-selinux \
--enable-securedir=/lib{0}/security \ --enable-securedir=/lib{0}/security \
--enable-isadir='.'".format(lib)) --enable-isadir='.'".format("32" if get.buildTYPE()=="emul32" else ""))
inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build(): def build():
resetenv() # Update .po files
autotools.make("-C po update-gmo")
os.system("make") autotools.make()
def check(): def check():
resetenv() autotools.make("check")
run("make check")
# dlopen check # dlopen check
run("./dlopen-test.sh") shelltools.system("./dlopen-test.sh")
pass
def install(): def install():
pkgdir=get.installDIR() autotools.rawInstall("DESTDIR=%s" % get.installDIR())
resetenv() if get.buildTYPE()=="emul32":
run("make install DESTDIR=%s" % pkgdir) return
inarytools.removeDir("/usr/share/doc/Linux-PAM/")
inarytools.doman("doc/man/*.[0-9]")
inarytools.dodoc("CHANGELOG", "Copyright", "README")
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<Summary>Pluggable Authentication Modules</Summary> <Summary>Pluggable Authentication Modules</Summary>
<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> <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>
<!-- @@@github linux-pam linux-pam --> <!-- @@@github linux-pam linux-pam -->
<Archive sha1sum="ad43b7fbdfdd38886fdf27e098b49f2db1c2a13d" >https://github.com/linux-pam/linux-pam/releases/download/v1.5.1/Linux-PAM-1.5.1.tar.xz</Archive> <Archive sha1sum="e89b6d279c9bf8cb495dfc0b3f3931eb50f818e9" type="tarxz">https://github.com/linux-pam/linux-pam/releases/download/v1.3.1/Linux-PAM-1.3.1.tar.xz</Archive>
<AdditionalFiles> <AdditionalFiles>
<AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile> <AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile>
<AdditionalFile target="dlopen-test.sh" permission="0755">dlopen-test.sh</AdditionalFile> <AdditionalFile target="dlopen-test.sh" permission="0755">dlopen-test.sh</AdditionalFile>
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<Dependency>perl</Dependency> <Dependency>perl</Dependency>
<Dependency>gettext</Dependency> <Dependency>gettext</Dependency>
<Dependency>cracklib-devel</Dependency> <Dependency>cracklib-devel</Dependency>
<Dependency>audit-devel</Dependency>
<Dependency>libxslt-devel</Dependency> <Dependency>libxslt-devel</Dependency>
<Dependency>docbook-xsl</Dependency> <Dependency>docbook-xsl</Dependency>
</BuildDependencies> </BuildDependencies>
...@@ -32,6 +33,7 @@ ...@@ -32,6 +33,7 @@
<Name>pam</Name> <Name>pam</Name>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>cracklib</Dependency> <Dependency>cracklib</Dependency>
<Dependency>audit</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="config">/etc</Path> <Path fileType="config">/etc</Path>
...@@ -46,7 +48,6 @@ ...@@ -46,7 +48,6 @@
</Files> </Files>
<AdditionalFiles> <AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/limit.d/90-nproc.conf">90-nproc.conf</AdditionalFile> <AdditionalFile owner="root" permission="0644" target="/etc/limit.d/90-nproc.conf">90-nproc.conf</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/pam.conf">pam.faillock.tmpfiles</AdditionalFile>
</AdditionalFiles> </AdditionalFiles>
<Provides> <Provides>
<SCOM script="package.py">System.Package</SCOM> <SCOM script="package.py">System.Package</SCOM>
...@@ -77,13 +78,6 @@ ...@@ -77,13 +78,6 @@
</Package> </Package>
<History> <History>
<Update release="6">
<Date>2019-12-08</Date>
<Version>1.5.1</Version>
<Comment>PAM is released up.</Comment>
<Name>Süleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
<Update release="5"> <Update release="5">
<Date>2019-12-08</Date> <Date>2019-12-08</Date>
<Version>1.3.1</Version> <Version>1.3.1</Version>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment