1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
VERSION = $(shell dpkg-parsechangelog --show-field Version | cut -f1 -d-)
export PYBUILD_NAME=haproxy-log-analysis
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
# Remove the script from the python 2 package
rm debian/python-haproxy-log-analysis/usr/bin/haproxy_log_analysis
# Move the python 3 script to the haproxy-log-analysis package
mkdir -p debian/haproxy-log-analysis/usr/bin
mv debian/python3-haproxy-log-analysis/usr/bin/haproxy_log_analysis debian/haproxy-log-analysis/usr/bin/
override_dh_installman:
PYTHONPATH="." help2man --no-info --version-string="${VERSION}" \
--name="generate aggregate statistics from HAProxy HTTP logs" \
--output=debian/haproxy_log_analysis.1 \
./debian/haproxy-log-analysis/usr/bin/haproxy_log_analysis
dh_installman
|