summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-protocols')
-rw-r--r--meta-networking/recipes-protocols/quagga/files/quagga.pam13
-rw-r--r--meta-networking/recipes-protocols/quagga/quagga.inc13
2 files changed, 25 insertions, 1 deletions
diff --git a/meta-networking/recipes-protocols/quagga/files/quagga.pam b/meta-networking/recipes-protocols/quagga/files/quagga.pam
new file mode 100644
index 000000000..3541a975a
--- /dev/null
+++ b/meta-networking/recipes-protocols/quagga/files/quagga.pam
@@ -0,0 +1,13 @@
1#
2# The PAM configuration file for the quagga `vtysh' service
3#
4
5# This allows root to change user infomation without being
6# prompted for a password
7auth sufficient pam_rootok.so
8
9# The standard Unix authentication modules, used with
10# NIS (man nsswitch) as well as normal /etc/passwd and
11# /etc/shadow entries.
12auth include common-auth
13
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