[Pkg-zenoss-commits] r314 - in /trunk/packages/pynetsnmp/debian: control libdeps rules
bzed-guest at users.alioth.debian.org
bzed-guest at users.alioth.debian.org
Tue Nov 27 12:33:36 UTC 2007
Author: bzed-guest
Date: Tue Nov 27 12:33:29 2007
New Revision: 314
URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=314
Log:
new way to find our libsnmp dependency
Added:
trunk/packages/pynetsnmp/debian/libdeps
Modified:
trunk/packages/pynetsnmp/debian/control
trunk/packages/pynetsnmp/debian/rules
Modified: trunk/packages/pynetsnmp/debian/control
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/pynetsnmp/debian/control?rev=314&op=diff
==============================================================================
--- trunk/packages/pynetsnmp/debian/control (original)
+++ trunk/packages/pynetsnmp/debian/control Tue Nov 27 12:33:29 2007
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Zenoss Packaging Team <pkg-zenoss-team at lists.alioth.debian.org>
Uploaders: Bernd Zeimetz <bernd at bzed.de>, Stefano Zacchiroli <zack at debian.org>
-Build-Depends: cdbs, debhelper (>= 5), dpatch, python
+Build-Depends: debhelper (>= 5), dpatch, python
Build-Depends-Indep: libsnmp-dev, python-support (>= 0.4)
XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-zenoss/packages/pynetsnmp/trunk/
XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/
@@ -11,7 +11,7 @@
Package: python-pynetsnmp
Architecture: all
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-ctypes, python-twisted-core
+Depends: ${python:Depends}, ${libsnmp:Depends}, ${misc:Depends}, python-ctypes, python-twisted-core
Description: Python ctypes bindings for NET-SNMP with Twisted integration
pynetsnmp is a set of Python ctypes binding for NET-SNMP, an
implementation of the Simple Network Management Protocol (SNMP).
Added: trunk/packages/pynetsnmp/debian/libdeps
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/pynetsnmp/debian/libdeps?rev=314&op=file
==============================================================================
--- trunk/packages/pynetsnmp/debian/libdeps (added)
+++ trunk/packages/pynetsnmp/debian/libdeps Tue Nov 27 12:33:29 2007
@@ -1,0 +1,13 @@
+#!/usr/bin/python
+
+import os
+import re
+
+child_stdin, child_stdout = os.popen2('dpkg -s libsnmp-dev')
+output = child_stdout.read()
+child_stdout.close()
+child_stdin.close()
+
+version = re.findall(r'^Depends:.*(libsnmp[0-9]+ \([^)]+\))', output, re.M)[0]
+
+print "libsnmp:Depends=" + version
Modified: trunk/packages/pynetsnmp/debian/rules
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/pynetsnmp/debian/rules?rev=314&op=diff
==============================================================================
--- trunk/packages/pynetsnmp/debian/rules (original)
+++ trunk/packages/pynetsnmp/debian/rules Tue Nov 27 12:33:29 2007
@@ -4,8 +4,6 @@
#export DH_VERBOSE=1
PKGNAME:=python-pynetsnmp
-PYVERS:=$(shell pyversions -r)
-
include /usr/share/dpatch/dpatch.make
@@ -13,10 +11,7 @@
build-stamp:
dh_testdir
- set -e; \
- for py in $(PYVERS); do \
- $$py setup.py build; \
- done
+ python setup.py build
touch $@
@@ -25,9 +20,7 @@
dh_testdir
dh_testroot
rm -f install-stamp build-stamp
- -for py in $(PYVERS); do \
- $$py setup.py clean; \
- done
+ -python setup.py clean
find . -name \*.pyc | xargs rm -f
rm -rf build
dh_clean
@@ -38,13 +31,9 @@
dh_testroot
dh_clean -k
dh_installdirs
- set -e; \
- for py in $(PYVERS); do \
- $$py setup.py install --root=debian/$(PKGNAME); \
- done
+ python setup.py install --root=debian/$(PKGNAME)
dh_installdocs -A
- dh_installexamples
touch install-stamp
binary-arch: build install
@@ -57,7 +46,7 @@
dh_compress -X.py
dh_fixperms
dh_pysupport
- #python-pynetsnmp.substvars
+ python debian/libdeps >> python-pynetsnmp.substvars
dh_installdeb
dh_gencontrol
dh_md5sums
More information about the Pkg-zenoss-commits
mailing list