File: rules

package info (click to toggle)
snmpsim 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,580 kB
  • ctags: 508
  • sloc: python: 4,898; makefile: 7
file content (14 lines) | stat: -rwxr-xr-x 423 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=python2 $@

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