diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:19:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:19:40 +0000 |
commit | c9b134dde5965790d575ef00836d813c2885f210 (patch) | |
tree | 1638f048fe803426b2e796e1ecdf30de2f4ccc53 /debian/rules | |
parent | Adding upstream version 3.5. (diff) | |
download | dmidecode-c9b134dde5965790d575ef00836d813c2885f210.tar.xz dmidecode-c9b134dde5965790d575ef00836d813c2885f210.zip |
Adding debian version 3.5-3.debian/3.5-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a7e6173 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -fPIE +export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie + + +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + +%: + dh ${@} + +override_dh_auto_build: + dh_auto_build -- CC=$(CC) CFLAGS="$(CFLAGS) $(CPPFLAGS) -Os" LDFLAGS="$(LDFLAGS)" + +override_dh_auto_install: + dh_auto_install -- prefix=/usr + + # remove useless files + rm -f debian/tmp/usr/share/doc/dmidecode/CHANGELOG + rm -f debian/tmp/usr/share/doc/dmidecode/README |