File: rules

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

export PYBUILD_NAME=netsnmpagent
%:
	dh $@ --with python3 --buildsystem=pybuild

override_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
	dh_gencontrol