From efe2abffee6d2f8179e816f368aab58f36139ff0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Oct 2022 09:01:01 -0500 Subject: [PATCH] Squashed commit of the following: commit d542f8ea79e7b29188a1a1c070b2afca8608e5fb Author: Jeff Carr Date: Thu Oct 6 08:59:15 2022 -0500 DEBIAN: add git what-changed to package commit 18cf4f13b41beaeee944a1ee0d3535b2eb9c661d Author: Jeff Carr Date: Thu Oct 6 08:52:57 2022 -0500 DEBIAN: move to .debian/ commit f9772fd8a97d7a05cf0a04117d40d79766a364af Author: Jeff Carr Date: Thu Oct 6 08:07:38 2022 -0500 DEBIAN: more stuff commit e86e00082ee62dc594bad465de248cd681ef4967 Author: Jeff Carr Date: Thu Oct 6 08:04:07 2022 -0500 DEBIAN: make md5sum file commit 80910570c88a83d2093abb9b54af3e70c83eba57 Author: Jeff Carr Date: Thu Oct 6 07:56:04 2022 -0500 DEBIAN: packaging fix 3 commit 32b5a3cd7e763d1500b38e1a23b6c72d8304a4b1 Author: Jeff Carr Date: Thu Oct 6 07:54:01 2022 -0500 DEBIAN: update packaging v2 commit e09d3031cd5fe32df9727a8fdd07608892bdd17d Author: Jeff Carr Date: Thu Oct 6 07:49:25 2022 -0500 DEBIAN: clean up packaging files commit 10486559e23fcbeb267e1ce7c56cdc25f33b2188 Author: Jeff Carr Date: Thu Oct 6 07:22:13 2022 -0500 DEBIAN: make a .deb --- .debian/DEBIAN/control | 18 +++++++++++ .debian/Makefile | 28 ++++++++++++++++++ .debian/debian-binary | 1 + .../doc/linux-firmware/changelog.Debian.gz | Bin 0 -> 141 bytes .../usr/share/doc/linux-firmware/copyright | 22 ++++++++++++++ .gitignore | 5 ++++ 6 files changed, 74 insertions(+) create mode 100644 .debian/DEBIAN/control create mode 100644 .debian/Makefile create mode 100644 .debian/debian-binary create mode 100644 .debian/files/usr/share/doc/linux-firmware/changelog.Debian.gz create mode 100644 .debian/files/usr/share/doc/linux-firmware/copyright create mode 100644 .gitignore diff --git a/.debian/DEBIAN/control b/.debian/DEBIAN/control new file mode 100644 index 0000000..53e7a58 --- /dev/null +++ b/.debian/DEBIAN/control @@ -0,0 +1,18 @@ +Package: linux-firmware +Source: linux-firmware +Version: 20221006-1 +Architecture: all +Multi-Arch: foreign +Maintainer: Jeff Carr +Installed-Size: 5883 +Depends: linux-base | systemd +Recommends: initramfs-tools +Replaces: firmware-linux-nonfree, firmware-amd-graphics +Suggests: initramfs-tools +Section: non-free/kernel +Priority: optional +Homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ +Description: linux-firmware + Raw package unchanged from the kernel maintainers + . + This packaging is a test and may not work diff --git a/.debian/Makefile b/.debian/Makefile new file mode 100644 index 0000000..cc2408b --- /dev/null +++ b/.debian/Makefile @@ -0,0 +1,28 @@ +all: clean add-firmware-files md5sum create info + +info: + dpkg-deb --info linux-firmware.deb + +clean: + rm -rf linux-firmware.deb + rm -rf control.tar.xz data.tar.xz linux-firmware.deb + rm -rf files/lib/firmware + rm -f files/usr/share/doc/linux-firmware/git-whatchanged + +add-firmware-files: + mkdir -p files/lib/firmware + cp -a ../[a-zA-Z0123456789]* files/lib/firmware/ + +# debian stores the calcuated md5sum checksums for each file in the package +md5sum: + cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums + +create: + git whatchanged > files/usr/share/doc/linux-firmware/git-whatchanged + cd DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control + cd files && tar -cvJf ../data.tar.xz . + ar rcs linux-firmware.deb debian-binary control.tar.xz data.tar.xz + +install: + dpkg --install linux-firmware.deb + update-initramfs -k all -c diff --git a/.debian/debian-binary b/.debian/debian-binary new file mode 100644 index 0000000..cd5ac03 --- /dev/null +++ b/.debian/debian-binary @@ -0,0 +1 @@ +2.0 diff --git a/.debian/files/usr/share/doc/linux-firmware/changelog.Debian.gz b/.debian/files/usr/share/doc/linux-firmware/changelog.Debian.gz new file mode 100644 index 0000000000000000000000000000000000000000..71acc85a7c470c7bd918b3e8921f7e2ac7f55d21 GIT binary patch literal 141 zcmV;80CN8yiwFp&$v$HM17m1mZf9j|Z)Yw + +License: + + This package 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 2 of the License, or + (at your option) any later version. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39cdf7c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.debian/*.deb +.debian/*.tar.xz +.debian/DEBIAN/md5sums +.debian/files/lib/firmware/ +.debian/files/usr/share/doc/linux-firmware/git-whatchanged