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 26 27 28
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
build3vers := $(shell py3versions -sv)
export PYBUILD_NAME = portpicker
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_clean:
rm -f debian/portserver.1
dh_auto_clean
override_dh_installman:
help2man --version-string="$(DEB_VERSION_UPSTREAM)" \
-n 'server to hand out unused port numbers' \
-v '-h' \
-N \
-i debian/extra-man.txt \
"python3 src/portserver.py" > debian/portserver.1
dh_installman
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
PYTHONPATH=src python3 src/tests/portpicker_test.py
PYTHONPATH=src python3 src/tests/portserver_test.py
endif
|