File: rules

package info (click to toggle)
snmpsim 0.4.5-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,024 kB
  • sloc: python: 5,225; makefile: 7; sh: 3
file content (14 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --with=python3 --buildsystem=pybuild

override_dh_install:
	dh_install
	# Rename .py files to extension-less files
	for f in debian/snmpsim/usr/bin/*.py; do mv $$f $${f%.py} ; done
	# Rename datafile and mib2dev with a prefix
	for f in datafile mib2dev pcap2dev; do mv debian/snmpsim/usr/bin/$$f debian/snmpsim/usr/bin/snmpsim-$$f ; done
	# Remove /usr/snmpsim
	rm -rf debian/snmpsim/usr/snmpsim