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
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
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():
lib=("32" if get.buildTYPE()=="emul32" else "")
resetenv()
if lib =="32":
os.environ["CFLAGS"]="-m32"
os.environ["CXXFLAGS"]="-m32"
os.environ["LDFLAGS"]="-m32"
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 \
inarytools.flags.add("-fPIC -D_GNU_SOURCE")
autotools.autoreconf("-fi")
autotools.configure("--libdir=/usr/lib{0} \
--enable-nls \
--enable-audit \
--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():
resetenv()
# Update .po files
autotools.make("-C po update-gmo")
os.system("make")
autotools.make()
def check():
resetenv()
run("make check")
autotools.make("check")
# dlopen check
run("./dlopen-test.sh")
shelltools.system("./dlopen-test.sh")
pass
def install():
pkgdir=get.installDIR()
resetenv()
run("make install DESTDIR=%s" % pkgdir)
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE()=="emul32":
return
inarytools.removeDir("/usr/share/doc/Linux-PAM/")
inarytools.doman("doc/man/*.[0-9]")
inarytools.dodoc("CHANGELOG", "Copyright", "README")
......@@ -14,7 +14,7 @@
<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>
<!-- @@@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>
<AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile>
<AdditionalFile target="dlopen-test.sh" permission="0755">dlopen-test.sh</AdditionalFile>
......@@ -23,6 +23,7 @@
<Dependency>perl</Dependency>
<Dependency>gettext</Dependency>
<Dependency>cracklib-devel</Dependency>
<Dependency>audit-devel</Dependency>
<Dependency>libxslt-devel</Dependency>
<Dependency>docbook-xsl</Dependency>
</BuildDependencies>
......@@ -32,6 +33,7 @@
<Name>pam</Name>
<RuntimeDependencies>
<Dependency>cracklib</Dependency>
<Dependency>audit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
......@@ -46,7 +48,6 @@
</Files>
<AdditionalFiles>
<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>
<Provides>
<SCOM script="package.py">System.Package</SCOM>
......@@ -77,13 +78,6 @@
</Package>
<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">
<Date>2019-12-08</Date>
<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