summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 15:09:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-20 17:08:53 +0000
commit94fe1dd7b4fed9cab2c7580d04dbe1252fefc7ff (patch)
tree5670ee4b800144e7fa7f95aa420904e8c69d7273 /debian/rules
parentUpdating vcs fields. (diff)
downloadopen-infrastructure-service-tools-94fe1dd7b4fed9cab2c7580d04dbe1252fefc7ff.tar.xz
open-infrastructure-service-tools-94fe1dd7b4fed9cab2c7580d04dbe1252fefc7ff.zip
Building individual subpackages for every set of tools.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules20
1 files changed, 15 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index 62c4dda..b3924c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,23 @@
#!/usr/bin/make -f
+PACKAGES := $(shell dh_listpackages | cut -d '-' -f 3- | sed -e 's|-tools$$||')
+
%:
dh ${@} --with apache2
override_dh_auto_install:
+ for PACKAGE in $(PACKAGES); \
+ do \
+ $(MAKE) -C $${PACKAGE} DESTDIR=$(CURDIR)/debian/open-infrastructure-$${PACKAGE}-tools install; \
+ done
+
# apache-tools
- $(MAKE) -C apache DESTDIR=$(CURDIR)/debian/open-infrastructure-service-tools install
+ rm -f debian/open-infrastructure-apache-tools/usr/share/doc/apache-tools/CHANGELOG.txt
+ rm -f debian/open-infrastructure-apache-tools/usr/share/doc/apache-tools/LICENSE.txt
+ -mv debian/open-infrastructure-apache-tools/usr/share/doc/* debian/open-infrastructure-apache-tools/usr/share/doc/open-infrastructure-apache-tools
- # service-tools
- rm -f debian/open-infrastructure-service-tools/usr/share/doc/service-tools/CHANGELOG.txt
- rm -f debian/open-infrastructure-service-tools/usr/share/doc/service-tools/LICENSE.txt
- -mv debian/open-infrastructure-service-tools/usr/share/doc/* debian/open-infrastructure-service-tools/usr/share/doc/open-infrastructure-service-tools
+ifeq (open-infrastructure-linux-tools,$(findstring open-infrastructure-linux-tools,$(PACKAGES)))
+override_dh_installsystemd:
+ dh_installsystemd -p open-infrastructure-linux-tools --no-restart-after-upgrade --no-start --no-stop-on-upgrade
+ dh_installsystemd --remaining-packages
+endif