From a3278fe541fd75fd22ae685d682db91872c5fbcd Mon Sep 17 00:00:00 2001 From: Stefan Eichenberger Date: Mon, 8 Aug 2016 16:26:35 +0200 Subject: [PATCH] cockpit: add pam configuration --- recipes-extended/cockpit/cockpit/cockpit.pam | 4 ++++ recipes-extended/cockpit/cockpit_0.115.bb | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/cockpit/cockpit/cockpit.pam diff --git a/recipes-extended/cockpit/cockpit/cockpit.pam b/recipes-extended/cockpit/cockpit/cockpit.pam new file mode 100644 index 0000000..06c6e20 --- /dev/null +++ b/recipes-extended/cockpit/cockpit/cockpit.pam @@ -0,0 +1,4 @@ +#%PAM-1.0 +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so diff --git a/recipes-extended/cockpit/cockpit_0.115.bb b/recipes-extended/cockpit/cockpit_0.115.bb index b27c76a..d200130 100644 --- a/recipes-extended/cockpit/cockpit_0.115.bb +++ b/recipes-extended/cockpit/cockpit_0.115.bb @@ -6,7 +6,9 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" SRCREV = "39be0a69e4b03907a947d957afe20d394179677e" -SRC_URI = "git://github.com/cockpit-project/cockpit.git;protocol=https" +SRC_URI = "git://github.com/cockpit-project/cockpit.git;protocol=https \ + file://cockpit.pam \ + " S = "${WORKDIR}/git" @@ -21,6 +23,7 @@ INHIBIT_PACKAGE_STRIP = "1" FILES_${PN}_append = " \ /lib/* \ /usr/* \ + /etc/* \ " do_configure() { @@ -34,4 +37,7 @@ do_configure() { do_install() { sed -i "s#install-data-local:: doc/guide/html/index.html#bla-install-data-local:: doc/guide/html/index.html#" ./Makefile oe_runmake DESTDIR=${D} install + + mkdir -p ${D}/etc/pam.d/ + cp ${WORKDIR}/cockpit.pam ${D}/etc/pam.d/cockpit }