[oe-commits] Jonathan Liu : collectd: remove empty /var/run directory
git at git.openembedded.org
git at git.openembedded.org
Mon Jul 8 08:30:23 UTC 2013
Module: meta-openembedded.git
Branch: master
Commit: 9ea2df5823f06f3d6600f014527222fdd80ab73b
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=9ea2df5823f06f3d6600f014527222fdd80ab73b
Author: Jonathan Liu <net147 at gmail.com>
Date: Sat Jul 6 11:50:23 2013 +0000
collectd: remove empty /var/run directory
The /var/run directory is already created by base-files.
Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
.../recipes-extended/collectd/collectd_5.2.2.bb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb b/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb
index 8641530..20df494 100644
--- a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb
+++ b/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb
@@ -39,6 +39,9 @@ do_install_append() {
# Fix configuration file to allow collectd to start up
sed -i 's!^#FQDNLookup[ \t]*true!FQDNLookup false!g' ${D}${sysconfdir}/collectd.conf
+
+ rmdir "${D}${localstatedir}/run"
+ rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
}
INITSCRIPT_NAME = "collectd"
More information about the Openembedded-commits
mailing list