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 16:34:27 +02:00
|
|
|
exit 1
|
|
|
|
|
2023-08-23 13:44:37 +02:00
|
|
|
# AMDGPU MIRROR
|
2023-09-29 11:25:12 +02:00
|
|
|
mkdir -p ./outputpika/amdgpu
|
|
|
|
cd ./outputpika/amdgpu
|
2023-09-28 17:51:18 +02:00
|
|
|
# amdgpu drm dir
|
|
|
|
mkdir -p ./libd
|
|
|
|
cd ./libd
|
2024-05-10 18:10:42 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/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-05-10 18:10:42 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/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-05-10 18:10:42 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/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-05-10 18:10:42 +02:00
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/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
|
|
|
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/6.0.1/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-05-10 18:10:42 +02:00
|
|
|
wget https://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_6.7.0.60101-1769056.22.04_all.deb
|
2023-09-28 17:51:18 +02:00
|
|
|
# Return to AMDGPU MIRROR
|
|
|
|
cd ../
|
2023-09-29 11:25:12 +02:00
|
|
|
mkdir -p ./outputpika
|
|
|
|
mkdir -p ./outputpika-tmp
|
|
|
|
find . -name \*.deb -exec cp -vf {} ./outputpika-tmp \;
|
2023-09-28 17:51:18 +02:00
|
|
|
|
2023-09-29 11:25:12 +02:00
|
|
|
cd ./outputpika-tmp
|
2023-09-28 17:51:18 +02:00
|
|
|
for i in ./*.deb
|
|
|
|
do
|
|
|
|
mkdir $i-tmp
|
|
|
|
dpkg-deb -R $i $i-tmp
|
|
|
|
cat $i-tmp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
|
2023-11-24 17:14:38 +01:00
|
|
|
sed -i "s#$(cat $i-version)#$(cat $i-version)-pika$(date +"%Y%m%d").pikauwu3#g" $i-tmp/DEBIAN/control
|
|
|
|
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-pikauwu3-fixed.deb
|
2023-09-28 17:51:18 +02:00
|
|
|
done
|
|
|
|
cd ../
|
2023-09-29 11:25:12 +02:00
|
|
|
mv -v ./outputpika-tmp/*-fixed.deb ./outputpika/
|
2023-09-28 17:51:18 +02:00
|
|
|
|
|
|
|
# send debs to server
|
2023-09-29 11:25:12 +02:00
|
|
|
rsync -azP ./outputpika/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
2023-09-28 17:51:18 +02:00
|
|
|
|
|
|
|
# add debs to repo
|
2023-09-29 11:25:12 +02:00
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-amdgpu /srv/www/incoming/'
|
2023-09-28 17:51:18 +02:00
|
|
|
|
|
|
|
# publish the repo
|
2023-09-29 11:25:12 +02:00
|
|
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'
|