summaryrefslogtreecommitdiff
path: root/meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-11-10 11:30:46 +0100
committerRonan Le Martret <ronan@fridu.net>2014-11-10 11:30:46 +0100
commit57838dbe914c27e7769bb2092515d09960af8a03 (patch)
treecd2d41a367b2008161b4e0d50ac32c689240fc41 /meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc
parent6692c12b884a5acc4e3714d0b89363481be26b8f (diff)
downloadmeta-tizen-57838dbe914c27e7769bb2092515d09960af8a03.tar.gz
meta-tizen-57838dbe914c27e7769bb2092515d09960af8a03.tar.bz2
meta-tizen-57838dbe914c27e7769bb2092515d09960af8a03.zip
split recipes
Change-Id: I6423eb29fa7f48665be5d740c1a9b1dd273f2aa6 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Diffstat (limited to 'meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc')
-rw-r--r--meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc106
1 files changed, 106 insertions, 0 deletions
diff --git a/meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc b/meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc
new file mode 100644
index 00000000..49a54232
--- /dev/null
+++ b/meta-tizen-common-base/recipes-extended/pam/pam-extraconf.inc
@@ -0,0 +1,106 @@
+SRC_URI += "file://system-auth"
+
+INSANE_SKIP_pam-modules-extra = "dev-so"
+
+PROVIDES += 'libpam'
+
+RPROVIDES_${PN} += "libpam"
+RPROVIDES_${PN} += "libpam-runtime"
+
+RPROVIDES_${PN}-modules-extra += "pam-plugin-faildelay"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-securetty"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-nologin"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-env"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-group"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-limits"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-lastlog"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-motd"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-mail"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-shells"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-rootok"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-keyinit"
+RPROVIDES_${PN}-modules-extra += "pam-plugin-loginuid"
+
+EXTRA_OECONF = " --libdir=${prefix}/lib --includedir=${prefix}/include/security --enable-isadir=../..${prefix}/lib/security --disable-audit --with-db-uniquename=_pam --with-libiconv-prefix=/usr --enable-read-both-confs "
+EXTRA_OECONF += "--disable-nis \
+ --disable-regenerate-docu \
+ --disable-prelude"
+
+PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit,"
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+ autotools_do_configure
+ make CFLAGS="$CFLAGS -lfl -lcrypt"
+}
+
+do_install_append() {
+ install -m 0644 ${WORKDIR}/system-auth ${D}${sysconfdir}/pam.d
+}
+
+pam_files += "${prefix}/sbin/*"
+pam_files += "/var/log"
+
+pam-dbg_files += "${prefix}/lib/security/.debug/*"
+pam-dbg_files += "${prefix}/lib/security/pam_filter/.debug/*"
+
+FILES_${PN}-dbg += "${pam-dbg_files}"
+
+pam-dev_files += "${prefix}/include/*"
+pam-dev_files += "${prefix}/lib/security/pam_unix_acct.so"
+pam-dev_files += "${prefix}/lib/security/pam_unix_auth.so"
+pam-dev_files += "${prefix}/lib/security/pam_unix_passwd.so"
+pam-dev_files += "${prefix}/lib/security/pam_unix_session.so"
+
+pam-modules-extra_files = ""
+pam-modules-extra_files += "pam.manifest"
+pam-modules-extra_files += "${prefix}/lib/security/pam_access.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_debug.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_echo.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_exec.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_faildelay.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_filter.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_ftp.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_group.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_issue.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_listfile.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_localuser.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_mail.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_motd.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_pwhistory.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_rhosts.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_shells.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_stress.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_tally.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_time.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_timestamp.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_umask.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_unix_acct.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_unix_auth.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_unix_passwd.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_unix_session.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_warn.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_smack.so"
+pam-modules-extra_files += "${prefix}/lib/security/pam_cracklib.so"
+
+do_install_append() {
+ mkdir -p $D/var/log
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x\$D" == "x" ] && ldconfig
+ if [ ! -a $D/var/log/faillog ] ; then
+ mkdir -p $D/var/log
+ /usr/bin/install -m 600 /dev/null $D/var/log/faillog
+ fi
+ if [ ! -a $D/var/log/tallylog ] ; then
+ mkdir -p $D/var/log
+ /usr/bin/install -m 600 /dev/null $D/var/log/tallylog
+ fi
+}