Last active
November 30, 2023 17:05
-
-
Save robertoschwald/eefce1330e3d730580dc29625472d6be to your computer and use it in GitHub Desktop.
Build Bareos deb packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Bareos Debian Packages, e.g. for Raspberry PI OS / arm64 | |
BAREOS_BUILD_VERSION=23.0.0-pre | |
BAREOS_BUILD_DATE=`date --rfc-email` | |
git clone https://github.com/bareos/bareos.git | |
git checkout tags/WIP/${BAREOS_BUILD_VERSION} | |
sudo apt install dpkg-dev fakeroot dch | |
sudo apt build-dep ./bareos | |
cd bareos | |
# just compile | |
# mkdir build | |
# cd build | |
# cmake -Dclient-only=yes -Dconfdir=/etc/bareos ../ | |
# make | |
# Only on initial build | |
cat <<EOF > debian/changelog | |
bareos (${BAREOS_BUILD_VERSION}) unstable; urgency=low | |
* Initial package for ${BAREOS_BUILD_VERSION} release | |
-- pi <[email protected]> ${BAREOS_BUILD_DATE} | |
EOF | |
# on subsequent builds, we increment the version in the changelog file and edit. | |
dch -i | |
# Build the bareos packages | |
fakeroot debian/rules clean | |
fakeroot debian/rules binary | |
# Alternatively | |
# dpkg-buildpackage --no-sign -b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment