Module: check_mk
Branch: master
Commit: ef713c0b43476c0471f568e43ec207331356f6d4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef713c0b43476c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 7 10:03:09 2017 +0100
Handle skeleton files for enterprise edition.
Change-Id: I18b234da0a99083f53921aec6e59556187231f30
---
Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 7b0aa11..ace4a12 100644
--- a/Makefile
+++ b/Makefile
@@ -213,10 +213,13 @@ mk-livestatus-$(VERSION).tar.gz:
ifeq ($(ENTERPRISE),yes)
dist: cmc-$(VERSION).tar.gz
+# We currently fake a package for cmc. Ugly...
cmc-$(VERSION).tar.gz: config.h
make -C livestatus distclean
make -C enterprise/core distclean
- tar czf cmc-$(VERSION).tar.gz $(TAROPTS) \
+ rm -rf cmc-$(VERSION)
+ mkdir cmc-$(VERSION)
+ tar cf - $(TAROPTS) \
aclocal.m4 \
ar-lib \
compile \
@@ -233,7 +236,10 @@ cmc-$(VERSION).tar.gz: config.h
configure.ac \
enterprise \
livestatus \
- m4
+ m4 | tar xf - -C cmc-$(VERSION)
+ cd cmc-$(VERSION) && mv enterprise/skel enterprise/skel.permissions .
+ cd cmc-$(VERSION) && tar czf ../cmc-$(VERSION).tar.gz $(TAROPTS) .bugs *
+ rm -rf cmc-$(VERSION)
build: config.h
$(MAKE) -C enterprise/core -j8