From: CEPHALIX GIT ADMIN Date: Thu, 30 Aug 2018 22:12:18 +0000 (+0200) Subject: Initial version X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=c0bcdd7e59fa84758a10c662c3f9edcc96957a88;p=7zip.git Initial version --- c0bcdd7e59fa84758a10c662c3f9edcc96957a88 diff --git a/7zip.sls b/7zip.sls new file mode 100644 index 0000000..f452394 --- /dev/null +++ b/7zip.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/7zip.spec b/7zip.spec new file mode 100644 index 0000000..079b12d --- /dev/null +++ b/7zip.spec @@ -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.sh POST 'softwares/add' '{"name":"PACKAGE","manually":false,"description":"PACKAGE","softwareVersions":[{"version":"VERSION"}]}' + +%files +%defattr(644,root,root) +/srv/salt/win/repo-ng/PACKAGE +/srv/salt/packages/PACKAGE.sls + + 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..68bafd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PACKAGE = $(shell basename `pwd` ) +DESTDIR = / +REPO = /srv/www/repo/TESTING/salt-packages/ +VERSION = $(shell cat VERSION ) +RELEASE = $(shell cat RELEASE ) +NRELEASE = $(shell echo $(RELEASE) + 1 | bc ) +YEAR = $(shell date +%Y ) + + +package: + if [ ! -e oss-pkg-$(PACKAGE).spec ]; then cp ../template/package.spec oss-pkg-$(PACKAGE).spec; fi + 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 + sed -i s/YEAR/$(YEAR)/g oss-pkg-$(PACKAGE).spec + mkdir -p oss-pkg-$(PACKAGE) + if [ ! -e $(PACKAGE).sls ]; then cp ../template/template.sls $(PACKAGE).sls; fi + 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 + 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 + + diff --git a/RELEASE b/RELEASE new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/RELEASE @@ -0,0 +1 @@ +1 diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..80de3e1 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +16.04.00.0 diff --git a/repo-ng/7zip/7z1604-x64.msi b/repo-ng/7zip/7z1604-x64.msi new file mode 100755 index 0000000..6689d89 Binary files /dev/null and b/repo-ng/7zip/7z1604-x64.msi differ diff --git a/repo-ng/7zip/7z1604.msi b/repo-ng/7zip/7z1604.msi new file mode 100755 index 0000000..fcbabed Binary files /dev/null and b/repo-ng/7zip/7z1604.msi differ diff --git a/repo-ng/7zip/init.sls b/repo-ng/7zip/init.sls new file mode 100755 index 0000000..3228e58 --- /dev/null +++ b/repo-ng/7zip/init.sls @@ -0,0 +1,35 @@ +############################################################################### +# SLS: 7zip +# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany. +# All rights reserved. +# +# Authors: Helmuth Varkoly +# +# Description: Package SLS +############################################################################### + +{% if grains['cpuarch'] == 'AMD64' %} +{% set ARCH = "x64" %} +{% else %} +{% set ARCH = "x86" %} +{% endif %} + +{% set LOG_PATH = 'C:\\salt\\var\\log' %} + +7zip: + '16.04.00.0': + {% if ARCH == 'x64' %} + installer: salt://win/repo-ng/7zip/7z1604-x64.msi + uninstaller: salt://win/repo-ng/7zip/7z1604-x64.msi + full_name: '7-Zip 16.04 (x64 edition)' + {% else %} + full_name: '7-Zip 16.04' + installer: salt://win/repo-ng/7zip/7z1604.msi + uninstaller: salt://win/repo-ng/7zip/7z1604.msi + {% endif %} + install_flags: '/quiet /log "{{ LOG_PATH }}\7zip_inst.log"' + uninstall_flags: '/quiet /log "{{ LOG_PATH }}\7zip_uninst.log"' + msiexec: True + locale: de_DE + reboot: False + cache_dir: False