diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3b00002 --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/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 + +override_dh_systemd_start: + dh_systemd_start --no-start --restart-after-upgrade --name=ipmi_port + dh_systemd_start --no-start --restart-after-upgrade --name=ipmiutil_asy + dh_systemd_start --no-start --restart-after-upgrade --name=ipmiutil_evt |