diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-29 06:29:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-29 06:29:57 +0000 |
commit | 85daa5f631dd11abfd689d4ddc9064190272a52e (patch) | |
tree | 6b3021567d8216d2590dd2b4c87dcbfcf0d5c95a /debian | |
parent | Adding upstream version 20230327. (diff) | |
download | kinet-metapackages-85daa5f631dd11abfd689d4ddc9064190272a52e.tar.xz kinet-metapackages-85daa5f631dd11abfd689d4ddc9064190272a52e.zip |
Adding debian version 20230327-1.debian/20230327-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 211 | ||||
-rw-r--r-- | debian/copyright | 25 | ||||
-rwxr-xr-x | debian/kinet-container.postrm | 30 | ||||
-rwxr-xr-x | debian/kinet-container.preinst | 32 | ||||
-rwxr-xr-x | debian/local/shutdown | 13 | ||||
-rw-r--r-- | debian/local/shutdown.txt | 6 | ||||
-rwxr-xr-x | debian/rules | 29 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/upstream/signing-key.asc | 13 |
10 files changed, 365 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0b181c0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +kinet-metapackages (20230327-1) sid; urgency=medium + + * Initial upload to sid. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Tue, 28 Mar 2023 10:28:32 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1045493 --- /dev/null +++ b/debian/control @@ -0,0 +1,211 @@ +Source: kinet-metapackages +Section: metapackages +Priority: optional +Maintainer: Kinet Informatikdienst <linux@gymkirchenfeld.ch> +Uploaders: Daniel Baumann <daniel.baumann@progress-linux.org> +Build-Depends: + debhelper-compat (= 13), + python3-docutils, +Rules-Requires-Root: no +Standards-Version: 4.6.2 +Homepage: https://gymkirchenfeld.ch +Vcs-Browser: https://git.progress-linux.org/software/kinet/kinet-metapackages +Vcs-Git: https://git.progress-linux.org/packages/software/kinet/kinet-metapackages + +Package: kinet-base-system +Section: metapackages +Architecture: any +Depends: + ${misc:Depends}, + task-ssh-server, +# bash + bash-completion, + powerline, + powerline-gitstatus, +# debian + apt-utils, + debconf-utils, + needrestart, +# knot + knot-dnsutils, + knot-dnssecutils, + knot-host, +# ldap + sssd, + sssd-tools, + libnss-sss, + libpam-sss, + realmd, + adcli, + policykit-1, + packagekit, +# lzip + plzip, + tarlz, + zutils, +# systemd + libpam-systemd, + systemd-oomd, +# other + acl, + bc, + ca-certificates, + gawk, + git, + gnupg, + htop, + jq, + less, + lnav, + lsb-release, + lynx, + man-db, + mc, + mtr-tiny, + openssl, + psmisc, + python3, + ptpython, + rsync, + screen, + sudo, + tcpdump, + traceroute, + vim, + wget, + whois, + zstd, +Conflicts: + resolvconf, +Recommends: +# knot-resolver + knot-resolver [amd64 arm64 armhf armel i386], + socat, +Description: Kinet - Base System Metapackage + Gymnasium Kirchenfeld uses Debian-based images and systems. + . + This package is a metapackage defining the package selection for the + Kinet Base System. + +Package: kinet-container +Section: metapackages +Architecture: all +Depends: + ${misc:Depends}, + kinet-base-system, +# systemd + dbus, + polkitd, + systemd-sysv, +Conflicts: + molly-guard, +Replaces: + molly-guard, +Enhances: + kinet-base-system, +Description: Kinet - Container Metapackage + Gymnasium Kirchenfeld uses Debian-based images and systems. + . + This package is a metapackage to be installed in a container (systemd-nspawn). + +Package: kinet-host +Section: metapackages +Architecture: any +Depends: + ${misc:Depends}, + kinet-base-system, +# cryptsetup + cryptsetup-bin, + keyutils, + plymouth, +# firmware-free + firmware-linux-free, +# knot-resolver + knot-resolver [amd64 arm64 armhf armel i386], + socat, +# monitoring + spectre-meltdown-checker, +# other + dmidecode [amd64 arm64 armhf i386], + ethtool, + gpm, + hdparm, + nvme-cli, + parted, + smartmontools, + systemd-timesyncd, +Suggests: +# bash + fonts-powerline-extra, +# firmware-nonfree (non-free) + firmware-linux-nonfree, + firmware-misc-nonfree, +# firmware (non-free) + firmware-ast, +# microcode (contrib, non-free) + iucode-tool, + amd64-microcode, + intel-microcode, +# other (third-party) + supermicro-ipmicfg, +Enhances: + kinet-base-system, +Description: Kinet - Host Metapackage + Gymnasium Kirchenfeld uses Debian-based images and systems. + . + This package is a metapackage to be installed on a host system (physical or + virtual). + +Package: kinet-server +Section: metapackages +Architecture: all +Depends: + ${misc:Depends}, + kinet-base-system, +# other + localepurge, + logrotate, + molly-guard | kinet-container, + postfix, + safe-rm, +Breaks: + exim4-config, +Enhances: + kinet-base-system, +Description: Kinet - Server Metapackage + Gymnasium Kirchenfeld uses Debian-based images and systems. + . + This package is a metapackage to be installed on a server. + +Package: kinet-container-server +Section: metapackages +Architecture: all +Depends: + ${misc:Depends}, + kinet-server, +# container-tools + open-infrastructure-container-tools, + curl, + mmdebstrap | debootstrap, + irker, + pv, + bridge-utils, +# monitoring + netdata, + netdata-apache2, + netdata-plugins-python, +# web + apache2, +# other + lldpd, + numad, +Suggests: + ttyd, +Enhances: + kinet-base-system, + kinet-server, +Description: Kinet - Container Server Metapackage + Gymnasium Kirchenfeld uses Debian-based images and systems. + . + This package is a metapackage defining the package selection for the + Kinet Container Server. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2afa0a3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Kinet Metapackages +Upstream-Contact: Kinet System Administration <linux@gymkirchenfeld.ch> +Source: https://get.progress-linux.org/packages/kinet/kinet-metapackages + +Files: * +Copyright: 2010-2023 Daniel Baumann <daniel.baumann@progress-linux.org> +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. diff --git a/debian/kinet-container.postrm b/debian/kinet-container.postrm new file mode 100755 index 0000000..ea6f799 --- /dev/null +++ b/debian/kinet-container.postrm @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + for FILE in halt poweroff reboot shutdown coldreboot + do + dpkg-divert --package kinet-container --quiet --remove --rename --divert /lib/container/divert/${FILE}.orig /sbin/${FILE} + done + + for FILE in pm-hibernate pm-suspend pm-suspend-hybrid + do + dpkg-divert --package kinet-container --quiet --remove --rename --divert /lib/container/divert/${FILE}.orig /usr/sbin/${FILE} + done + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/kinet-container.preinst b/debian/kinet-container.preinst new file mode 100755 index 0000000..4ef28f7 --- /dev/null +++ b/debian/kinet-container.preinst @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +case "${1}" in + install|upgrade) + mkdir -p /lib/container/divert + + for FILE in halt poweroff reboot shutdown coldreboot + do + dpkg-divert --package kinet-container --quiet --add --rename --divert /lib/container/divert/${FILE}.orig /sbin/${FILE} + done + + for FILE in pm-hibernate pm-suspend pm-suspend-hybrid + do + dpkg-divert --package kinet-container --quiet --add --rename --divert /lib/container/divert/${FILE}.orig /usr/sbin/${FILE} + done + ;; + + abort-upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/local/shutdown b/debian/local/shutdown new file mode 100755 index 0000000..30e959d --- /dev/null +++ b/debian/local/shutdown @@ -0,0 +1,13 @@ +#!/bin/sh + +echo "${0}: disabled in systemd-nspawn container" + +if [ -e /etc/compute-tools/shutdown.txt ] +then + cat /etc/compute-tools/shutdown.txt +elif [ -e /usr/share/container/shutdown.txt ] +then + cat /usr/share/container/shutdown.txt +fi + +exit 1 diff --git a/debian/local/shutdown.txt b/debian/local/shutdown.txt new file mode 100644 index 0000000..b082bf0 --- /dev/null +++ b/debian/local/shutdown.txt @@ -0,0 +1,6 @@ + +Linux container share the kernel of the host system they are running on, +there is no need to reboot just the container. + +However, please contact your system administrator to reboot this +container from the host system. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cdc69f7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +%: + dh ${@} + +override_dh_auto_install: + dh_auto_install -- DESTDIR=$(CURDIR)/debian/kinet-base-system + +execute_after_dh_auto_install: + # shutdown + mkdir -p debian/kinet-container/sbin + for FILE in halt poweroff reboot shutdown coldreboot; \ + do \ + cp debian/local/shutdown debian/kinet-container/sbin/$${FILE}; \ + done + + mkdir -p debian/kinet-container/usr/sbin + for FILE in pm-hibernate pm-suspend pm-suspend-hybrid; \ + do \ + cp debian/local/shutdown debian/kinet-container/usr/sbin/$${FILE}; \ + done + + mkdir -p debian/kinet-container/usr/share/container + cp debian/local/shutdown.txt debian/kinet-container/usr/share/container + + # removing useless files + rm -f debian/tmp/usr/share/doc/*/CHANGELOG.txt + rm -f debian/tmp/usr/share/doc/*/LICENSE.txt + rm -f debian/tmp/usr/share/doc/*/VERSION.txt diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc new file mode 100644 index 0000000..f52ab7a --- /dev/null +++ b/debian/upstream/signing-key.asc @@ -0,0 +1,13 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEWxFMYRYJKwYBBAHaRw8BAQdADzHSjCfMckc2n1ChpH0IblcfyMTv+PMUv2Ik +a2s8DJ60JkRhbmllbCBCYXVtYW5uIDxkYW5pZWwuYmF1bWFubkBiZmguY2g+iJAE +ExYIADgWIQRfK8Ys+mEzhHeP0xyFWZF4vm+F1gUCWxFMYQIbAwULCQgHAgYVCgkI +CwIEFgIDAQIeAQIXgAAKCRCFWZF4vm+F1tggAP4mhRIFQQEjrXoPNaKl4HYSRnTc +pyMPEZSqrqvsMzRnEQD+IpNTMSGGcmofnmrKcUdvJz/52sXQOLo4U1jRBE8SOQW4 +OARbEUxhEgorBgEEAZdVAQUBAQdAj3Hyc8bLWaKUCKcffqVCriSnOwyitWijZyvQ +Fue69BUDAQgHiHgEGBYIACAWIQRfK8Ys+mEzhHeP0xyFWZF4vm+F1gUCWxFMYQIb +DAAKCRCFWZF4vm+F1nHJAP9/KV68+pvdJua5+8wRbvRJgcHN/5cpbAlEZm1oqY++ +kQD/VOd/xSbTeOthPZ7UtvKx3xlFRaMKNMPRxH947EP7aA8= +=ZdZo +-----END PGP PUBLIC KEY BLOCK----- |