]> repo.cephalix.eu Git - psqlodbc.git/commitdiff
Initial version of psqlodbc
authorbuildmaster <buildmaster@git.cephalix.eu>
Mon, 20 Dec 2021 12:01:00 +0000 (13:01 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Mon, 20 Dec 2021 12:01:00 +0000 (13:01 +0100)
15 files changed:
.gitignore [new file with mode: 0644]
FULLNAMES [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
README.txt [new file with mode: 0644]
README1.txt [new file with mode: 0644]
RELEASE [new file with mode: 0644]
VERSION [new file with mode: 0644]
init.sls.in [new file with mode: 0644]
oss-pkg-psqlodbc.spec.in [new file with mode: 0644]
psqlodbc.sls [new file with mode: 0644]
psqlodbc_10_03_0000-x64.zip [new file with mode: 0644]
psqlodbc_10_03_0000-x86.zip [new file with mode: 0644]
psqlodbc_x64.msi [new file with mode: 0644]
psqlodbc_x86.msi [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..12b8d4b
--- /dev/null
@@ -0,0 +1 @@
+packages.spec
diff --git a/FULLNAMES b/FULLNAMES
new file mode 100644 (file)
index 0000000..1fd1ded
--- /dev/null
+++ b/FULLNAMES
@@ -0,0 +1 @@
+Pro line one name
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..4e4341d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+PACKAGE         = $(shell basename `pwd` )
+DESTDIR         = /
+REPO            = /srv/www/repo/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
+       sed    s/VERSION/$(VERSION)/g  init.sls.in > repo-ng/init.sls
+       ../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
+       find $(REPO)/noarch -name "oss-pkg-$(PACKAGE)-$(VERSION)-*.rpm"  -exec rm {} \;
+       mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
+       echo $(NRELEASE) > RELEASE
+       git commit -a -m "New release"
+       createrepo $(REPO)
+       git push
+
+init:
+       test -d .git && rm -r .git
+       mv oss-pkg-packages.spec.in oss-pkg-$(PACKAGE).spec.in
+       sed -i 's/PACKAGE/$(PACKAGE)/g' oss-pkg-$(PACKAGE).spec.in
+       mkdir repo-ng
+       sed -i 's/PACKAGE/$(PACKAGE)/g' init.sls.in
+       mv temlate.sls $(PACKAGE).sls
+       sed -i 's/PACKAGE/$(PACKAGE)/g' $(PACKAGE).sls
+       git init
+       git add .
+       git commit -am "Initial version of $(PACKAGE)"
+       echo "Do not forget to adapt VERSION and the FULLNAMES file"
diff --git a/README.txt b/README.txt
new file mode 100644 (file)
index 0000000..1766ee1
--- /dev/null
@@ -0,0 +1,38 @@
\r
+/********************************************************************\r
\r
+  PSQLODBC.DLL - A library to talk to the PostgreSQL DBMS using ODBC.\r
+\r
+\r
+  Copyright (C) 1998          Insight Distribution Systems\r
+  Copyright (C) 1998 - 2018   The PostgreSQL Global Development Group\r
+\r
+  Multibyte support was added by Sankyo Unyu Service, (C) 2001.\r
+\r
+  The code contained in this library is based on code written by \r
+  Christian Czezatke and Dan McGuirk, (C) 1996.\r
+\r
+\r
+  This library is free software; you can redistribute it and/or modify\r
+  it under the terms of the GNU Library General Public License as \r
+  published by the Free Software Foundation; either version 2 of the \r
+  License, or (at your option) any later version.\r
+\r
+  This library is distributed in the hope that it will be useful, but\r
+  WITHOUT ANY WARRANTY; without even the implied warranty of\r
+  MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+  Library General Public License for more details.\r
+\r
+  You should have received a copy of the GNU Library General Public\r
+  License along with this library (see "license.txt"); if not, write to\r
+  the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA\r
+  02139, USA.\r
+\r
+\r
+  How to contact the authors:\r
+\r
+  email:   pgsql-odbc@postgresql.org\r
+  website: https://odbc.postgresql.org/\r
+\r
+***********************************************************************/\r
+\r
diff --git a/README1.txt b/README1.txt
new file mode 100644 (file)
index 0000000..1766ee1
--- /dev/null
@@ -0,0 +1,38 @@
\r
+/********************************************************************\r
\r
+  PSQLODBC.DLL - A library to talk to the PostgreSQL DBMS using ODBC.\r
+\r
+\r
+  Copyright (C) 1998          Insight Distribution Systems\r
+  Copyright (C) 1998 - 2018   The PostgreSQL Global Development Group\r
+\r
+  Multibyte support was added by Sankyo Unyu Service, (C) 2001.\r
+\r
+  The code contained in this library is based on code written by \r
+  Christian Czezatke and Dan McGuirk, (C) 1996.\r
+\r
+\r
+  This library is free software; you can redistribute it and/or modify\r
+  it under the terms of the GNU Library General Public License as \r
+  published by the Free Software Foundation; either version 2 of the \r
+  License, or (at your option) any later version.\r
+\r
+  This library is distributed in the hope that it will be useful, but\r
+  WITHOUT ANY WARRANTY; without even the implied warranty of\r
+  MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+  Library General Public License for more details.\r
+\r
+  You should have received a copy of the GNU Library General Public\r
+  License along with this library (see "license.txt"); if not, write to\r
+  the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA\r
+  02139, USA.\r
+\r
+\r
+  How to contact the authors:\r
+\r
+  email:   pgsql-odbc@postgresql.org\r
+  website: https://odbc.postgresql.org/\r
+\r
+***********************************************************************/\r
+\r
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..056436d
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+VERSION THIS MUST BE ADAPTED
\ No newline at end of file
diff --git a/init.sls.in b/init.sls.in
new file mode 100644 (file)
index 0000000..cc335f6
--- /dev/null
@@ -0,0 +1,33 @@
+###############################################################################
+# SLS: psqlodbc
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Authors:               Helmuth 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':
+      full_name: 'TOREPLACE'
+      installer: salt://win/repo-ng/psqlodbc/TOREPLACE.exe
+      {% if ARCH == 'x64' %}
+      uninstaller: '%PROGRAMFILES(x86)%\psqlodbc\unins000.exe'
+      {% else %}
+      uninstaller: '%PROGRAMFILES%\psqlodbc\unins000.exe'      
+      {% endif %}
+      install_flags: '/verysilent /norestart /LOG="{{ LOG_PATH }}_inst.log"'
+      uninstall_flags: '/verysilent /SUPPRESSMSGBOXES /NORESTART /LOG="{{ LOG_PATH }}_uninst.log"'
+      locale: de_DE
+      msiexec: False
+      reboot: False
+      cache_dir: False
+
diff --git a/oss-pkg-psqlodbc.spec.in b/oss-pkg-psqlodbc.spec.in
new file mode 100644 (file)
index 0000000..f4f78d7
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Spec file for psqlodbc
+# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nuremberg, Germany.  All rights reserved.
+#
+
+Name:         oss-pkg-psqlodbc
+Summary:      Package to install psqlodbc on OSS-Clients
+Version:      VERSION
+Release:      RELEASE
+License:      GPL-2.0
+Vendor:       Peter Varkoly and Helmuth Varkoly
+Packager:     packager@cephalix.eu
+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 psqlodbc on CRANIX-Clients
+
+Authors:
+--------
+        helmuth@varkoly.de
+        peter@varkoly.de
+
+
+%prep
+%setup -n %{name}
+
+%build
+
+%install
+
+mkdir -p %{buildroot}/srv/salt/win/repo-ng/psqlodbc
+mkdir -p %{buildroot}/srv/salt/packages/
+cp psqlodbc.sls  %{buildroot}/srv/salt/packages/
+cp -a repo-ng/* %{buildroot}/srv/salt/win/repo-ng/psqlodbc
+
+%clean
+rm -rf %{buildroot}
+
+%pre
+
+%post
+
+/usr/sbin/crx_api_post_file.sh 'softwares/add' /srv/salt/win/repo-ng/psqlodbc/HASH.json
+
+%files
+%defattr(644,root,root)
+/srv/salt/win/repo-ng/psqlodbc
+/srv/salt/packages/psqlodbc.sls
+
+
diff --git a/psqlodbc.sls b/psqlodbc.sls
new file mode 100644 (file)
index 0000000..ac3acd6
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# SLS: psqlodbc
+# Copyright (c) 2017 Helmuth Varkoly, Nuermberg, Germany.
+# All rights reserved.
+#
+# Author:               Helmuth Varkoly
+#
+# Description:          SLS to use with OSS's softwaremanagement              
+###############################################################################
+psqlodbc:
+  pkg:
+    - installed
+
+
diff --git a/psqlodbc_10_03_0000-x64.zip b/psqlodbc_10_03_0000-x64.zip
new file mode 100644 (file)
index 0000000..3c395d6
Binary files /dev/null and b/psqlodbc_10_03_0000-x64.zip differ
diff --git a/psqlodbc_10_03_0000-x86.zip b/psqlodbc_10_03_0000-x86.zip
new file mode 100644 (file)
index 0000000..d4bbaf7
Binary files /dev/null and b/psqlodbc_10_03_0000-x86.zip differ
diff --git a/psqlodbc_x64.msi b/psqlodbc_x64.msi
new file mode 100644 (file)
index 0000000..d24753d
Binary files /dev/null and b/psqlodbc_x64.msi differ
diff --git a/psqlodbc_x86.msi b/psqlodbc_x86.msi
new file mode 100644 (file)
index 0000000..9939a47
Binary files /dev/null and b/psqlodbc_x86.msi differ