diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c3f1a09 --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk + +ifeq ($(DEB_HOST_ARCH),amd64) +DIRECTORY := 64bit +endif + +ifeq ($(DEB_HOST_ARCH),i386) +DIRECTORY := 32bit +endif + +%: + dh ${@} + +execute_after_dh_auto_clean: + rm -rf build + +override_dh_auto_build: + mkdir -p build + unzip IPMICFG*.zip -d build + +override_dh_auto_install: + mkdir -p debian/supermicro-ipmicfg/usr/bin + cp -a build/*/Linux/$(DIRECTORY)/IPMICFG-Linux.* debian/supermicro-ipmicfg/usr/bin/supermicro-ipmicfg + +override_dh_installchangelogs: + dh_installchangelogs build/*/ReleaseNotes.txt + +override_dh_dwz: + # disabled + +override_dh_strip: + # disabled + +override_dh_strip_nondeterminism: + # disabled |