[oe-commits] Jonathan Liu : samba: remove /var/lock and /var/run from package

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: 82f7bdc63e084e8482be0914d9b46fc10cada185
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=82f7bdc63e084e8482be0914d9b46fc10cada185

Author: Jonathan Liu <net147 at gmail.com>
Date:   Mon Jul  8 05:37:30 2013 +0000

samba: remove /var/lock and /var/run from package

The /var/lock and /var/run directories are already created by
base-files.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-connectivity/samba/samba_3.6.8.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb b/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb
index a27a28c..255c0b4 100644
--- a/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb
+++ b/meta-oe/recipes-connectivity/samba/samba_3.6.8.bb
@@ -57,3 +57,9 @@ do_configure() {
 do_compile () {
     base_do_compile
 }
+
+do_install_append() {
+    rmdir "${D}${localstatedir}/lock"
+    rmdir "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
+}



More information about the Openembedded-commits mailing list