From 82dc6bb4e1ca9af4b6fa1e86565fd9533a91ba98 Mon Sep 17 00:00:00 2001 From: CEPHALIX GIT ADMIN Date: Mon, 13 Jan 2020 00:20:54 +0100 Subject: [PATCH 1/1] Initial version --- FULLNAMES | 1 + LICENSE | 1 + Makefile | 31 +++++++++++++++++++++ RELEASE | 1 + Scratch2.sls | 14 ++++++++++ VERSION | 1 + oss-pkg-Scratch2.spec.in | 58 +++++++++++++++++++++++++++++++++++++++ repo-ng/Scratch2_MSI.msi | Bin 0 -> 10240 bytes repo-ng/init.sls | 24 ++++++++++++++++ 9 files changed, 131 insertions(+) create mode 100644 FULLNAMES create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 RELEASE create mode 100644 Scratch2.sls create mode 100644 VERSION create mode 100644 oss-pkg-Scratch2.spec.in create mode 100755 repo-ng/Scratch2_MSI.msi create mode 100644 repo-ng/init.sls diff --git a/FULLNAMES b/FULLNAMES new file mode 100644 index 0000000..a551184 --- /dev/null +++ b/FULLNAMES @@ -0,0 +1 @@ +Scratch 2 Offline Editor diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c70fc0d --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +Copyright (c) 2017 Peter Varkoly and Helmuth Varkoly Nürnberg. All rights reserverd. \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6035812 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +PACKAGE = $(shell basename `pwd` ) +DESTDIR = / +REPO = /srv/www/repo/salt-packages/ +VERSION = $(shell cat VERSION ) +RELEASE = $(shell cat RELEASE ) +NRELEASE = $(shell echo $(RELEASE) + 1 | bc ) +YEAR = $(shell date +%Y ) + +package: + sed s/VERSION/$(VERSION)/g oss-pkg-$(PACKAGE).spec.in > oss-pkg-$(PACKAGE).spec + sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec + sed -i s/PACKAGE/$(PACKAGE)/g oss-pkg-$(PACKAGE).spec + sed -i s/YEAR/$(YEAR)/g oss-pkg-$(PACKAGE).spec + ../oss-pkg-tools/create_hash.sh $(PACKAGE) + rm -rf oss-pkg-$(PACKAGE) + rm -rf repo-ng/repo-ng + mkdir -p oss-pkg-$(PACKAGE) + sed s/PACKAGE/$(PACKAGE)/g $(PACKAGE).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) + mv oss-pkg-$(PACKAGE).tar.bz2 /usr/src/packages/SOURCES/ + rpmbuild -bb oss-pkg-$(PACKAGE).spec + find $(REPO)/noarch -name oss-pkg-$(PACKAGE)-$(VERSION)-*.rpm* -exec rm {} \; + mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch + echo $(NRELEASE) > RELEASE + git commit -a -m "New release" + git push + createrepo $(REPO) + + diff --git a/RELEASE b/RELEASE new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/RELEASE @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/Scratch2.sls b/Scratch2.sls new file mode 100644 index 0000000..f452394 --- /dev/null +++ b/Scratch2.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 + + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..331004b --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +2.0.454.0 diff --git a/oss-pkg-Scratch2.spec.in b/oss-pkg-Scratch2.spec.in new file mode 100644 index 0000000..cd3e3f7 --- /dev/null +++ b/oss-pkg-Scratch2.spec.in @@ -0,0 +1,58 @@ +# +# Spec file for PACKAGE +# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nuremberg, Germany. All rights reserved. +# + +Name: oss-pkg-PACKAGE +Summary: Package to install PACKAGE on OSS-Clients +Version: VERSION +Release: RELEASE +License: GPL-2.0 +Vendor: Peter Varkoly and Helmuth Varkoly +Packager: peter@varkoly.de +Group: Productivity/ +Source: %{name}.tar.bz2 +BuildArch: noarch +BuildRequires:unzip +#Requires: +Requires: filesystem +PreReq: salt-master +PreReq: %fillup_prereq +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Package to install PACKAGE on OSS-Clients + +Authors: +-------- + helmuth@varkoly.de + peter@varkoly.de + + +%prep +%setup -n %{name} + +%build + +%install + +mkdir -p %{buildroot}/srv/salt/win/repo-ng/PACKAGE +mkdir -p %{buildroot}/srv/salt/packages/ +cp PACKAGE.sls %{buildroot}/srv/salt/packages/ +cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/PACKAGE + +%clean +rm -rf %{buildroot} + +%pre + +%post + +/usr/sbin/oss_api_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/PACKAGE/HASH.json + +%files +%defattr(644,root,root) +/srv/salt/win/repo-ng/PACKAGE +/srv/salt/packages/PACKAGE.sls + + diff --git a/repo-ng/Scratch2_MSI.msi b/repo-ng/Scratch2_MSI.msi new file mode 100755 index 0000000000000000000000000000000000000000..f79a834d111efde3bbae1729a34dd8c2d3920c8c GIT binary patch literal 10240 zcmeH|QE!_t5XbY(r#LmL*rW~&I0-}QL)CW8q;8FrYEMYWB@VG_pfjXR6y>|mBqO7# z)OAWURngrG#&_qt`@tWEv0`OBaqR({^*I}HRama)lddf?QCfv8T00xj)}^#nUA1jr ziQ~B~$Lo@gM;+JEe#h(4UJGVBSAN3*)1qWbxAcb4Lk#fHy32UFv(}Gp)RF)B8O45NRFWOv76L`;+?%NR{Yc(Z53-x}|^Wl5PwB zizaLRt2{4Xbl%wbo4*=T+veleNPW-C_I}N1!|-|-K>b?j`}6!^u0%2^;Y0ipT;lYg z&t*C-C-8%*`&`aX;QN%T^p30K1g`XoWphhso=FL-%mNfIxO(Ixyi>lcnQ}xSJB|?whyOZo(ExAFjLoH%fw*cd*lu^b~9)S5f5L~z!kEO^sT#iJUD{~boGW`>i zlB)o!GJ$PBiOg2~A^(&mc3ot%h`tTKT4^DgxzSj%L=!dbpBdP?LpWM2{tU5PhV?N~ zRn5{7N9*F#Y?tzz?0;xrozrMR&%$Rs4&YWz`D!Ye$4qK)BOYB`u67i^(+UsZ3zNk< zCT8)3M