Patchwork consolekit: remove /var/run from package

login
register
mail settings
Submitter Jonathan Liu
Date May 26, 2013, 8:14 a.m.
Message ID <1369556053-12445-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50533/
State Accepted
Commit aa6408b05c5eb17b6e9fc280069f3b15eafbdab0
Headers show

Comments

Jonathan Liu - May 26, 2013, 8:14 a.m.
The /var/run/ConsoleKit directory doesn't need to be included in the
package as it is created by console-kit-daemon if it doesn't exist.
The /var/run directory is already created by base-files.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-support/consolekit/consolekit_0.4.5.bb | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/meta/recipes-support/consolekit/consolekit_0.4.5.bb b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
index db4ac00..7d66b39 100644
--- a/meta/recipes-support/consolekit/consolekit_0.4.5.bb
+++ b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
@@ -37,3 +37,8 @@  FILES_${PN}-dbg += "${base_libdir}/security/.debug"
 PACKAGES =+ "pam-plugin-ck-connector"
 FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so"
 RDEPENDS_pam-plugin-ck-connector += "${PN}"
+
+do_install_append() {
+	# Remove /var/run from package as console-kit-daemon will populate it on startup
+	rm -fr "${D}${localstatedir}/run"
+}