mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
Revert "add a doc about dovecot building based on internal sysadmin docs" (#308)
* Revert "clarify backports policy" This reverts commit610675452e. * Revert "Add OBS" This reverts commit83387f5d08. * Revert "fix up readme for dovecot script" This reverts commit142206529c. * Revert "move SCRIPT_DIR" This reverts commitc0f200b1a9. * Revert "Update scripts/dovecot/README.md" This reverts commit6d55f75bee. * Revert "Update scripts/dovecot/build-obs.sh" This reverts commitc68cbf1806. * Revert "edit README" This reverts commit9677617c7f. * Revert "move readme wip" This reverts commitd8cf282953. * Revert "remove unnecessary dependencies" This reverts commitb959f57058. * Revert "clean up" This reverts commit8768e6fd0b. * Revert "wip" This reverts commitacbf370383. * Revert "wip test without curl" This reverts commit80dfdaee06. * Revert "wip try dpkg-source" This reverts commit4d15ae9452. * Revert "wip hack" This reverts commit9a68d42ee8. * Revert "wip hack" This reverts commitd732d099ac. * Revert "hack for file length problem" This reverts commit582a2af799. * Revert "clean curl" This reverts commitfba3963d47. * Revert "move obs dir into script dir" This reverts commite80d33e2e0. * Revert "it works" This reverts commit6a3001bf22. * Revert "WIP: Build builds, OBS pushes, OBs doesn't build :( problem with .dsc" This reverts commit368c41ba27. * Revert "WIP IT BUILDS" This reverts commitfa0d8432bc. * Revert "WIP" This reverts commit2811e08563. * Revert "WIP build-obs.sh" This reverts commit846a4066d8. * Revert "add precise links for dovecot unstable" This reverts commit6e1477666e. * Revert "WIP build-obs.sh" This reverts commit013def94f9. * Revert "track discussion from chat" This reverts commit468bb04149. * Revert "add a doc about dovecot building based on internal sysadmin docs" This reverts commit30a23dad17.
This commit is contained in:
committed by
GitHub
parent
610675452e
commit
b05aec72c2
@@ -1,54 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install dependencies
|
||||
echo "Installing dependencies for this script:"
|
||||
sudo apt install -y devscripts build-essential osc curl git debhelper-compat
|
||||
|
||||
# Define path of your local OBS repository
|
||||
SCRIPT_DIR=$PWD
|
||||
OBS_PATH=$SCRIPT_DIR/obs
|
||||
REPO_PATH=$OBS_PATH/home:deltachat/dovecot/
|
||||
|
||||
# Download Debian Source Files
|
||||
echo "Downloading precise files from Debian unstable repository..."
|
||||
mkdir dovecot-build
|
||||
cd dovecot-build
|
||||
|
||||
# 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 -O
|
||||
curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig.tar.gz -O
|
||||
curl http://deb.debian.org/debian/pool/main/d/dovecot/dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz -O
|
||||
|
||||
# Clone the Chatmail Dovecot Repo
|
||||
echo "Cloning the Chatmail Dovecot fork..."
|
||||
git clone https://github.com/chatmail/dovecot.git
|
||||
|
||||
# Build the source package
|
||||
echo "Building the source package"
|
||||
cd dovecot
|
||||
dpkg-source -b .
|
||||
|
||||
# Setting up OSC
|
||||
echo "Setting up OBS home repository"
|
||||
mkdir $OBS_PATH
|
||||
cd $OBS_PATH
|
||||
rm -rf home:deltachat/dovecot
|
||||
osc checkout home:deltachat/dovecot
|
||||
|
||||
# Copy Files to Your Local OBS Repository,
|
||||
echo "Copying files to your local OBS repository..."
|
||||
cd $SCRIPT_DIR/dovecot-build
|
||||
cp -rf dovecot_2.3.21+dfsg1-3.debian.tar.xz $REPO_PATH
|
||||
cp -rf dovecot_2.3.21+dfsg1.orig.tar.gz $REPO_PATH
|
||||
cp -rf dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz $REPO_PATH
|
||||
cp -rf dovecot_2.3.21+dfsg1-3.dsc $REPO_PATH
|
||||
|
||||
# Push Changes to OBS
|
||||
echo "Pushing changes to OBS..."
|
||||
cd $REPO_PATH
|
||||
osc up
|
||||
osc add dovecot_2.3.21+dfsg1-3.debian.tar.xz
|
||||
osc add dovecot_2.3.21+dfsg1.orig.tar.gz
|
||||
osc add dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz
|
||||
osc add dovecot_2.3.21+dfsg1-3.dsc
|
||||
osc commit
|
||||
Reference in New Issue
Block a user