Migrating over to python3

This commit is contained in:
Jan Wagner 2020-09-10 16:07:08 +02:00
parent 98a99aa548
commit 899e09699c
2 changed files with 9 additions and 8 deletions

5
debian/control.in vendored
View file

@ -5,8 +5,9 @@ Maintainer: Jan Wagner <waja@cyconet.org>
Uploaders: #AUTO_UPDATE_Uploaders#
Build-Depends: autotools-dev,
debhelper (>= 8.0.0),
python,
python-debian,
dh-python,
python3,
python3-debian,
quilt (>= 0.46-7),
#AUTO_UPDATE_Build-Depends#
Standards-Version: 3.9.6

12
debian/rules vendored
View file

@ -8,7 +8,7 @@ PLUGINS := $(shell find $(CURDIR) -mindepth 1 -maxdepth 1 -name .git -prune -o -
PKGNAME = monitoring-plugins-cyconet
%:
dh $@ --with quilt,python2,autotools_dev --parallel
dh $@ --with quilt,python3,autotools_dev --parallel
# Here follows a small shell snipped to call dh_auto_* for all plugins
# Currently
@ -27,11 +27,11 @@ DH_AUTO_CALL = if [ "$$auto_command" = "dh_auto_configure" ]; then \
echo failed to build $$plugin; exit 255 ; \
fi
PACKAGING_HELPER = /usr/bin/python $(CURDIR)/debian/packaging-helper.py
PACKAGING_HELPER = /usr/bin/python3 $(CURDIR)/debian/packaging-helper.py
clean: $(PLUGINS:%=clean-%) debian/copyright debian/control
dh $@ --with quilt,python2,autotools_dev --parallel
dh $@ --with quilt,python3,autotools_dev --parallel
rm -f debian/$(PKGNAME).install
rm -f debian/README.Debian.plugins
@ -91,9 +91,9 @@ override_dh_auto_install: $(PLUGINS:%=dh_auto_install-%)
override_dh_auto_test:
# nothign to do right now.
override_dh_python2:
dh_python2
dh_python2 usr/lib/nagios/plugins usr/lib/nagios/cronjobs
override_dh_python3:
dh_python3
dh_python3 usr/lib/nagios/plugins usr/lib/nagios/cronjobs
CONTROL_FILES := $(shell for p in $(PLUGINS); do echo $$p/control; done)
COPYRIGHT_FILES := $(shell for p in $(PLUGINS); do echo $$p/copyright; done)