]> repo.cephalix.eu Git - template.git/commitdiff
Add temlate.sls.
authorbuildmaster <buildmaster@git.cephalix.eu>
Sun, 25 Feb 2018 20:44:06 +0000 (21:44 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Sun, 25 Feb 2018 20:44:06 +0000 (21:44 +0100)
Make shall use temlate.sls and packages.spec.in from template repo.

Makefile
temlate.sls [new file with mode: 0644]

index ed311f32c387c7fdc50a2ecc5feee8e5c8f8fb82..601e3faa850aa9d1936e33ce9d69b13c6a648a61 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,12 @@ NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
 
 
 package:
-       cp packages.spec.in oss-pkg-$(PACKAGE).spec
+       cp ../template/packages.spec   oss-pkg-$(PACKAGE).spec
        sed -i s/VERSION/$(VERSION)/g  oss-pkg-$(PACKAGE).spec
        sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec
        sed -i s/PACKAGE/$(PACKAGE)/g  oss-pkg-$(PACKAGE).spec
        mkdir -p oss-pkg-$(PACKAGE)
-       ln -s ../$(PACKAGE).sls oss-pkg-$(PACKAGE)/$(PACKAGE).sls
+       sed s/PACKAGE/$(PACKAGE)/g  ../template/temlate.sls > oss-pkg-$(PACKAGE)/$(PACKAGE).sls
        if [ -d repo-ng ]; then ln -s ../repo-ng/ oss-pkg-$(PACKAGE)/repo-ng; fi
        tar hjcvpf oss-pkg-$(PACKAGE).tar.bz2 oss-pkg-$(PACKAGE)  
        rm -rf oss-pkg-$(PACKAGE)
diff --git a/temlate.sls b/temlate.sls
new file mode 100644 (file)
index 0000000..f452394
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# SLS: PACKAGE
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Author:               Helmuth Varkoly
+#
+# Description:          SLS to use with OSS's softwaremanagement              
+###############################################################################
+PACKAGE:
+  pkg:
+    - installed
+
+