mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
WIP build-obs.sh
This commit is contained in:
committed by
missytake
parent
6e1477666e
commit
846a4066d8
@@ -1,13 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# this script requires wget, osc and debuild installed.
|
||||
|
||||
# Define path of your local OBS repository
|
||||
OBS_PATH=~/obs/home:deltachat/dovecot/
|
||||
|
||||
# Download Debian Source Files
|
||||
echo "Downloading precise files from Debian unstable repository..."
|
||||
mkdir dovecot-build
|
||||
cd dovecot-build
|
||||
|
||||
# taken May 2nd 2024, from https://packages.debian.org/unstable/dovecot-core
|
||||
wget http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1-3.debian.tar.xz
|
||||
wget http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig.tar.gz
|
||||
# taken May 6th 2024, from https://packages.debian.org/unstable/dovecot-core
|
||||
curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1-3.debian.tar.xz --output dovecot_2.3.21+dfsg1-3.debian.tar.xz
|
||||
curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig.tar.gz --output dovecot_2.3.21+dfsg1.orig.tar.gz
|
||||
curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz --output dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz
|
||||
|
||||
# Clone the Chatmail Dovecot Repo
|
||||
echo "Cloning the Chatmail Dovecot fork..."
|
||||
@@ -17,15 +23,18 @@ git clone https://github.com/chatmail/dovecot.git
|
||||
echo "Building the package..."
|
||||
cd dovecot
|
||||
debuild -us -uc
|
||||
cd ..
|
||||
|
||||
# Copy Files to Your Local OBS Repository, TODO how to do this best?
|
||||
echo "Copying files to your local OBS repository..."
|
||||
cp /path/to/downloaded/files/*.tar.gz /path/to/your/local/obs/repo/
|
||||
cp /path/to/downloaded/files/*.dsc /path/to/your/local/obs/repo/
|
||||
cp /path/to/downloaded/files/*.xz /path/to/your/local/obs/repo/
|
||||
cp dovecot_2.3.21+dfsg1-3.debian.tar.xz $OBS_PATH
|
||||
cp dovecot_2.3.21+dfsg1.orig.tar.gz $OBS_PATH
|
||||
cp dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz $OBS_PATH
|
||||
|
||||
# Push Changes to OBS
|
||||
echo "Pushing changes to OBS..."
|
||||
cd /path/to/your/local/obs/repo/
|
||||
osc add *
|
||||
osc add dovecot_2.3.21+dfsg1-3.debian.tar.xz
|
||||
osc add
|
||||
osc add
|
||||
osc commit
|
||||
|
||||
Reference in New Issue
Block a user