summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5709dbb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+BINDEST=debian/ipcalc-ng/usr/bin
+MANDEST=debian/ipcalc-ng/usr/share/man/man1
+
+%:
+ dh $@ --buildsystem=meson
+
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS
+
+override_dh_installman:
+ dh_installman
+ mv $(MANDEST)/ipcalc.1 $(MANDEST)/ipcalc-ng.1
+
+override_dh_auto_install:
+ dh_auto_install
+ mv $(BINDEST)/ipcalc $(BINDEST)/ipcalc-ng