[Lunar-commits] <moonbase> rpm: cleanup /usr/src/rpm
Paul Bredbury
brebs at lunar-linux.org
Thu Feb 24 18:23:23 CET 2011
commit f4cde4b1b933c944cc94fc983fdd25d7c3e2f554
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Fri Feb 25 00:23:23 2011 +0700
rpm: cleanup /usr/src/rpm
---
zbeta/rpm/BUILD | 2 +-
zbeta/rpm/POST_INSTALL | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/zbeta/rpm/BUILD b/zbeta/rpm/BUILD
index 7de6e5d..aa502fa 100644
--- a/zbeta/rpm/BUILD
+++ b/zbeta/rpm/BUILD
@@ -4,7 +4,7 @@
LDFLAGS=$(echo $LDFLAGS | sed s/"-z combreloc"// ) &&
- OPTS+=" --without-selinux" &&
+ OPTS+=" --without-selinux --enable-static=no" &&
default_build
diff --git a/zbeta/rpm/POST_INSTALL b/zbeta/rpm/POST_INSTALL
new file mode 100644
index 0000000..715f1bf
--- /dev/null
+++ b/zbeta/rpm/POST_INSTALL
@@ -0,0 +1,7 @@
+cd /usr/src &&
+if [[ -d rpm ]] ; then
+ if [[ $(find rpm -type f | wc -l) == 0 ]] ; then
+ # Remove empty tree created by compilation process
+ rm -rf rpm
+ fi
+fi
More information about the Lunar-commits
mailing list