summaryrefslogtreecommitdiff
path: root/debian/rules
blob: e56a7831f738f4c91e7298456d18afc8d504ca5a (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
35
36
37
38
39
40
41
42
43
44
45
#!/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 $@ --no-parallel

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:
	$(RM) debian/ipmiutil/usr/share/man/man8/idcmi.8.gz
	$(RM) debian/ipmiutil/usr/share/man/man8/idelloem.8.gz
	$(RM) debian/ipmiutil/usr/share/man/man8/iekanalyzer.8.gz
	$(RM) debian/ipmiutil/usr/share/man/man8/ismcoem.8.gz
	$(RM) debian/ipmiutil/usr/share/man/man8/isunoem.8.gz
	$(RM) debian/ipmiutil/usr/share/man/man8/itsol.8.gz
#	dh_installman doc/iseltime.8
	dh_installman

override_dh_installsystemd:
	dh_installsystemd --name ipmiutil_wdt
	dh_installsystemd --name ipmi_port    --no-enable --no-start
	dh_installsystemd --name ipmiutil_asy --no-enable --no-start
	dh_installsystemd --name ipmiutil_evt --no-enable --no-start

override_dh_installinit:
	dh_installinit --name ipmiutil_wdt
	dh_installinit --name ipmi_port    --no-enable --no-start
	dh_installinit --name ipmiutil_asy --no-enable --no-start
	dh_installinit --name ipmiutil_evt --no-enable --no-start