summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-02-27 14:02:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 11:17:45 +0000
commit254bfb107134702d8d1e0bfbdd1b011212e8c291 (patch)
tree188ddf3ea786bc1b913904330e4f95125bd6def4 /meta/recipes-extended
parentdec5650bc292aa3c4a0a04ace72d2cf762e9620b (diff)
downloadpoky-254bfb107134702d8d1e0bfbdd1b011212e8c291.tar.gz
recipes: Make use of the new bb.utils.filter() function
(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/at/at_3.1.20.bb2
-rw-r--r--meta/recipes-extended/cronie/cronie_1.5.1.bb2
-rw-r--r--meta/recipes-extended/cups/cups.inc3
-rw-r--r--meta/recipes-extended/iptables/iptables_1.6.1.bb3
-rw-r--r--meta/recipes-extended/libarchive/libarchive_3.2.2.bb4
-rw-r--r--meta/recipes-extended/lighttpd/lighttpd_1.4.45.bb2
-rw-r--r--meta/recipes-extended/logrotate/logrotate_3.9.1.bb5
-rw-r--r--meta/recipes-extended/psmisc/psmisc.inc2
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb2
-rw-r--r--meta/recipes-extended/screen/screen_4.4.0.bb2
-rw-r--r--meta/recipes-extended/shadow/shadow.inc2
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.18p1.bb2
-rw-r--r--meta/recipes-extended/wget/wget.inc2
13 files changed, 13 insertions, 20 deletions
diff --git a/meta/recipes-extended/at/at_3.1.20.bb b/meta/recipes-extended/at/at_3.1.20.bb
index 85459b6403..904899f1c7 100644
--- a/meta/recipes-extended/at/at_3.1.20.bb
+++ b/meta/recipes-extended/at/at_3.1.20.bb
@@ -65,7 +65,7 @@ do_install () {
65 install -m 0644 ${WORKDIR}/atd.service ${D}${systemd_unitdir}/system 65 install -m 0644 ${WORKDIR}/atd.service ${D}${systemd_unitdir}/system
66 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/atd.service 66 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/atd.service
67 67
68 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then 68 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
69 install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd 69 install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd
70 fi 70 fi
71} 71}
diff --git a/meta/recipes-extended/cronie/cronie_1.5.1.bb b/meta/recipes-extended/cronie/cronie_1.5.1.bb
index 99b2bb5c83..ad616d5c60 100644
--- a/meta/recipes-extended/cronie/cronie_1.5.1.bb
+++ b/meta/recipes-extended/cronie/cronie_1.5.1.bb
@@ -28,7 +28,7 @@ SRC_URI[sha256sum] = "6c73666102a6b5d35e2eaf1bd06925f2d4b0cef8d3323c37286dda3089
28 28
29inherit autotools update-rc.d useradd systemd 29inherit autotools update-rc.d useradd systemd
30 30
31PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" 31PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
32 32
33PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit," 33PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit,"
34PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,${PAM_DEPS}" 34PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,${PAM_DEPS}"
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index e69f178cf2..c3fa45941c 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -24,8 +24,7 @@ GROUPADD_PARAM_${PN} = "--system lpadmin"
24SYSTEMD_SERVICE_${PN} = "org.cups.cupsd.socket org.cups.cupsd.path org.cups.cupsd.service org.cups.cups-lpd.socket org.cups.cups-lpd@.service" 24SYSTEMD_SERVICE_${PN} = "org.cups.cupsd.socket org.cups.cupsd.path org.cups.cupsd.service org.cups.cups-lpd.socket org.cups.cups-lpd@.service"
25 25
26PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ 26PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ 27 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}"
28 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
29PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" 28PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi"
30PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" 29PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl"
31PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" 30PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam"
diff --git a/meta/recipes-extended/iptables/iptables_1.6.1.bb b/meta/recipes-extended/iptables/iptables_1.6.1.bb
index 9b4c05095a..4019e2a4a4 100644
--- a/meta/recipes-extended/iptables/iptables_1.6.1.bb
+++ b/meta/recipes-extended/iptables/iptables_1.6.1.bb
@@ -32,8 +32,7 @@ inherit autotools pkgconfig
32 32
33EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \ 33EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \
34 " 34 "
35PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \ 35PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
36 "
37 36
38PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 37PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
39 38
diff --git a/meta/recipes-extended/libarchive/libarchive_3.2.2.bb b/meta/recipes-extended/libarchive/libarchive_3.2.2.bb
index a7ec621fb9..5e9c1184b6 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.2.2.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.2.2.bb
@@ -11,9 +11,7 @@ PACKAGECONFIG ?= "zlib bz2"
11 11
12PACKAGECONFIG_append_class-target = "\ 12PACKAGECONFIG_append_class-target = "\
13 libxml2 \ 13 libxml2 \
14 ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ 14 ${@bb.utils.filter('DISTRO_FEATURES', 'acl largefile xattr', d)} \
15 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'largefile', '', d)} \
17" 15"
18 16
19PACKAGECONFIG_append_class-nativesdk = " largefile" 17PACKAGECONFIG_append_class-nativesdk = " largefile"
diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.45.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.45.bb
index c82d93b8a2..55218518fa 100644
--- a/meta/recipes-extended/lighttpd/lighttpd_1.4.45.bb
+++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.45.bb
@@ -24,7 +24,7 @@ SRC_URI[md5sum] = "a128e1eda76899ce3fd115efae5fe631"
24SRC_URI[sha256sum] = "1c97225deea33eefba6d4158c2cef27913d47553263516bbe9d2e2760fc43a3f" 24SRC_URI[sha256sum] = "1c97225deea33eefba6d4158c2cef27913d47553263516bbe9d2e2760fc43a3f"
25 25
26PACKAGECONFIG ??= "openssl pcre zlib \ 26PACKAGECONFIG ??= "openssl pcre zlib \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \ 27 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'lfs', '', d)} \ 28 ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'lfs', '', d)} \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ 29 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
30" 30"
diff --git a/meta/recipes-extended/logrotate/logrotate_3.9.1.bb b/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
index 5f1a601aeb..9c2dfe0a13 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
@@ -19,10 +19,7 @@ SRC_URI = "https://fedorahosted.org/releases/l/o/logrotate/logrotate-${PV}.tar.g
19SRC_URI[md5sum] = "4492b145b6d542e4a2f41e77fa199ab0" 19SRC_URI[md5sum] = "4492b145b6d542e4a2f41e77fa199ab0"
20SRC_URI[sha256sum] = "022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545" 20SRC_URI[sha256sum] = "022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545"
21 21
22PACKAGECONFIG ?= "\ 22PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"
23 ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
25"
26 23
27PACKAGECONFIG[acl] = ",,acl" 24PACKAGECONFIG[acl] = ",,acl"
28PACKAGECONFIG[selinux] = ",,libselinux" 25PACKAGECONFIG[selinux] = ",,libselinux"
diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
index 98a84709a1..22b2e850a3 100644
--- a/meta/recipes-extended/psmisc/psmisc.inc
+++ b/meta/recipes-extended/psmisc/psmisc.inc
@@ -15,7 +15,7 @@ S = "${WORKDIR}/psmisc-${PV}"
15 15
16inherit autotools gettext 16inherit autotools gettext
17 17
18PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" 18PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
19PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 19PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
20 20
21ALLOW_EMPTY_${PN} = "1" 21ALLOW_EMPTY_${PN} = "1"
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb
index 53cd59d833..4911fe51e8 100644
--- a/meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb
+++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb
@@ -43,7 +43,7 @@ USERADD_PACKAGES = "${PN}"
43USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \ 43USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \
44 --shell /bin/false --user-group rpc" 44 --shell /bin/false --user-group rpc"
45 45
46PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" 46PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
47PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/, \ 47PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/, \
48 --without-systemdsystemunitdir, \ 48 --without-systemdsystemunitdir, \
49 systemd \ 49 systemd \
diff --git a/meta/recipes-extended/screen/screen_4.4.0.bb b/meta/recipes-extended/screen/screen_4.4.0.bb
index 769bac162b..f2c57b5370 100644
--- a/meta/recipes-extended/screen/screen_4.4.0.bb
+++ b/meta/recipes-extended/screen/screen_4.4.0.bb
@@ -38,7 +38,7 @@ EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \
38 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" 38 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}"
39 39
40do_install_append () { 40do_install_append () {
41 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then 41 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
42 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen 42 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen
43 fi 43 fi
44} 44}
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 4c4db0013f..99ffac35d1 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -74,7 +74,7 @@ PAM_PLUGINS = "libpam-runtime \
74 pam-plugin-shells \ 74 pam-plugin-shells \
75 pam-plugin-rootok" 75 pam-plugin-rootok"
76 76
77PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" 77PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
78PACKAGECONFIG_class-native = "" 78PACKAGECONFIG_class-native = ""
79PACKAGECONFIG_class-nativesdk = "" 79PACKAGECONFIG_class-nativesdk = ""
80PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" 80PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}"
diff --git a/meta/recipes-extended/sudo/sudo_1.8.18p1.bb b/meta/recipes-extended/sudo/sudo_1.8.18p1.bb
index 95e1b84d2b..be6b469e48 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.18p1.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.18p1.bb
@@ -20,7 +20,7 @@ EXTRA_OECONF += " \
20 " 20 "
21 21
22do_install_append () { 22do_install_append () {
23 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then 23 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
24 install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo 24 install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo
25 fi 25 fi
26 26
diff --git a/meta/recipes-extended/wget/wget.inc b/meta/recipes-extended/wget/wget.inc
index 3b223a3df8..9eb051ff6a 100644
--- a/meta/recipes-extended/wget/wget.inc
+++ b/meta/recipes-extended/wget/wget.inc
@@ -18,7 +18,7 @@ RRECOMMENDS_${PN} += "ca-certificates"
18 18
19BBCLASSEXTEND += "nativesdk" 19BBCLASSEXTEND += "nativesdk"
20 20
21PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" 21PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
22PACKAGECONFIG[libuuid] = "--with-libuuid, --without-libuuid,util-linux" 22PACKAGECONFIG[libuuid] = "--with-libuuid, --without-libuuid,util-linux"
23PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 23PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
24 24