aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIn Long <inlong_tec@163.com>2014-08-19 15:53:29 +0800
committerChen Qi <Qi.Chen@windriver.com>2014-09-03 15:05:42 +0800
commit100fff4a1759500fef8fb62d5645fc2fc3df2653 (patch)
treed0f405b41940b9a2432149dabf8e98133ff2a0f6
parentc6be44fd4424f17badd9e652124fa700a35dfa2c (diff)
downloadopenembedded-core-contrib-100fff4a1759500fef8fb62d5645fc2fc3df2653.tar.gz
cups: make cups daemon start correctly
The cups daemon needs the lpadmin group to start correctly. Also add 'procps' to RDEPENDS if 'sysvinit' is in DISTRO_FEATURES, because the init script shipped with cups needs it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-extended/cups/cups.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index adf21eb17e..162b3fd844 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -12,7 +12,10 @@ SRC_URI = "http://www.cups.org/software/${PV}/${BP}-source.tar.bz2 \
LEAD_SONAME = "libcupsdriver.so"
-inherit autotools-brokensep binconfig
+inherit autotools-brokensep binconfig useradd
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system lpadmin"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
@@ -79,6 +82,7 @@ python do_package_append() {
PACKAGES =+ "${PN}-lib ${PN}-libimage"
+RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}"
FILES_${PN} += "${libdir}/cups/backend \
${libdir}/cups/cgi-bin \
${libdir}/cups/filter \