File: rules

package info (click to toggle)
python-pysnmp4 4.1.6a-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,016 kB
  • ctags: 1,826
  • sloc: python: 9,809; sh: 60; makefile: 11
file content (24 lines) | stat: -rwxr-xr-x 888 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

DEB_PYTHON_PACKAGES_EXCLUDE=python-pysnmp4-doc python-pysnmp-common

# python-distutils before debhelper to avoid it calling dh_python
# itself
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

# Don't compress .py files
DEB_COMPRESS_EXCLUDE := .py

# python-support stuff (based on python-cherrypy, thanks to its
# maintainer)
DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib usr/share/python-support/pysnmp4

binary-install/python-pysnmp4::
	rm -f debian/python-pysnmp4/usr/share/python-support/pysnmp4/pysnmp/__init__.py
	echo "2.3-" > debian/python-pysnmp4/usr/share/python-support/pysnmp4/.version

binary-install/python-pysnmp-common::
	echo "2.3-" > debian/python-pysnmp-common/usr/share/python-support/pysnmp-common/.version