summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:22:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:22:55 +0000
commit53f7153331b5c0ff0ef584e8b7a4025a0ab4ada7 (patch)
tree7478bcfdac83e84d7221c0741e8bc9a9cf01b3d6 /debian/rules
parentAdding upstream version 1.6.12. (diff)
downloadgeoip-53f7153331b5c0ff0ef584e8b7a4025a0ab4ada7.tar.xz
geoip-53f7153331b5c0ff0ef584e8b7a4025a0ab4ada7.zip
Adding debian version 1.6.12-11.debian/1.6.12-11
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ad698c7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_OPTIONS+=nocheck
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+ dh $@ --with autoreconf
+
+override_dh_auto_install:
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+ chrpath -d -k debian/tmp/usr/bin/geoip*
+
+override_dh_auto_configure:
+ dh_auto_configure -- GREP=/bin/grep MKDIR_P="/bin/mkdir -p" SED=/bin/sed SHELL=/bin/bash
+
+override_dh_installexamples:
+ dh_installexamples
+ rm -f $(CURDIR)/debian/libgeoip-dev/usr/share/doc/libgeoip-dev/examples/Makefile
+
+override_dh_install:
+ dh_install
+ strip --remove-section=.comment \
+ $(CURDIR)/debian/libgeoip-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libGeoIP.a