From: In Long Date: Wed, 3 Sep 2014 07:09:09 +0000 (+0800) Subject: cups: make cups daemon start correctly X-Git-Tag: rev_ivi_2015_02_04~6716 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b4f326d9ac76983d9ccb2d8cd03751c6595b141;p=scm%2Fbb%2Ftizen-distro.git 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. (From OE-Core rev: a8b2f086034585f3e115db3055575833922e3a59) Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index adf21eb..162b3fd 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 \