File: rules

package info (click to toggle)
python-netsnmpagent 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 340 kB
  • sloc: python: 1,200; sh: 172; makefile: 6
file content (10 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/make -f

export PYBUILD_NAME=netsnmpagent

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_gencontrol:
	lib=$(shell dpkg-query -W -f '$${Depends}' libsnmp-dev | sed -E 's/.*(libsnmp[[:alnum:]]+).*/\1/'); \
	echo "lib:Depends=$$lib" >> debian/python3-netsnmpagent.substvars