summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/quagga/quagga.inc
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-11-08 11:30:18 +0800
committerJoe MacDonald <joe@deserted.net>2013-11-26 11:14:31 -0500
commitec152778cd6cc670991445d02e35685e6e3404ed (patch)
tree99c6abd235d1e40b82c39fa6f240ef38ffbde954 /meta-networking/recipes-protocols/quagga/quagga.inc
parent98367f46aab5401e4bc2daf318c9bb9110af463b (diff)
downloadmeta-openembedded-ec152778cd6cc670991445d02e35685e6e3404ed.tar.gz
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 <hongxu.jia@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/quagga.inc')
-rw-r--r--meta-networking/recipes-protocols/quagga/quagga.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-networking/recipes-protocols/quagga/quagga.inc b/meta-networking/recipes-protocols/quagga/quagga.inc
index b08a74fba..65ff0402c 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
32 file://watchquagga.init \ 32 file://watchquagga.init \
33 file://watchquagga.default \ 33 file://watchquagga.default \
34 file://volatiles.03_quagga \ 34 file://volatiles.03_quagga \
35 file://quagga.pam \
35 file://ripd-fix-two-bugs-after-received-SIGHUP.patch \ 36 file://ripd-fix-two-bugs-after-received-SIGHUP.patch \
36 file://quagga-Avoid-duplicate-connected-address.patch \ 37 file://quagga-Avoid-duplicate-connected-address.patch \
37" 38"
38 39
39PACKAGECONFIG ??= "" 40PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
40PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap" 41PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap"
42PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam"
41 43
42inherit autotools update-rc.d useradd 44inherit autotools update-rc.d useradd
43 45
@@ -100,6 +102,15 @@ do_install () {
100 # Remove generated info dir file, it doesn't belong in the generated 102 # Remove generated info dir file, it doesn't belong in the generated
101 # package. 103 # package.
102 rm -f ${D}${infodir}/dir 104 rm -f ${D}${infodir}/dir
105
106 # For PAM
107 for feature in ${DISTRO_FEATURES}; do
108 if [ "$feature" = "pam" ]; then
109 install -D -m 644 ${WORKDIR}/quagga.pam ${D}/${sysconfdir}/pam.d/quagga
110 break
111 fi
112 done
113
103} 114}
104 115
105# Split into a main package and separate per-protocol packages 116# Split into a main package and separate per-protocol packages