2023-08-23 13:01:20 +02:00
|
|
|
#! /bin/bash
|
2023-08-23 13:23:16 +02:00
|
|
|
set -e
|
2023-08-23 13:08:14 +02:00
|
|
|
|
2024-07-31 22:19:41 +02:00
|
|
|
REPO_VERSION="6.1.3"
|
|
|
|
FIRMWARE_VERSION="6.7.0.60103-1787201.22.04"
|
|
|
|
|
2023-08-23 13:44:37 +02:00
|
|
|
# AMDGPU MIRROR
|
2024-07-31 22:19:41 +02:00
|
|
|
mkdir -p ./output/amdgpu
|
|
|
|
cd ./output/amdgpu
|
2023-09-28 17:51:18 +02:00
|
|
|
# amdgpu drm dir
|
|
|
|
mkdir -p ./libd
|
|
|
|
cd ./libd
|
2024-07-31 22:19:41 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/libd/
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
|
|
|
# amdgpu mesa dir (depends only)
|
|
|
|
mkdir -p ./mesa
|
|
|
|
cd ./mesa
|
2024-07-31 22:19:41 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/m/mesa-amdgpu/
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
|
|
|
# amdgpu wayland dir (depends only)
|
|
|
|
mkdir -p ./wayland-amdgpu
|
|
|
|
cd ./wayland-amdgpu
|
2024-07-31 22:19:41 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/w/wayland-amdgpu/
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
|
|
|
# amdgpu wayland protocols dir (depends only)
|
|
|
|
mkdir -p ./wayland-protocols-amdgpu
|
|
|
|
cd ./wayland-protocols-amdgpu
|
2024-07-31 22:19:41 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/w/wayland-protocols-amdgpu/
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
|
|
|
# amdgpu proprietary dir
|
2024-05-10 18:29:04 +02:00
|
|
|
mkdir -p ./proprietary
|
|
|
|
cd ./proprietary
|
2024-07-31 22:19:41 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/proprietary/
|
2024-05-10 18:33:29 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
2024-05-10 18:29:04 +02:00
|
|
|
cd ../
|
2023-09-28 17:51:18 +02:00
|
|
|
# amdgpu-dkms-firmware dir
|
|
|
|
mkdir -p ./amdgpu-dkms-firmware
|
|
|
|
cd ./amdgpu-dkms-firmware
|
2024-07-31 22:19:41 +02:00
|
|
|
wget https://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_"$FIRMWARE_VERSION"_all.deb
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
2024-07-31 22:19:41 +02:00
|
|
|
mkdir -p ./output
|
|
|
|
mkdir -p ./output-temp
|
|
|
|
find . -name \*.deb -exec cp -vf {} ./output-temp \;
|
|
|
|
|
|
|
|
cd ./output-temp
|
2023-09-28 17:51:18 +02:00
|
|
|
|
|
|
|
for i in ./*.deb
|
|
|
|
do
|
2024-07-31 22:19:41 +02:00
|
|
|
mkdir $i-temp
|
|
|
|
dpkg-deb -R $i $i-temp
|
|
|
|
cat $i-temp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
|
|
|
|
sed -i "s#$(cat $i-version)#$(cat $i-version)+pigeon$(date +"%Y%m%d")#g" $i-temp/DEBIAN/control
|
|
|
|
sed -e s"#(=#(>=#"g -i $i-temp/DEBIAN/control
|
|
|
|
dpkg-deb -b $i-temp $i+pigeon$(date +"%Y%m%d")-fixed.deb
|
2023-09-28 17:51:18 +02:00
|
|
|
done
|
2024-07-31 22:19:41 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
cd ../
|
2024-07-31 22:19:41 +02:00
|
|
|
mv -v ./output-temp/*-fixed.deb ./output/
|
2023-09-28 17:51:18 +02:00
|
|
|
|
|
|
|
# send debs to server
|
2024-07-31 22:19:41 +02:00
|
|
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
2023-09-28 17:51:18 +02:00
|
|
|
|
2024-07-31 22:19:41 +02:00
|
|
|
# send debs to server
|
|
|
|
rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/pigeon-incoming/
|