]> repo.cephalix.eu Git - JavaRuntime.git/commitdiff
Initial version.
authorPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 13:07:37 +0000 (15:07 +0200)
committerPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 13:07:37 +0000 (15:07 +0200)
JavaRuntime.sls [new file with mode: 0644]
Makefile [new file with mode: 0644]
RELEASE [new file with mode: 0644]
VERSION [new file with mode: 0644]
repo-ng/init.sls [new file with mode: 0755]
repo-ng/jre-6u45-windows-i586.exe [new file with mode: 0755]
repo-ng/jre-6u45-windows-x64.exe [new file with mode: 0755]
repo-ng/jre-7u80-windows-i586.exe [new file with mode: 0755]
repo-ng/jre-7u80-windows-x64.exe [new file with mode: 0755]
repo-ng/jre-8u131-windows-i586.exe [new file with mode: 0755]
repo-ng/jre-8u131-windows-x64.exe [new file with mode: 0755]

diff --git a/JavaRuntime.sls b/JavaRuntime.sls
new file mode 100644 (file)
index 0000000..b83775e
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# SLS: Java Runtime
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authos:               Helmuth Varkoly
+#
+# Description:          SLS to use with OSS's softwaremanagement              
+###############################################################################
+JavaRuntime:
+  pkg:
+    - installed
+
+
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4f7bda1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+PACKAGE         = $(shell basename `pwd` )
+DESTDIR         = /
+REPO            = /srv/www/repo/TESTING/oss-packages/
+VERSION         = $(shell cat VERSION )
+RELEASE         = $(shell cat RELEASE )
+NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
+
+
+package:
+       cp packages.spec.in oss-pkg-$(PACKAGE).spec
+       sed -i s/VERSION/$(VERSION)/  oss-pkg-$(PACKAGE).spec
+       sed -i s/RELEASE/$(NRELEASE)/ oss-pkg-$(PACKAGE).spec
+       sed -i s/PACKAGE/$(PACKAGE)/  oss-pkg-$(PACKAGE).spec
+       mkdir -p oss-pkg-$(PACKAGE)
+       ln -s ../$(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
+       #I have to learn it
+       #rpm --addsign /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm 
+       mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
+       createrepo $(REPO)
+       #I have to learn it
+       #gpg -a --detach-sign $(REPO)/repodata/repomd.xml
+       echo $(NRELEASE) > RELEASE
+       git commit -a -m "New release"
+       git push
+
+
diff --git a/RELEASE b/RELEASE
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
+++ b/RELEASE
@@ -0,0 +1 @@
+1
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..d00491f
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+1
diff --git a/repo-ng/init.sls b/repo-ng/init.sls
new file mode 100755 (executable)
index 0000000..285cd80
--- /dev/null
@@ -0,0 +1,72 @@
+###############################################################################
+# SLS: Java Runtime
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authos:               Helmuth Varkoly
+#
+# Description:          SLS for installation
+###############################################################################
+{% if grains['cpuarch'] == 'AMD64' %}
+{% set ARCH = "x64" %}
+{% else %}
+{% set ARCH = "x86" %}
+{% endif %}
+
+{% set LOG_PATH = salt['grains.get']('SALT_TMP_LOG') %}
+
+JavaRuntime:
+  '6.0.450':
+    {% if ARCH == 'x64' %}
+    full_name: 'Java(TM) 6 Update 45 (64-bit)'
+    installer: salt://win/repo-ng/JavaRuntime/jre-6u45-windows-x64.exe
+    {% else%}
+    full_name: 'Java(TM) 6 Update 45'
+    installer: salt://win/repo-ng/JavaRuntime/jre-6u45-windows-i586.exe
+    {% endif %}
+    install_flags: '/s /L "{{ LOG_PATH }}JavaRuntime_inst.log"'
+    uninstaller: 'msiexec.exe'
+    {% if ARCH == 'x64' %}
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F86416045FF} /quiet /log "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% else %}
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F83216045FF} /quiet /log "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% endif %}
+    locale: de_DE
+    msiexec: False
+    reboot: False
+  '7.0.800':
+    {% if ARCH == 'x64' %}
+    full_name: 'Java 7 Update 80 (64-bit)'
+    installer: salt://win/repo-ng/JavaRuntime/jre-7u80-windows-x64.exe
+    {% else%}
+    full_name: 'Java 7 Update 80'
+    installer: salt://win/repo-ng/JavaRuntime/jre-7u80-windows-i586.exe
+    {% endif %}
+    install_flags: '/s /L "{{ LOG_PATH }}JavaRuntime_inst.log"'
+    uninstaller: 'msiexec.exe'
+    {% if ARCH == 'x64' %}
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F06417080FF} /quiet /log "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% else %}          
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F03217080FF} /quiet /log "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% endif %}
+    locale: de_DE
+    msiexec: False
+    reboot: False
+  '8.0.1310.11':
+    {% if ARCH == 'x64' %}
+    full_name: 'Java 8 Update 131 (64-bit)'
+    installer: salt://win/repo-ng/JavaRuntime/jre-8u131-windows-x64.exe
+    {% else %}
+    full_name: 'Java 8 Update 131'
+    installer: salt://win/repo-ng/JavaRuntime/jre-8u131-windows-i586.exe
+    {% endif %}
+    install_flags: '/s /L "{{ LOG_PATH }}JavaRuntime_inst.log"'
+    uninstaller: 'msiexec.exe'
+    {% if ARCH == 'x64' %}
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F64180131F0} /quiet /l* "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% else %}
+    uninstall_flags: '/x {26A24AE4-039D-4CA4-87B4-2F32180131F0} /quiet /l* "{{ LOG_PATH }}JavaRuntime_uninst.log" /norestart'
+    {% endif %}
+    locale: de_DE        
+    msiexec: False
+    reboot: False
diff --git a/repo-ng/jre-6u45-windows-i586.exe b/repo-ng/jre-6u45-windows-i586.exe
new file mode 100755 (executable)
index 0000000..80063bd
Binary files /dev/null and b/repo-ng/jre-6u45-windows-i586.exe differ
diff --git a/repo-ng/jre-6u45-windows-x64.exe b/repo-ng/jre-6u45-windows-x64.exe
new file mode 100755 (executable)
index 0000000..4e58ac1
Binary files /dev/null and b/repo-ng/jre-6u45-windows-x64.exe differ
diff --git a/repo-ng/jre-7u80-windows-i586.exe b/repo-ng/jre-7u80-windows-i586.exe
new file mode 100755 (executable)
index 0000000..c452822
Binary files /dev/null and b/repo-ng/jre-7u80-windows-i586.exe differ
diff --git a/repo-ng/jre-7u80-windows-x64.exe b/repo-ng/jre-7u80-windows-x64.exe
new file mode 100755 (executable)
index 0000000..c78bddf
Binary files /dev/null and b/repo-ng/jre-7u80-windows-x64.exe differ
diff --git a/repo-ng/jre-8u131-windows-i586.exe b/repo-ng/jre-8u131-windows-i586.exe
new file mode 100755 (executable)
index 0000000..7edd0d5
Binary files /dev/null and b/repo-ng/jre-8u131-windows-i586.exe differ
diff --git a/repo-ng/jre-8u131-windows-x64.exe b/repo-ng/jre-8u131-windows-x64.exe
new file mode 100755 (executable)
index 0000000..027c592
Binary files /dev/null and b/repo-ng/jre-8u131-windows-x64.exe differ