File: rules

package info (click to toggle)
mailman3 3.3.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,256 kB
  • sloc: python: 52,636; sh: 319; makefile: 24
file content (38 lines) | stat: -rwxr-xr-x 1,099 bytes parent folder | download
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 -f
export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PYBUILD_NAME = mailman3
export PYBUILD_DESTDIR = debian/mailman3

MM3_BIN_DIR=/usr/lib/mailman3/bin/

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

override_dh_auto_test:
	# Running the test suite at build time is not supported for now.
	# See upstream bug #400 for further information.
	#PYTHONPATH="." python3 -m nose2 --verbose

override_dh_auto_build:
	PYTHONPATH=. sphinx-build -b html -c ./ -E -N . build/sphinx/html
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	find debian/mailman3/usr/lib/ -type d -name "docs" -exec rm -rf {} \; -prune;
	mkdir -p $(CURDIR)/debian/mailman3/$(MM3_BIN_DIR)
	mv $(CURDIR)/debian/mailman3/usr/bin/* $(CURDIR)/debian/mailman3/$(MM3_BIN_DIR)

override_dh_installinit:
	dh_installinit --error-handler=init_service_failed

override_dh_installchangelogs:
	dh_installchangelogs src/mailman/docs/NEWS.rst

override_dh_fixperms:
	dh_fixperms
	chown list:list debian/mailman3/var/lib/mailman3 \
	                debian/mailman3/var/log/mailman3