mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +00:00
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>
This commit is contained in:
committed by
Joe MacDonald
parent
98367f46aa
commit
ec152778cd
@@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# The PAM configuration file for the quagga `vtysh' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to change user infomation without being
|
||||||
|
# prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# The standard Unix authentication modules, used with
|
||||||
|
# NIS (man nsswitch) as well as normal /etc/passwd and
|
||||||
|
# /etc/shadow entries.
|
||||||
|
auth include common-auth
|
||||||
|
|
||||||
@@ -32,12 +32,14 @@ SRC_URI = "http://download.savannah.gnu.org/releases/quagga${QUAGGASUBDIR}/quagg
|
|||||||
file://watchquagga.init \
|
file://watchquagga.init \
|
||||||
file://watchquagga.default \
|
file://watchquagga.default \
|
||||||
file://volatiles.03_quagga \
|
file://volatiles.03_quagga \
|
||||||
|
file://quagga.pam \
|
||||||
file://ripd-fix-two-bugs-after-received-SIGHUP.patch \
|
file://ripd-fix-two-bugs-after-received-SIGHUP.patch \
|
||||||
file://quagga-Avoid-duplicate-connected-address.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[cap] = "--enable-capabilities,--disable-capabilities,libcap"
|
||||||
|
PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam"
|
||||||
|
|
||||||
inherit autotools update-rc.d useradd
|
inherit autotools update-rc.d useradd
|
||||||
|
|
||||||
@@ -100,6 +102,15 @@ do_install () {
|
|||||||
# Remove generated info dir file, it doesn't belong in the generated
|
# Remove generated info dir file, it doesn't belong in the generated
|
||||||
# package.
|
# package.
|
||||||
rm -f ${D}${infodir}/dir
|
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
|
# Split into a main package and separate per-protocol packages
|
||||||
|
|||||||
Reference in New Issue
Block a user