diff options
author | In Long <inlong_tec@163.com> | 2014-09-03 15:09:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-03 10:24:21 +0100 |
commit | a8b2f086034585f3e115db3055575833922e3a59 (patch) | |
tree | fca4ae464377a66e3fe4817772e10458d767ac8c | |
parent | 93805abedb5563a91886f330153b179033a29d11 (diff) | |
download | openembedded-core-a8b2f086034585f3e115db3055575833922e3a59.tar.gz openembedded-core-a8b2f086034585f3e115db3055575833922e3a59.tar.bz2 openembedded-core-a8b2f086034585f3e115db3055575833922e3a59.zip |
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 6 |
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 \ |