mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
Make use of the new bb.utils.filter() function
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
b4524eb786
commit
0c31f55bcf
@@ -36,14 +36,14 @@ CFLAGS += " -D_GNU_SOURCE -Wno-deprecated-declarations"
|
||||
LDFLAGS += " -L${STAGING_LIBDIR} -lutil -lcrypt"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG += " ${@bb.utils.contains("DISTRO_FEATURES", "pam", "pam", "", d)}"
|
||||
PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
|
||||
PACKAGECONFIG[pam] = " , --without-pam, libpam, libpam"
|
||||
|
||||
do_configure () {
|
||||
./configure --prefix=${prefix} --exec-prefix=${exec_prefix}
|
||||
echo "INSTALLROOT=${D}" > MCONFIG
|
||||
|
||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then
|
||||
if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then
|
||||
echo "USE_PAM=1" >> MCONFIG
|
||||
fi
|
||||
|
||||
@@ -65,7 +65,7 @@ do_install () {
|
||||
'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \
|
||||
'MANDIR=${mandir}' install
|
||||
|
||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then
|
||||
if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then
|
||||
install -d ${D}${sysconfdir}/pam.d
|
||||
install -m 0644 debian/hosts.equiv ${D}/${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/rexec.pam ${D}/${sysconfdir}/pam.d/rexec
|
||||
|
||||
Reference in New Issue
Block a user