BUILD: update scripts

This commit is contained in:
Jeff Carr 2022-10-07 18:58:42 -05:00
parent 68ecc2549a
commit 3c10c16368
2 changed files with 18 additions and 27 deletions

View File

@ -1,18 +1,15 @@
Package: linux-firmware Package: mattermost
Source: linux-firmware Source: mattermost
Version: 20221006-1 Version: 7.3.0
Architecture: all Architecture: amd64
Multi-Arch: foreign
Maintainer: Jeff Carr <jcarr@wit.com> Maintainer: Jeff Carr <jcarr@wit.com>
Installed-Size: 5883 Installed-Size: 5883
Depends: linux-base | systemd Section: network
Recommends: initramfs-tools
Replaces: firmware-linux-nonfree, firmware-amd-graphics
Suggests: initramfs-tools
Section: non-free/kernel
Priority: optional Priority: optional
Homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ Homepage: https://github.com/mattermost/mattermost-server
Description: linux-firmware Description: mattermost
Raw package unchanged from the kernel maintainers Raw tarball from upstream.
.
Files moved to be stored in /var/mattermost
. .
This packaging is a test and may not work This packaging is a test and may not work

View File

@ -1,28 +1,22 @@
all: clean add-firmware-files md5sum create info DEB=mattermost_7.3.0_amd64.deb
all: md5sum create info
info: info:
dpkg-deb --info linux-firmware.deb dpkg-deb --info ${DEB}
clean: clean:
rm -rf linux-firmware.deb rm -rf control.tar.xz data.tar.xz ${DEB}
rm -rf control.tar.xz data.tar.xz linux-firmware.deb rm -rf files/opt
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 # debian stores the calcuated md5sum checksums for each file in the package
md5sum: md5sum:
cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums
create: 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 DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control
cd files && tar -cvJf ../data.tar.xz . cd files && tar -cvJf ../data.tar.xz .
ar rcs linux-firmware.deb debian-binary control.tar.xz data.tar.xz ar rcs ${DEB} debian-binary control.tar.xz data.tar.xz
install: install:
dpkg --install linux-firmware.deb dpkg --install ${DEB}
update-initramfs -k all -c