File: rules

package info (click to toggle)
python-certbot 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,688 kB
  • sloc: python: 21,764; makefile: 182; sh: 108
file content (48 lines) | stat: -rwxr-xr-x 1,597 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -ef

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME = certbot

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
export NOCHECK = true
endif

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

# Because of problems with the way setuptools finds plugins, the tests need to
# run after the install.
override_dh_auto_test:
	echo "Skipping until after install."

override_dh_install:
	mkdir -p debian/certbot/usr/bin debian/certbot/etc/letsencrypt
	mv debian/python3-certbot/usr/bin/* debian/certbot/usr/bin
	rm -rf debian/python3-certbot/usr/bin
	mv debian/cli.ini debian/certbot/etc/letsencrypt/cli.ini
	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
	if [ -z ${NOCHECK+x} ]; then dh_auto_test; fi # see override_dh_auto_test

override_dh_installsystemd:
	dh_installsystemd --no-start --no-stop-on-upgrade --package=certbot certbot.service
	dh_installsystemd --package=certbot certbot.timer

override_dh_installinit:

override_dh_installdocs:
	dh_installdocs --doc-main-package=python3-certbot -p python-certbot-doc
	dh_installdocs -p certbot -p python3-certbot

override_dh_installexamples:
	dh_installexamples --doc-main-package=python3-certbot -p python-certbot-doc

override_dh_gencontrol:
	echo "Abi-major-version=${DEB_VERSION_UPSTREAM}" | cut -d. -f1 >> debian/abi.substvars
	echo "Abi-major-minor-version=${DEB_VERSION_UPSTREAM}" | cut -d. -f1,2 >> debian/abi.substvars
	dh_gencontrol -- -Tdebian/abi.substvars