File: rules

package info (click to toggle)
guerillabackup 0.5.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 4,178; xml: 753; sh: 24; makefile: 18
file content (34 lines) | stat: -rwxr-xr-x 1,113 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

%:
	dh $@ --with=python3

override_dh_auto_build:
	xsltproc --nonet \
	--param make.year.ranges 1 \
	--param make.single.year.ranges 1 \
	--param man.charmap.use.subset 0 \
	-o debian/ \
	http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
	doc/gb-backup-generator.1.xml doc/gb-storage-tool.1.xml \
	doc/gb-transfer-service.1.xml
	dh_auto_build

# Do not enable the services on fresh install by default. The
# user should do that manually for those services, he really wants
# to run. Also do not start the services after install or update.
# Without this option, all units would be started during upgrade,
# even those not enabled. When user did not enable them, dpkg
# should respect that. Those enabled will still be started by
# custom postinst code.
override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

override_dh_fixperms:
	dh_fixperms
	chmod -R 00700 -- debian/guerillabackup/var/lib/guerillabackup
	chmod 00700 -- debian/guerillabackup/etc/guerillabackup/keys