cups: remove /var/run from package as cupsd will populate it on startup

The /var/run/cups and /var/run/cups/certs directories don't need to be
included in the package as they are created by cupsd with the proper
permissions if they don't exist. The /var/run directory is already
created by base-files.

(From OE-Core rev: af99c290a0f589a5cb1d6426c78804f2d99ae02a)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jonathan Liu 2013-05-26 16:24:28 +10:00 committed by Richard Purdie
parent 2aa350acca
commit 4bdb3c586f
1 changed files with 3 additions and 3 deletions

View File

@ -53,9 +53,9 @@ do_compile () {
fakeroot do_install () {
oe_runmake "DSTROOT=${D}" install
# This directory gets installed with perms 511, which makes packaging fail
chmod 0711 "${D}/${localstatedir}/run/cups/certs"
rmdir ${D}/${libdir}/${BPN}/driver
# Remove /var/run from package as cupsd will populate it on startup
rm -fr ${D}/${localstatedir}/run
rmdir ${D}/${libdir}/${BPN}/driver
}
python do_package_append() {