File: rules

package info (click to toggle)
vip-manager2 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: sh: 169; makefile: 33
file content (26 lines) | stat: -rwxr-xr-x 694 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
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export LANG=C.UTF-8

export DH_GOLANG_EXCLUDES := iphlpapi

export VERSION=$(shell dpkg-parsechangelog --show-field Version)
export DATE=$(shell date --date="@$${SOURCE_DATE_EPOCH}" +%Y-%m-%d)

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

override_dh_auto_build:
	dh_auto_build -- -buildvcs=false -ldflags "-X main.version=$${VERSION} -X main.date=$${DATE}"

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_install:
	dh_install
	install -d $(CURDIR)/debian/vip-manager2/etc/patroni
	install -m 664 debian/vip.in $(CURDIR)/debian/vip-manager2/etc/patroni/vip.in

override_dh_installsystemd:
	dh_installsystemd --name vip-manager