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 29 30 31 32 33 34 35 36 37 38
|
#!/usr/bin/make -ef
export PYBUILD_NAME = certbot
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with python2,sphinxdoc,systemd --buildsystem=pybuild
override_dh_clean: debian/control
dh_clean
debian/control: debian/control.in debian/changelog
sed -e 's/###UPSTREAM_VERSION###/$(DEB_VERSION_UPSTREAM)/g' < debian/control.in > debian/control
override_dh_install:
mkdir -p debian/certbot/usr/bin
mv debian/python-certbot/usr/bin/* debian/certbot/usr/bin
rm -rf debian/python-certbot/usr/bin
http_proxy='127.0.0.1:9' \
https_proxy='127.0.0.1:9' \
sphinx-build -N -bhtml docs/ build/html
http_proxy='127.0.0.1:9' \
https_proxy='127.0.0.1:8' \
sphinx-build -N -bman docs/ build/man
install -D --mode=644 --target-directory=debian/certbot/lib/systemd/system debian/certbot.timer
override_dh_auto_test:
no_proxy="localhost" dh_auto_test
override_dh_systemd_enable:
dh_systemd_enable --package=certbot certbot.timer
override_dh_systemd_start:
dh_systemd_start --package=certbot certbot.timer
dh_systemd_start --package=certbot --no-start certbot.service
override_dh_installinit:
|