diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f2c9474 --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +#include /usr/share/quilt/quilt.make + +#export DH_VERBOSE=1 +export DH_OPTIONS + +# +# Hardening +# +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + + + +%: + dh $@ --with systemd + +override_dh_auto_install: + dh_auto_install + cp -f $(CURDIR)/debian/systemd/ipmitool.conf $(CURDIR)/debian/ipmitool/usr/lib/modules-load.d/ipmievd.conf + # No need to have two copies of the license text/changelog in the package. + $(RM) $(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/COPYING + $(RM) $(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/ChangeLog + +override_dh_installinit: + dh_installinit --name ipmievd --error-handler=ipmievd_initd_failed + +override_dh_auto_configure: + dh_auto_configure -- --prefix=/usr --with-kerneldir --mandir=/usr/share/man |