diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:26:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:26:19 +0000 |
commit | 3fb3e62dbd16f2599087719648dca10596b2bb3f (patch) | |
tree | 129fe1962b84672a0d6df4c5edf28e0547071409 /debian/templates | |
parent | Adding upstream version 20230210. (diff) | |
download | firmware-nonfree-3fb3e62dbd16f2599087719648dca10596b2bb3f.tar.xz firmware-nonfree-3fb3e62dbd16f2599087719648dca10596b2bb3f.zip |
Adding debian version 20230210-5.debian/20230210-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/templates')
-rw-r--r-- | debian/templates/control.binary.in | 14 | ||||
-rw-r--r-- | debian/templates/control.extra.in | 27 | ||||
-rw-r--r-- | debian/templates/control.source.in | 10 | ||||
-rw-r--r-- | debian/templates/metainfo.xml.firmware.in | 1 | ||||
-rw-r--r-- | debian/templates/metainfo.xml.in | 10 | ||||
-rw-r--r-- | debian/templates/metainfo.xml.modalias.in | 1 | ||||
-rw-r--r-- | debian/templates/postinst.initramfs-tools.in | 19 | ||||
-rw-r--r-- | debian/templates/preinst.license.in | 76 | ||||
-rw-r--r-- | debian/templates/templates.license.in | 16 |
9 files changed, 174 insertions, 0 deletions
diff --git a/debian/templates/control.binary.in b/debian/templates/control.binary.in new file mode 100644 index 0000000..968361a --- /dev/null +++ b/debian/templates/control.binary.in @@ -0,0 +1,14 @@ +Package: firmware-@package@ +Architecture: all +Replaces: @replaces@ +Conflicts: @conflicts@ +Breaks: @breaks@ +Provides: @provides@ +Depends: ${misc:Depends} +Recommends: @recommends@ +Suggests: initramfs-tools +Description: Binary firmware for @desc@ + This package contains the binary firmware for @longdesc@. +Homepage: @uri@ +Multi-Arch: foreign + diff --git a/debian/templates/control.extra.in b/debian/templates/control.extra.in new file mode 100644 index 0000000..eeb37cc --- /dev/null +++ b/debian/templates/control.extra.in @@ -0,0 +1,27 @@ +Package: firmware-linux +Section: non-free-firmware/metapackages +Architecture: all +Depends: firmware-linux-free, firmware-linux-nonfree (= ${binary:Version}), + ${misc:Depends} +Recommends: intel-microcode, amd64-microcode +Description: Binary firmware for various drivers in the Linux kernel (metapackage) + This package depends on both free and non-free firmware which may + be used with drivers in the Linux kernel. + +Package: firmware-linux-nonfree +Section: non-free-firmware/metapackages +Architecture: all +Depends: firmware-misc-nonfree (= ${binary:Version}), + firmware-amd-graphics (= ${binary:Version}), ${misc:Depends} +Recommends: intel-microcode, amd64-microcode +Description: Binary firmware for various drivers in the Linux kernel (metapackage) + This package depends on non-free firmware which may be used with drivers + in the Linux kernel. + +Package: firmware-qcom-media +Section: non-free-firmware/oldlibs +Architecture: all +Depends: firmware-qcom-soc, ${misc:Depends} +Description: Binary firmware for Qualcomm graphics/video (dummy package) + This is a dummy transitional package. It can be safely removed. +Multi-Arch: foreign diff --git a/debian/templates/control.source.in b/debian/templates/control.source.in new file mode 100644 index 0000000..8a63c63 --- /dev/null +++ b/debian/templates/control.source.in @@ -0,0 +1,10 @@ +Source: firmware-nonfree +Section: non-free-firmware/kernel +Priority: optional +Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org> +Uploaders: Bastian Blank <waldi@debian.org>, Steve Langasek <vorlon@debian.org>, maximilian attems <maks@debian.org>, Ben Hutchings <benh@debian.org>, Salvatore Bonaccorso <carnil@debian.org> +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.0.1 +Vcs-Git: https://salsa.debian.org/kernel-team/firmware-nonfree.git +Vcs-Browser: https://salsa.debian.org/kernel-team/firmware-nonfree +XS-Autobuild: yes diff --git a/debian/templates/metainfo.xml.firmware.in b/debian/templates/metainfo.xml.firmware.in new file mode 100644 index 0000000..a555b93 --- /dev/null +++ b/debian/templates/metainfo.xml.firmware.in @@ -0,0 +1 @@ + <firmware type="runtime">@filename@</firmware> diff --git a/debian/templates/metainfo.xml.in b/debian/templates/metainfo.xml.in new file mode 100644 index 0000000..f274629 --- /dev/null +++ b/debian/templates/metainfo.xml.in @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="firmware"> + <id>org.debian.packages.firmware_@package-metainfo@</id> + <name>Binary firmware for @desc@</name> + <summary>Binary firmware for @longdesc-metainfo@.</summary> + <metadata_license>CC0-1.0</metadata_license> + <provides> +@firmware-list@@modalias-list@ + </provides> +</component> diff --git a/debian/templates/metainfo.xml.modalias.in b/debian/templates/metainfo.xml.modalias.in new file mode 100644 index 0000000..cef0f86 --- /dev/null +++ b/debian/templates/metainfo.xml.modalias.in @@ -0,0 +1 @@ + <modalias>@alias@</modalias> diff --git a/debian/templates/postinst.initramfs-tools.in b/debian/templates/postinst.initramfs-tools.in new file mode 100644 index 0000000..6c9e968 --- /dev/null +++ b/debian/templates/postinst.initramfs-tools.in @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + dpkg-trigger --no-await update-initramfs + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# diff --git a/debian/templates/preinst.license.in b/debian/templates/preinst.license.in new file mode 100644 index 0000000..6c68221 --- /dev/null +++ b/debian/templates/preinst.license.in @@ -0,0 +1,76 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule +db_version 2.0 +db_capb backup + +#Valid values are "required" and "no-preseed" +license_accept=@license-accept@ + +errmsg() +{ + echo >&2 '' + echo >&2 "$@" + echo >&2 "try 'dpkg-reconfigure debconf' to select a frontend other than noninteractive" + echo >&2 '' +} + +ask() +{ + # facilitate backup capability per debconf-devel(7) + STATE=1 + while true; do + case "$STATE" in + 0) # ensure going back from license presentment is harmless + STATE=1 + continue + ;; + 1) # present license + db_get firmware-@package@/license/accepted + if [ "$RET" != true -o "${license_accept}" = "no-preseed" ]; then + db_fset firmware-@package@/license/accepted seen false + if ! db_input critical firmware-@package@/license/accepted ; then + errmsg "firmware-@package@ agree question could not be asked" + exit 2 + fi + fi + ;; + 2) # determine users' choice + db_get firmware-@package@/license/accepted + if [ "$RET" = "true" ]; then + exit 0 + fi + # error on decline license (give user chance to back up) + db_input critical firmware-@package@/license/error + ;; + 3) + echo "user did not accept the firmware-@package@ license" >&2 + exit 1 + ;; + *) # unknown state + echo "firmware-@package@ license state unknown: $STATE" >&2 + exit 2 + ;; + esac + if db_go; then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi + done +} + +if [ "$@package-env-prefix@_LICENSE_READ_AND_ACCEPTED" = yes ]; then + db_set firmware-@package@/license/accepted true +fi + +db_get firmware-@package@/license/accepted +if [ "$RET" != "true" ]; then + ask + RESULT=$? + [ "$RESULT" = 0 ] || exit $RESULT +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/templates/templates.license.in b/debian/templates/templates.license.in new file mode 100644 index 0000000..76efe0a --- /dev/null +++ b/debian/templates/templates.license.in @@ -0,0 +1,16 @@ +Template: firmware-@package@/license/accepted +Type: boolean +Default: false +Description: Do you agree to the "@license-title@"? + In order to install this package, you must agree to the following terms, + the "@license-title@". + If you do not agree, the installation will be canceled. + +Template: firmware-@package@/license/error +Type: error +Description: Declined @license-title@ + If you do not agree to the "@license-title@" + license terms you cannot install this software. + . + The installation of this package has been canceled. + |