[Python-modules-commits] r8965 - in packages/pymssql/trunk (12 files)

joss at users.alioth.debian.org joss at users.alioth.debian.org
Sun Jul 5 18:22:57 UTC 2009


    Date: Sunday, July 5, 2009 @ 18:22:54
  Author: joss
Revision: 8965

Commit current package status to the python-modules repository.

Added:
  packages/pymssql/trunk/debian/
  packages/pymssql/trunk/debian/changelog
  packages/pymssql/trunk/debian/compat
  packages/pymssql/trunk/debian/control
  packages/pymssql/trunk/debian/copyright
  packages/pymssql/trunk/debian/install
  packages/pymssql/trunk/debian/patches/
  packages/pymssql/trunk/debian/patches/01_nagios-plugin.patch
  packages/pymssql/trunk/debian/patches/series
  packages/pymssql/trunk/debian/pycompat
  packages/pymssql/trunk/debian/pyversions
  packages/pymssql/trunk/debian/rules

Added: packages/pymssql/trunk/debian/changelog
===================================================================
--- packages/pymssql/trunk/debian/changelog	                        (rev 0)
+++ packages/pymssql/trunk/debian/changelog	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,44 @@
+pymssql (1.0.1+dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add quilt support; build-depend on quilt.
+  * Use upstream-provided nagios plugin now (yes, it’s ours).
+  * 01_nagios-plugin.patch:
+    + Add an option to specify the port.
+    + Fix encoding.
+    + Fix SQL syntax.
+    + Connect explicitly to the "master" database.
+    + Improve perfdata output.
+
+ -- Josselin Mouette <joss at debian.org>  Wed, 18 Feb 2009 12:01:32 +0100
+
+pymssql (0.8.0+dfsg-3) unstable; urgency=low
+
+  * check_mssql: 
+    + return the time value in seconds so that it integrates correctly 
+      with the Nagios perf_data handlers.
+    + add a -P setting to define the TCP port.
+  * Wrap Depends and Build-Depends.
+  * Standards version is 3.8.0.
+
+ -- Josselin Mouette <joss at debian.org>  Fri, 21 Nov 2008 14:51:41 +0100
+
+pymssql (0.8.0+dfsg-2) unstable; urgency=low
+
+  * Ship a Nagios plugin for MS SQL databases.
+
+ -- Josselin Mouette <joss at debian.org>  Mon, 05 May 2008 11:50:05 +0200
+
+pymssql (0.8.0+dfsg-1) unstable; urgency=low
+
+  * Remove ntwdblib.dll from the upstream sources, because this file 
+    doesn’t have any associated source. Thanks Joerg Jaspert for 
+    noticing.
+
+ -- Josselin Mouette <joss at debian.org>  Thu, 06 Mar 2008 12:49:56 +0100
+
+pymssql (0.8.0-1) unstable; urgency=low
+
+  * Initial release. Closes: #468175.
+
+ -- Josselin Mouette <joss at debian.org>  Wed, 27 Feb 2008 18:49:15 +0100

Added: packages/pymssql/trunk/debian/compat
===================================================================
--- packages/pymssql/trunk/debian/compat	                        (rev 0)
+++ packages/pymssql/trunk/debian/compat	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1 @@
+5

Added: packages/pymssql/trunk/debian/control
===================================================================
--- packages/pymssql/trunk/debian/control	                        (rev 0)
+++ packages/pymssql/trunk/debian/control	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,23 @@
+Source: pymssql
+Section: python
+Priority: optional
+Maintainer: Josselin Mouette <joss at debian.org>
+Build-Depends: debhelper (>= 5.0.37.2),
+               python-all-dev (>= 2.3.5-11),
+               cdbs (>= 0.4.43), 
+               freetds-dev,
+               python-support (>= 0.3),
+               quilt
+Standards-Version: 3.8.0
+
+Package: python-pymssql
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends}
+Description: Python database access for MS SQL server and Sybase
+ This package contains a Python module allowing direct access to 
+ Microsoft SQL server and Sybase databases. It is designed for 
+ simplicity and performance, and conforms to Python DB-API 2.0.
+ .
+ It also includes a Nagios plugin to check MS SQL servers remotely.

Added: packages/pymssql/trunk/debian/copyright
===================================================================
--- packages/pymssql/trunk/debian/copyright	                        (rev 0)
+++ packages/pymssql/trunk/debian/copyright	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,32 @@
+This package was debianized by Josselin Mouette <joss at debian.org> on 
+Wed, 27 Feb 2008 12:08:19 +0100.
+
+It was downloaded from <http://sourceforge.net/projects/pymssql/>
+
+Upstream Authors: Park joon-cheol <jooncheol at gmail.com>
+                  Andrzej Kukula <akukula at gmail.com>
+
+Copyright:
+    Copyright © 2003 by Joon-cheol Park
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+The Debian packaging is © 2008, Josselin Mouette <joss at debian.org> and 
+licensed under the LGPL as well.

Added: packages/pymssql/trunk/debian/install
===================================================================
--- packages/pymssql/trunk/debian/install	                        (rev 0)
+++ packages/pymssql/trunk/debian/install	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,2 @@
+nagios-plugin/check_mssql /usr/lib/nagios/plugins/
+nagios-plugin/mssql.cfg /etc/nagios-plugins/config

Added: packages/pymssql/trunk/debian/patches/01_nagios-plugin.patch
===================================================================
--- packages/pymssql/trunk/debian/patches/01_nagios-plugin.patch	                        (rev 0)
+++ packages/pymssql/trunk/debian/patches/01_nagios-plugin.patch	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,46 @@
+Index: pymssql-1.0.1+dfsg/nagios-plugin/check_mssql
+===================================================================
+--- pymssql-1.0.1+dfsg.orig/nagios-plugin/check_mssql	2009-02-18 12:37:06.000000000 +0100
++++ pymssql-1.0.1+dfsg/nagios-plugin/check_mssql	2009-02-18 12:48:06.000000000 +0100
+@@ -1,7 +1,7 @@
+ #!/usr/bin/python
+ # -*- coding: utf-8 -*-
+-# Copyright © 2008 Julien Blache
+-# Copyright © 2008 Josselin Mouette
++# Copyright © 2008 Julien Blache
++# Copyright © 2008 Josselin Mouette
+ # Licensed under the LGPL version 2.1 or later
+ 
+ import sys
+@@ -17,6 +17,7 @@
+ 
+ parser=MyParser(description="Nagios check for MS SQL Server 2000 & up")
+ parser.add_option ('-H', '--host', dest="hostname", help="Host to query (required)")
++parser.add_option ('-P', '--port', dest="port", type="int", help="Port to connect to", default=1433)
+ parser.add_option ('-u', '--user', dest="user", help="Database user name (required)")
+ parser.add_option ('-p', '--password', dest="password", help="Database password (required)")
+ parser.add_option ('-d', '--database', dest="database", help="Database to check (optional)")
+@@ -40,11 +41,11 @@
+ try:
+     stamp1 = datetime.utcnow()
+ 
+-    conn = pymssql.connect(host = options.hostname, user = options.user, password = options.password)
++    conn = pymssql.connect(host = "%s:%i"%(options.hostname,options.port), user = options.user, password = options.password, database="master")
+     curs = conn.cursor()
+ 
+     if options.database:
+-        curs.execute(escape('''SELECT COUNT(*) FROM sysprocesses p.
++        curs.execute(escape('''SELECT COUNT(*) FROM sysprocesses p
+                                JOIN sysdatabases d
+                                ON d.dbid = p.dbid
+                                WHERE p.sid > 50 AND d.name = %s;''',
+@@ -70,7 +71,7 @@
+ #    sys.exit(3)
+ 
+ dstamp = stamp2 - stamp1
+-ms = dstamp.seconds * 1000.0 + dstamp.microseconds / 1000.0
++sec = dstamp.seconds + dstamp.microseconds / 1000000.0
+ 
+-print "OK: %d users, response time %0.03f ms|users=%d time=%0.03fms" % (nbusers, ms, nbusers, ms)
++print "OK: %d users, response time %.3f ms|users=%d time=%.6fs" % (nbusers, sec*1000., nbusers, sec)
+ sys.exit(0)

Added: packages/pymssql/trunk/debian/patches/series
===================================================================
--- packages/pymssql/trunk/debian/patches/series	                        (rev 0)
+++ packages/pymssql/trunk/debian/patches/series	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1 @@
+01_nagios-plugin.patch

Added: packages/pymssql/trunk/debian/pycompat
===================================================================
--- packages/pymssql/trunk/debian/pycompat	                        (rev 0)
+++ packages/pymssql/trunk/debian/pycompat	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1 @@
+2

Added: packages/pymssql/trunk/debian/pyversions
===================================================================
--- packages/pymssql/trunk/debian/pyversions	                        (rev 0)
+++ packages/pymssql/trunk/debian/pyversions	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1 @@
+2.4-

Added: packages/pymssql/trunk/debian/rules
===================================================================
--- packages/pymssql/trunk/debian/rules	                        (rev 0)
+++ packages/pymssql/trunk/debian/rules	2009-07-05 18:22:54 UTC (rev 8965)
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2002,2003 Colin Walters <walters at debian.org>
+
+DEB_PYTHON_SYSTEM=pysupport
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+binary-post-install/python-pymssql::
+	chmod 755 debian/python-pymssql/usr/lib/nagios/plugins/*


Property changes on: packages/pymssql/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *




More information about the Python-modules-commits mailing list