1
0
Fork 0

Building tools as individual packages.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-25 21:18:19 +02:00
parent 5bdf4e621a
commit 46f930fea5
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
6 changed files with 175 additions and 177 deletions

322
debian/control vendored
View file

@ -19,187 +19,175 @@ Vcs-Git: https://git.progress-linux.org/horok-backports/open-infrastructure-serv
XSBC-Original-Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/open-infrastructure-service-tools
XSBC-Original-Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/open-infrastructure-service-tools
Package: open-infrastructure-service-tools
Package: open-infrastructure-apache-tools
Section: admin
Architecture: all
Depends:
apache2-data,
${misc:Depends},
Description: additional tools to ease system administration and integration
This package contains some usefull tools, e.g.:
.
* alternative icons for Apache autoindex (Tango Icons and Font Awesome
based themes)
Provides:
apache-tools,
Enhances:
apache2,
Description: additional tools for Apache HTTP server
This package contains additional tools for the Apache HTTP server.
#Package: open-infrastructure-apache-tools
#Section: admin
#Architecture: all
#Depends:
# apache2-data,
# ${misc:Depends},
#Provides:
# apache-tools,
#Enhances:
# apache,
#Description: additional tools for Apache HTTP server
# This package contains additional tools for the Apache HTTP server.
Package: open-infrastructure-apt-tools
Section: admin
Architecture: all
Depends:
apt,
${misc:Depends},
Provides:
apt-tools,
Enhances:
apt,
Description: additional tools for apt
This package contains additional tools for apt.
#Package: open-infrastructure-apt-tools
#Section: admin
#Architecture: all
#Depends:
# apt,
# ${misc:Depends},
#Provides:
# apt-tools,
#Enhances:
# apt,
#Description: additional tools for apt
# This package contains additional tools for apt.
Package: open-infrastructure-dehydrated-tools
Section: admin
Architecture: all
Depends:
dehydrated,
ssl-cert,
${misc:Depends},
Provides:
dehydrated-tools,
Enhances:
dehydrated,
Description: additional tools for dehydrated Letsencrypt client
This package contains additional tools for the dehydrated Letsencrypt client.
#Package: open-infrastructure-dehydrated-tools
#Section: admin
#Architecture: all
#Depends:
# dehydrated,
# ssl-cert,
# ${misc:Depends},
#Provides:
# dehydrated-tools,
#Enhances:
# dehydrated,
#Description: additional tools for dehydrated Letsencrypt client
# This package contains additional tools for the dehydrated Letsencrypt client.
Package: open-infrastructure-dnsdist-tools
Section: admin
Architecture: all
Depends:
dnsdist,
${misc:Depends},
Provides:
dnsdist-tools,
Enhances:
dnsdist,
Description: additional tools for dnsdist
This package contains additional tools for the dnsdist.
#Package: open-infrastructure-dnsdist-tools
#Section: admin
#Architecture: all
#Depends:
# dnsdist,
# ${misc:Depends},
#Provides:
# dnsdist-tools,
#Enhances:
# dnsdist,
#Description: additional tools for dnsdist
# This package contains additional tools for the dnsdist.
Package: open-infrastructure-git-tools
Section: admin
Architecture: all
Depends:
git,
${misc:Depends},
Provides:
git-tools,
Enhances:
git,
Description: additional tools for Git version control system
This package contains additional tools for the Git version control system.
#Package: open-infrastructure-git-tools
#Section: admin
#Architecture: all
#Depends:
# git,
# ${misc:Depends},
#Provides:
# git-tools,
#Enhances:
# git,
#Description: additional tools for Git version control system
# This package contains additional tools for the Git version control system.
Package: open-infrastructure-irker-tools
Section: admin
Architecture: all
Depends:
irker,
${misc:Depends},
Provides:
irker-tools,
Enhances:
irker,
Description: additional tools for irker IRC notification daemon
This package contains additional tools for the irker IRC notification daemon:
#Package: open-infrastructure-irker-tools
#Section: admin
#Architecture: all
#Depends:
# irker,
# ${misc:Depends},
#Provides:
# irker-tools,
#Enhances:
# irker,
#Description: additional tools for irker IRC notification daemon
# This package contains additional tools for the irker IRC notification daemon:
Package: open-infrastructure-kea-tools
Section: admin
Architecture: all
Depends:
kea,
${misc:Depends},
Provides:
kea-tools,
Enhances:
kea,
Description: additional tools for kea DHCP server
This package contains additional tools for the kea DHCP server.
#Package: open-infrastructure-kea-tools
#Section: admin
#Architecture: all
#Depends:
# kea,
# ${misc:Depends},
#Provides:
# kea-tools,
#Enhances:
# kea,
#Description: additional tools for kea DHCP server
# This package contains additional tools for the kea DHCP server.
Package: open-infrastructure-knot-tools
Section: admin
Architecture: all
Depends:
knot,
${misc:Depends},
Provides:
knot-tools,
Enhances:
knot,
Description: additional tools for knot DNS server
This package contains additional tools for the knot DNS server.
#Package: open-infrastructure-knot-tools
#Section: admin
#Architecture: all
#Depends:
# knot,
# ${misc:Depends},
#Provides:
# knot-tools,
#Enhances:
# knot,
#Description: additional tools for knot DNS server
# This package contains additional tools for the knot DNS server.
Package: open-infrastructure-knot-resolver-tools
Section: admin
Architecture: all
Depends:
knot-resolver,
socat,
${misc:Depends},
Provides:
knot-resolver-tools,
Enhances:
knot-resolver,
Description: additional tools for knot DNS resolver
This package contains additional tools for the knot DNS resolver.
#Package: open-infrastructure-knot-resolver-tools
#Section: admin
#Architecture: all
#Depends:
# knot-resolver,
# socat,
# ${misc:Depends},
#Provides:
# knot-resolver-tools,
#Enhances:
# knot-resolver,
#Description: additional tools for knot DNS resolver
# This package contains additional tools for the knot DNS resolver.
Package: open-infrastructure-linux-tools
Section: admin
Architecture: all
Depends:
ethtool,
${misc:Depends},
Provides:
linux-tools,
Enhances:
ethtool,
Description: additional tools for Linux kernel related things
This package contains additional tools for the Linux kernel.
#Package: open-infrastructure-linux-tools
#Section: admin
#Architecture: all
#Depends:
# ethtool,
# ${misc:Depends},
#Provides:
# linux-tools,
#Enhances:
# ethtool,
#Description: additional tools for Linux kernel related things
# This package contains additional tools for the Linux kernel.
Package: open-infrastructure-openssh-tools
Section: admin
Architecture: all
Depends:
openssh-server,
${misc:Depends},
Provides:
openssh-tools,
Enhances:
openssh-server,
Description: additional tools for OpenSSH related things
This package contains additional tools for OpenSSH.
#Package: open-infrastructure-openssh-tools
#Section: admin
#Architecture: all
#Depends:
# openssh-server,
# ${misc:Depends},
#Provides:
# openssh-tools,
#Enhances:
# openssh-server,
#Description: additional tools for OpenSSH related things
# This package contains additional tools for OpenSSH.
Package: open-infrastructure-supermicro-tools
Section: admin
Architecture: all
Depends:
ipcalc-ng,
knot-dnsutils | bind9-dnsutils,
supermicro-ipmicfg,
${misc:Depends},
Provides:
supermicro-tools,
Enhances:
supermicro-ipmicfg,
Description: additional tools for Supermicro servers
This package contains additional tools for Supermicro servers.
#Package: open-infrastructure-supermicro-tools
#Section: admin
#Architecture: all
#Depends:
# ipcalc-ng,
# knot-dnsutils | bind9-dnsutils,
# supermicro-ipmicfg,
# ${misc:Depends},
#Provides:
# supermicro-tools,
#Enhances:
# supermicro-ipmicfg,
#Description: additional tools for Supermicro servers
# This package contains additional tools for Supermicro servers.
#Package: open-infrastructure-vim-tools
#Section: admin
#Architecture: all
#Depends:
# vim,
# ${misc:Depends},
#Provides:
# vim-tools,
#Enhances:
# vim,
#Description: additional tools for vim text editor
# This package contains additional tools for the vim text editor.
Package: open-infrastructure-vim-tools
Section: admin
Architecture: all
Depends:
vim,
${misc:Depends},
Provides:
vim-tools,
Enhances:
vim,
Description: additional tools for vim text editor
This package contains additional tools for the vim text editor.

View file

@ -0,0 +1,4 @@
# '000-' prefix is required to keep order of apache parsing working
open-infrastructure-apache-tools: non-standard-apache2-configuration-name
# apache-tools is for apache2 only
open-infrastructure-apache-tools: web-application-depends-on-apache2-data-package

View file

@ -1,4 +0,0 @@
# '000-' prefix is required to keep order of apache parsing working
open-infrastructure-service-tools: non-standard-apache2-configuration-name
# service-tools is for apache2 only
open-infrastructure-service-tools: web-application-depends-on-apache2-data-package

22
debian/rules vendored
View file

@ -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:
# apache-tools
$(MAKE) -C apache DESTDIR=$(CURDIR)/debian/open-infrastructure-service-tools install
for PACKAGE in $(PACKAGES); \
do \
$(MAKE) -C $${PACKAGE} DESTDIR=$(CURDIR)/debian/open-infrastructure-$${PACKAGE}-tools install; \
done
# 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
# 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