summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a96f35ae6515796fcb1567c73ee1be721df1e9a6 (plain)
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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CFLAGS += -fPIC
CONFPARA = --enable-gpl --enable-useflags --enable-libsensors

%:
	dh $@  --with autotools-dev

override_dh_auto_configure:
	$(CURDIR)/beforeconf.sh
	dh_auto_configure -- $(CONFPARA)

override_dh_autoreconf:
	dh_autoreconf --exclude=mkinstalldirs

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_installman:
	dh_installman doc/iseltime.8
	dh_installman

override_dh_systemd_enable:
	dh_systemd_enable --no-enable --name=ipmi_port
	dh_systemd_enable --name=ipmi_info
	dh_systemd_enable --no-enable --name=ipmiutil_asy
	dh_systemd_enable --no-enable --name=ipmiutil_evt
	dh_systemd_enable --name=ipmiutil_wdt