1
0
Fork 0
open-infrastructure-service.../debian/rules
Daniel Baumann 46f930fea5
Building tools as individual packages.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 21:18:19 +02:00

23 lines
921 B
Makefile
Executable file

#!/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
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
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