File: rules

package info (click to toggle)
scapy 2.4.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,128 kB
  • sloc: python: 103,730; sh: 122; makefile: 24
file content (25 lines) | stat: -rwxr-xr-x 510 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
25
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=scapy


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

override_dh_auto_configure:
	echo -n $(DEB_VERSION_UPSTREAM) > scapy/VERSION

override_dh_auto_clean:
	dh_auto_clean
	-rm scapy/VERSION

override_dh_auto_test:
	# disable tests: they required network
	echo "Tests disabled"

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/scapy build/html