INIT: add initial files

This commit is contained in:
Jeff Carr 2022-10-07 18:30:26 -05:00
commit 68ecc2549a
7 changed files with 85 additions and 0 deletions

18
.debian/DEBIAN/control Normal file
View File

@ -0,0 +1,18 @@
Package: linux-firmware
Source: linux-firmware
Version: 20221006-1
Architecture: all
Multi-Arch: foreign
Maintainer: Jeff Carr <jcarr@wit.com>
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

28
.debian/Makefile Normal file
View File

@ -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

1
.debian/debian-binary Normal file
View File

@ -0,0 +1 @@
2.0

View File

@ -0,0 +1,22 @@
Copyright:
Copyright 2022 Jeff Carr <jcarr@wit.org>
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'.

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
.debian/*.deb
.debian/*.tar.xz
.debian/DEBIAN/md5sums
.debian/files/opt/
mattermost*

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
all:
echo "download the current mattermost tarball"
echo then build the package using the files in .debian/
clean:
rm -rf .debian/files/opt/
download:
wget -c https://releases.mattermost.com/7.3.0/mattermost-7.3.0-linux-amd64.tar.gz
mkdir -p .debian/files/opt/
cd .debian/files/opt/ && tar xfz ../../../mattermost-7.3.0-linux-amd64.tar.gz