From e8993bc4c46da3e446e61e9cf70d166320047a70 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 17:09:37 +0200 Subject: Building individual subpackages for every set of tools. Signed-off-by: Daniel Baumann --- debian/rules | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'debian/rules') 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 -- cgit v1.2.3