BUILD: update scripts
This commit is contained in:
parent
68ecc2549a
commit
3c10c16368
|
@ -1,18 +1,15 @@
|
|||
Package: linux-firmware
|
||||
Source: linux-firmware
|
||||
Version: 20221006-1
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Package: mattermost
|
||||
Source: mattermost
|
||||
Version: 7.3.0
|
||||
Architecture: amd64
|
||||
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
|
||||
Section: network
|
||||
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
|
||||
Homepage: https://github.com/mattermost/mattermost-server
|
||||
Description: mattermost
|
||||
Raw tarball from upstream.
|
||||
.
|
||||
Files moved to be stored in /var/mattermost
|
||||
.
|
||||
This packaging is a test and may not work
|
||||
|
|
|
@ -1,28 +1,22 @@
|
|||
all: clean add-firmware-files md5sum create info
|
||||
DEB=mattermost_7.3.0_amd64.deb
|
||||
|
||||
all: md5sum create info
|
||||
|
||||
info:
|
||||
dpkg-deb --info linux-firmware.deb
|
||||
dpkg-deb --info ${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/
|
||||
rm -rf control.tar.xz data.tar.xz ${DEB}
|
||||
rm -rf files/opt
|
||||
|
||||
# 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
|
||||
ar rcs ${DEB} debian-binary control.tar.xz data.tar.xz
|
||||
|
||||
install:
|
||||
dpkg --install linux-firmware.deb
|
||||
update-initramfs -k all -c
|
||||
dpkg --install ${DEB}
|
||||
|
|
Loading…
Reference in New Issue