summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-09-12 09:30:45 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-09-12 11:50:21 +0000
commit2f10c858ea8bc579414b3a8d8b6eced4a94a5114 (patch)
tree0eac44ac3959c2f136a88189d898d7b28dead958 /debian/rules
parentAdding ddns-client manpage. (diff)
downloadnetwork-tools-2f10c858ea8bc579414b3a8d8b6eced4a94a5114.tar.xz
network-tools-2f10c858ea8bc579414b3a8d8b6eced4a94a5114.zip
Adding debian packaging.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xdebian/rules21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..331c58c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+PACKAGES := $(shell dh_listpackages | cut -d '-' -f 3-)
+
+%:
+ dh ${@}
+
+override_dh_auto_build:
+ # disabled
+
+override_dh_auto_clean:
+ for PACKAGE in $(PACKAGES); \
+ do \
+ $(MAKE) -C $${PACKAGE} clean; \
+ done
+
+override_dh_auto_install:
+ for PACKAGE in $(PACKAGES); \
+ do \
+ $(MAKE) -C $${PACKAGE} DESTDIR=$(CURDIR)/debian/open-infrastructure-$${PACKAGE} install; \
+ done