File: rules

package info (click to toggle)
sanlock 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,012 kB
  • sloc: ansic: 29,026; sh: 1,192; python: 1,067; makefile: 359
file content (57 lines) | stat: -rwxr-xr-x 1,634 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

FLAGS = LIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} LIBDIR_NAME=

%:
	dh $@

execute_after_dh_auto_clean:
	dh_auto_clean -D reset
ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
	rm -rf $(CURDIR)/python/*.egg-info/
endif

override_dh_auto_build:
	dh_auto_build -D wdmd -- $(FLAGS)
	dh_auto_build -D src -- $(FLAGS)
	dh_auto_build -D reset
ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
	dh_auto_build -D python --buildsystem=pybuild
endif

override_dh_auto_configure:
	dh_auto_configure -D wdmd
	dh_auto_configure -D src
	dh_auto_configure -D reset
ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
	dh_auto_configure -D python --buildsystem=pybuild
endif

override_dh_auto_install:
	dh_auto_install -D wdmd -- $(FLAGS)
	dh_auto_install -D src -- $(FLAGS)
	dh_auto_install -D reset
ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
	dh_auto_install -D python --buildsystem=pybuild
endif

override_dh_makeshlibs:
	dh_makeshlibs -X/usr/lib/sanlock

execute_after_dh_install:
	install -D -m 0755 init.d/systemd-wdmd debian/sanlock/usr/lib/systemd/systemd-wdmd
	install -D -m 0644 init.d/sanlock.service.native debian/sanlock/usr/lib/systemd/system/sanlock.service

override_dh_installsystemd:
	dh_installsystemd --name=wdmd --no-stop-on-upgrade
	dh_installsystemd --name=sanlock --no-stop-on-upgrade
	dh_installsystemd --name=sanlk-resetd --no-enable --no-start

override_dh_installinit:
	dh_installinit -psanlock --name=wdmd --no-stop-on-upgrade
	dh_installinit -psanlock --name=sanlock --no-stop-on-upgrade