]> repo.cephalix.eu Git - OpenBoard.git/commitdiff
Initial version
authorCEPHALIX GIT ADMIN <git@cephalix.eu>
Tue, 2 Jul 2019 21:33:34 +0000 (23:33 +0200)
committerCEPHALIX GIT ADMIN <git@cephalix.eu>
Tue, 2 Jul 2019 21:33:34 +0000 (23:33 +0200)
FULLNAMES [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
OpenBoard.sls [new file with mode: 0644]
RELEASE [new file with mode: 0644]
VERSION [new file with mode: 0644]
oss-pkg-OpenBoard.spec.in [new file with mode: 0644]
repo-ng/OpenBoard.exe [new file with mode: 0755]
repo-ng/init.sls [new file with mode: 0644]
repo-ng/uninstall.ps1 [new file with mode: 0644]

diff --git a/FULLNAMES b/FULLNAMES
new file mode 100644 (file)
index 0000000..1596f49
--- /dev/null
+++ b/FULLNAMES
@@ -0,0 +1 @@
+OpenBoard
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
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 (file)
index 0000000..83c08d4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+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:
+       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
+       cp /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
+       for i in $(REPO)/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-*.rpm; do test -e $$i && rm $$i; done 
+       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/OpenBoard.sls b/OpenBoard.sls
new file mode 100644 (file)
index 0000000..f452394
--- /dev/null
@@ -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/RELEASE b/RELEASE
new file mode 100644 (file)
index 0000000..c227083
--- /dev/null
+++ b/RELEASE
@@ -0,0 +1 @@
+0
\ No newline at end of file
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..8af85be
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+1.5.3
diff --git a/oss-pkg-OpenBoard.spec.in b/oss-pkg-OpenBoard.spec.in
new file mode 100644 (file)
index 0000000..cd3e3f7
--- /dev/null
@@ -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/OpenBoard.exe b/repo-ng/OpenBoard.exe
new file mode 100755 (executable)
index 0000000..4dbfaaa
Binary files /dev/null and b/repo-ng/OpenBoard.exe differ
diff --git a/repo-ng/init.sls b/repo-ng/init.sls
new file mode 100644 (file)
index 0000000..78d9eb2
--- /dev/null
@@ -0,0 +1,28 @@
+###############################################################################
+# SLS: OpenBoard
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authors:              Helmuth Varkoly
+#
+# Description:          Package SLS
+###############################################################################
+
+{% if grains['cpuarch'] == 'AMD64' %}
+{% set DESTINATION = "%PROGRAMFILES(X86)%\\OpenBoard" %}
+{% else %}
+{% set DESTINATION = '%ProgramFiles%\\OpenBoard' %}
+{% endif %}
+
+{% set LOG_PATH = 'C:\\salt\\var\\log' %}
+OpenBoard:
+  '1.5.3':
+    installer: salt://win/repo-ng/OpenBoard/OpenBoard.exe
+    full_name: 'OpenBoard'
+    uninstaller: 'powershell.exe'
+    install_flags: '/SILENT /LOG "{{ LOG_PATH }}\OpenBoardi_wrapper_inst.log"'
+    uninstall_flags: '-executionpolicy Bypass -file "C:\salt\var\cache\salt\minion\files\base\win\repo-ng\OpenBoard\uninstall.ps1'
+    msiexec: False
+    locale: de_DE
+    reboot: False
+    cache_dir: True
diff --git a/repo-ng/uninstall.ps1 b/repo-ng/uninstall.ps1
new file mode 100644 (file)
index 0000000..52bdb61
--- /dev/null
@@ -0,0 +1,12 @@
+$arch = $env:PROCESSOR_ARCHITECTURE
+
+if ($arch -eq "AMD64"){
+ $path = "%PROGRAMFILES(X86)%\\OpenBoard\\unins000.exe"
+}else {
+ $path = "%PROGRAMFILES%\\OpenBoard\\unins000.exe"
+}
+
+start-process -path $path -ArgumentList "/VERYSILENT /LOG='C:\salt\var\log\OpenBoard_uninst.log'"
+
+remove-item "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{91234939-c308-444b-8986-0034103bebfa}" -Recurse -Force
+