From: buildmaster Date: Sun, 25 Feb 2018 20:44:06 +0000 (+0100) Subject: Add temlate.sls. X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=84309baa7ceebf3957342cd2cffafa61d6a90e94;p=template-old.git Add temlate.sls. Make shall use temlate.sls and packages.spec.in from template repo. --- diff --git a/Makefile b/Makefile index ed311f3..601e3fa 100644 --- 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 index 0000000..f452394 --- /dev/null +++ b/temlate.sls @@ -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 + +