]> repo.cephalix.eu Git - AdobeAIR.git/commitdiff
Initial version.
authorPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 10:31:23 +0000 (12:31 +0200)
committerPeter Varkoly <varkoly@suse.de>
Wed, 26 Jul 2017 10:31:23 +0000 (12:31 +0200)
AdobeAIR.sls [new file with mode: 0644]
Makefile [new file with mode: 0644]
packages.spec.in [new file with mode: 0644]
repo-ng/AdobeAIRInstaller.exe [new file with mode: 0644]
repo-ng/init.sls [new file with mode: 0644]

diff --git a/AdobeAIR.sls b/AdobeAIR.sls
new file mode 100644 (file)
index 0000000..2aeb6da
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# SLS: Adobe AIR
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authos:               Helmuth Varkoly
+#
+# Description:          SLS to use with OSS's softwaremanagement              
+###############################################################################
+AdobeAIR:
+  pkg:
+    - installed
+
+
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d3322aa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+PACKAGE         = $(sjell basename `pwd` )
+DESTDIR         = /
+REPO            = /srv/www/repo/oss-packages/
+VERSION         = $(shell cat RELEASE )
+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/PACAKGE/$(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
+       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)
+       gpg -a --detach-sign $(REPO)/repodata/repomd.xml
+       echo $(NRELEASE) > RELEASE
+       git commit -a -m "New release"
+       git push
+
+
diff --git a/packages.spec.in b/packages.spec.in
new file mode 100644 (file)
index 0000000..890db2e
--- /dev/null
@@ -0,0 +1,57 @@
+#
+# Spec file for PACKAGE
+# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nürnberg, Germany.  All rights reserved.
+#
+
+Name:         oss-pkg-PACKAGE
+Summary:      Package to install PACKAGE on OSS-Clients
+Version:      VERSION
+Release:      RELEASE
+License:      Commercial
+Vendor:       Peter Varkoly and Helmuth Varkoly
+Distribution: SLE11
+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
+
+%files
+%defattr(644,root,root)
+/srv/salt/win/repo-ng/PACKAGE
+/srv/salt/packages/PACKAGE.sls
+
+
diff --git a/repo-ng/AdobeAIRInstaller.exe b/repo-ng/AdobeAIRInstaller.exe
new file mode 100644 (file)
index 0000000..cae0a12
Binary files /dev/null and b/repo-ng/AdobeAIRInstaller.exe differ
diff --git a/repo-ng/init.sls b/repo-ng/init.sls
new file mode 100644 (file)
index 0000000..3fdfa64
--- /dev/null
@@ -0,0 +1,23 @@
+###############################################################################
+# SLS: Adobe AIR 
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authos:               Helmuth Varkoly
+#
+# Description:          Package SLS
+###############################################################################
+
+{% set LOG_PATH = salt['grains.get']('SALT_TMP_LOG') %}
+
+AdobeAIR:
+  '26.0.0.118':
+      full_name: 'Adobe AIR'
+      installer: salt://win/repo-ng/AdobeAIR/AdobeAIRInstaller.exe 
+      install_flags: '-silent -eulaAccepted'
+      uninstaller: 'msiexec.exe'
+      uninstall_flags: '/x {8C9AA2C1-D07A-48E8-9DD8-471A072947F4} /quiet /log "{{ LOG_PATH }}AdobeAIR_uninst.log" /norestart'
+      locale: de_DE
+      msiexec: False
+      reboot: False
+      cache_dir: False