From ec152778cd6cc670991445d02e35685e6e3404ed Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Fri, 8 Nov 2013 11:30:18 +0800 Subject: quagga: add pam support for vtysh According to DISTRO_FEATURES to add pam support for quagga, and import configure file from Fedora. Signed-off-by: Hongxu Jia Signed-off-by: Joe MacDonald --- meta-networking/recipes-protocols/quagga/quagga.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'meta-networking/recipes-protocols/quagga/quagga.inc') diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc index b08a74fba3..65ff0402cb 100644 --- a/meta-networking/recipes-protocols/quagga/quagga.inc +++ b/meta-networking/recipes-protocols/quagga/quagga.inc @@ -32,12 +32,14 @@ SRC_URI = "http://download.savannah.gnu.org/releases/quagga${QUAGGASUBDIR}/quagg file://watchquagga.init \ file://watchquagga.default \ file://volatiles.03_quagga \ + file://quagga.pam \ file://ripd-fix-two-bugs-after-received-SIGHUP.patch \ file://quagga-Avoid-duplicate-connected-address.patch \ " -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap" +PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam" inherit autotools update-rc.d useradd @@ -100,6 +102,15 @@ do_install () { # Remove generated info dir file, it doesn't belong in the generated # package. rm -f ${D}${infodir}/dir + + # For PAM + for feature in ${DISTRO_FEATURES}; do + if [ "$feature" = "pam" ]; then + install -D -m 644 ${WORKDIR}/quagga.pam ${D}/${sysconfdir}/pam.d/quagga + break + fi + done + } # Split into a main package and separate per-protocol packages -- cgit v1.2.3-54-g00ecf