--- /dev/null
+LEGO MINDSTORMS EV3
+LEGO MINDSTORMS NXT x64 Driver
--- /dev/null
+Copyright (c) 2017 Peter Varkoly and Helmuth Varkoly Nürnberg. All rights reserverd.
\ No newline at end of file
--- /dev/null
+###############################################################################
+# 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
+
+
--- /dev/null
+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)
+ 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
+ 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
+
+
--- /dev/null
+0
\ No newline at end of file
--- /dev/null
+#
+# 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
+
+
--- /dev/null
+; -------------------------- How to use this file ---------------------------------\r
+;\r
+; To run this installer in quiet mode:\r
+; 1. Edit the information below to match your company information and install location.\r
+; 2. Run : setup.exe <path to this file> /q /AcceptLicenses yes. Passing the value "yes"\r
+; to the /AcceptLicenses parameter indicates that you agree with the license agreements.\r
+; Alternatively, instead of /q, /qb can be used to run the installer in basic UI mode.\r
+; 3. The installer will automatically restart your system after the installation is done.\r
+; To prevent the restart use the command line : setup.exe <path to this file> /r:n /q /AcceptLicenses yes\r
+;\r
+; For more information on installation automation visit www.ni.com/info and enter the infocode exdir3.\r
+\r
+\r
+; -------------------------- Set feature states ---------------------------------\r
+; The valid feature states are: Local, Absent, NoChange, Default\r
+; Local - Install it (on the local hard drive). If already installed leave it installed.\r
+; Absent - Do not install it. If already installed uninstall it.\r
+; NoChange - Do not install it. If already installed, leave it installed.\r
+; Default is equivalent to not listing the feature in this file. The feature follows its default behavior.\r
+; To install EV3 in Student mode, remove the "EV3_EDU_Mode" setting on line 24 by deleting the entire line.\r
+\r
+[Features]\r
+LEGO_EV3_EDU_Feature.EV3.EDU.142=Local\r
+;EV3_EDU_Mode.EV3.EDU.MODE.142=Local\r
+\r
+\r
+; -------------------------- Set general installation settings ---------------------------------\r
+[InstallationType]\r
+;uncomment one of the following lines for student vs teacher install\r
+;DefaultRadioButton=TeacherInstall\r
+DefaultRadioButton=StudentInstall\r
--- /dev/null
+###############################################################################
+# SLS: LegoMindstormsStudentEDU3
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authors: Helmuth Varkoly
+#
+# Description: Package SLS
+# Note: no logging
+###############################################################################
+
+{% if grains['cpuarch'] == 'AMD64' %}
+{% set UNINSTALL = "%PROGRAMFILES(X86)%\\National Instruments\\Shared\\NIUninstaller" %}
+{% else %}
+{% set UNINSTALL = '%ProgramFiles%\\National Instruments\\Shared\\NIUninstaller' %}
+{% endif %}
+
+{% set LOG_PATH = 'C:\\salt\\var\\log' %}
+
+LegoMindstormsStudentEDU3:
+ '1.0.0':
+ installer: salt://win/repo-ng/LegoMindstormsStudentEDU3/LME-EV3_Full-setup_1.4.2_de-DE_WIN32.exe
+ full_name: 'LEGO MINDSTORMS EV3'
+ uninstaller: '{{ UNINSTALL }}\uninst.exe'
+ install_flags: 'C:\\salt\\var\\cache\\salt\\minion\\files\\base\\win\\repo-ng\\LegoMindstormsStudentEDU3\\StudentSpec.txt /q /acceptlicenses yes /r:n'
+ uninstall_flags: '/CompanyEnum LEGO_SW /qb /x all /LOG "{{ LOG_PATH}}\\Lego_uninst.log"'
+ msiexec: False
+ locale: de_DE
+ reboot: False
+ cache_dir: True