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 0000000..71acc85 Binary files /dev/null and b/.debian/files/usr/share/doc/linux-firmware/changelog.Debian.gz differ diff --git a/.debian/files/usr/share/doc/linux-firmware/copyright b/.debian/files/usr/share/doc/linux-firmware/copyright new file mode 100644 index 0000000..860fa3b --- /dev/null +++ b/.debian/files/usr/share/doc/linux-firmware/copyright @@ -0,0 +1,22 @@ +Copyright: + + Copyright 2022 Jeff Carr + +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