]> repo.cephalix.eu Git - template.git/commitdiff
New section in Makefile init to initialize the package.
authorbuildmaster <buildmaster@git.cephalix.eu>
Tue, 19 Oct 2021 11:58:36 +0000 (13:58 +0200)
committerbuildmaster <buildmaster@git.cephalix.eu>
Tue, 19 Oct 2021 11:58:36 +0000 (13:58 +0200)
Makefile
oss-pkg-packages.spec.in

index 528b7063471ec3e58a35968e9f948294df19887f..00375c2ce9787006edaa7c60258b95073b8a3328 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE         = $(shell basename `pwd` )
 DESTDIR         = /
-REPO            = /srv/www/repo/TESTING/salt-packages/
+REPO            = /srv/www/repo/salt-packages/
 VERSION         = $(shell cat VERSION )
 RELEASE         = $(shell cat RELEASE )
 NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
@@ -27,3 +27,11 @@ package:
        git push
        createrepo $(REPO)
 
+init:
+       test -d .git && rm -r .git
+       mv oss-pkg-packages.spec.in oss-pkg-$(PACKAGE).spec
+       sed 's/PACKAGE/$(PACKAGE)/g' oss-pkg-$(PACKAGE).spec
+       echo "Do not forget to adapt VERSION and the FULLNAMES file"
+       git init
+       git add .
+       git commit -am "Initial version of $(PACKAGE)"
index cd3e3f74e3b4a84dffd7a18de967e6f8c9d93930..57ee64135d18af87a67e9ab4ed04eab4622244b8 100644 (file)
@@ -9,7 +9,7 @@ Version:      VERSION
 Release:      RELEASE
 License:      GPL-2.0
 Vendor:       Peter Varkoly and Helmuth Varkoly
-Packager:     peter@varkoly.de
+Packager:     packager@cephalix.eu
 Group:        Productivity/
 Source:       %{name}.tar.bz2
 BuildArch:    noarch
@@ -48,7 +48,7 @@ rm -rf %{buildroot}
 
 %post
 
-/usr/sbin/oss_api_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/PACKAGE/HASH.json
+/usr/sbin/crx_api_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/PACKAGE/HASH.json
 
 %files
 %defattr(644,root,root)