summaryrefslogtreecommitdiffstats
path: root/debian/templates
diff options
context:
space:
mode:
Diffstat (limited to 'debian/templates')
-rw-r--r--debian/templates/control.binary.in14
-rw-r--r--debian/templates/control.binary.udeb.in7
-rw-r--r--debian/templates/control.extra.in0
-rw-r--r--debian/templates/control.source.in10
-rw-r--r--debian/templates/metainfo.xml.firmware.in1
-rw-r--r--debian/templates/metainfo.xml.in10
-rw-r--r--debian/templates/metainfo.xml.modalias.in1
-rw-r--r--debian/templates/postinst.initramfs-tools.in19
8 files changed, 62 insertions, 0 deletions
diff --git a/debian/templates/control.binary.in b/debian/templates/control.binary.in
new file mode 100644
index 0000000..adf40c1
--- /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@
+ @longdesc@
+Homepage: @uri@
+Multi-Arch: foreign
+
diff --git a/debian/templates/control.binary.udeb.in b/debian/templates/control.binary.udeb.in
new file mode 100644
index 0000000..ef551b7
--- /dev/null
+++ b/debian/templates/control.binary.udeb.in
@@ -0,0 +1,7 @@
+Package: firmware-@package@-di
+XC-Package-Type: udeb
+Depends: ${misc:Depends}
+Architecture: all
+Section: non-free/debian-installer
+Description: Binary firmware for @desc@
+
diff --git a/debian/templates/control.extra.in b/debian/templates/control.extra.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/templates/control.extra.in
diff --git a/debian/templates/control.source.in b/debian/templates/control.source.in
new file mode 100644
index 0000000..30814ac
--- /dev/null
+++ b/debian/templates/control.source.in
@@ -0,0 +1,10 @@
+Source: firmware-free
+Section: kernel
+Priority: optional
+Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
+Uploaders: Ben Hutchings <benh@debian.org>, Salvatore Bonaccorso <carnil@debian.org>
+Build-Depends: debhelper-compat (= 13)
+Rules-Requires-Root: no
+Standards-Version: 4.5.0
+Vcs-Git: https://salsa.debian.org/kernel-team/firmware-free.git
+Vcs-Browser: https://salsa.debian.org/kernel-team/firmware-free
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..31b75af
--- /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>@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#