File: rules

package info (click to toggle)
acmetool 0.0.58-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 784 kB
  • ctags: 791
  • sloc: sh: 200; makefile: 83
file content (34 lines) | stat: -rwxr-xr-x 1,114 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

# Override default hooks path (see _doc/PACKAGING-PATHS.md)
GO_LDFLAGS += -X github.com/hlandau/acme/hooks.DefaultPath=/etc/acme/hooks
# Set version information for acmetool --version
GO_LDFLAGS += -X github.com/hlandau/buildinfo.RawBuildInfo=$(shell echo -n 'acmetool $(DEB_VENDOR) version $(DEB_VERSION)' | base64)

%:
	dh $@ --buildsystem=golang --with=golang,apache2

override_dh_auto_build:
	dh_auto_build -O--buildsystem=golang -- -ldflags "$(GO_LDFLAGS)"

# Disable OCSP test to avoid network access
override_dh_auto_test:
	dh_auto_test -O--buildsystem=golang -- -run '^Test([^O]|O[^C]|OC[^S]|OCS[^P])'

override_dh_auto_install:
	dh_auto_install -O--buildsystem=golang -- --no-source
	mkdir -p debian/acmetool/usr/share/man/man8
	debian/acmetool/usr/bin/acmetool --help-man > debian/acmetool/usr/share/man/man8/acmetool.8

override_dh_compress:
	dh_compress --exclude=examples

override_dh_systemd_enable:
	dh_systemd_enable --no-enable acmetool.timer

override_dh_systemd_start:
	dh_systemd_start --no-start acmetool.timer

override_dh_installinit: