diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-11-08 11:30:18 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-11-26 11:14:31 -0500 |
commit | ec152778cd6cc670991445d02e35685e6e3404ed (patch) | |
tree | 99c6abd235d1e40b82c39fa6f240ef38ffbde954 /meta-networking/recipes-protocols | |
parent | 98367f46aab5401e4bc2daf318c9bb9110af463b (diff) | |
download | meta-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')
-rw-r--r-- | meta-networking/recipes-protocols/quagga/files/quagga.pam | 13 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga.inc | 13 |
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 | ||
7 | auth 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. | ||
12 | auth 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 | ||
39 | PACKAGECONFIG ??= "" | 40 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
40 | PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap" | 41 | PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap" |
42 | PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam" | ||
41 | 43 | ||
42 | inherit autotools update-rc.d useradd | 44 | inherit 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 |