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")
|
||||
|
||||
Reference in New Issue
Block a user