From beacc700daf00455ad4eee9e34d13e157bf4ee36 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 20 Dec 2021 17:53:24 +0100 Subject: [PATCH] New release --- .gitignore | 2 +- RELEASE | 2 +- init.sls.in | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 init.sls.in diff --git a/.gitignore b/.gitignore index 12b8d4b..b5de263 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -packages.spec +oss-pkg-psqlodbc.spec diff --git a/RELEASE b/RELEASE index c227083..d00491f 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -0 \ No newline at end of file +1 diff --git a/init.sls.in b/init.sls.in new file mode 100644 index 0000000..76fec8c --- /dev/null +++ b/init.sls.in @@ -0,0 +1,34 @@ +############################################################################### +# SLS: psqlodbc +# Copyright (c) 2021 Peter Varkoly, Nuermberg, Germany. +# All rights reserved. +# +# Authors: Peter Varkoly +# +# Description: Package SLS +############################################################################### +{% if grains['cpuarch'] == 'AMD64' %} +{% set ARCH = "x64" %} +{% else %} +{% set ARCH = "x86" %} +{% endif %} + +{% set LOG_PATH = 'C:\\salt\\var\\log' %} + +psqlodbc: + 'VERSION': + {% if ARCH == 'x64' %} + full_name: 'psqlODBC_x64' + installer: salt://win/repo-ng/psqlodbc/psqlodbc_x64.msi + uninstaller: salt://win/repo-ng/psqlodbc/psqlodbc_x64.msi + {% else %} + full_name: 'psqlODBC_x86' + installer: salt://win/repo-ng/psqlodbc/psqlodbc_x86.msi + uninstaller: salt://win/repo-ng/psqlodbc/psqlodbc_x86.msi + {% endif %} + install_flags: '/qn /log "{{ LOG_PATH }}\psqlodbc.log"' + uninstall_flags: '/qn /log "{{ LOG_PATH }}\psqlodbc_uninst.log"' + msiexec: True + locale: de_DE + reboot: False + cache_dir: True -- 2.43.0