Skip to content

Instantly share code, notes, and snippets.

@robertoschwald
Last active November 30, 2023 17:05
Show Gist options
  • Select an option

  • Save robertoschwald/eefce1330e3d730580dc29625472d6be to your computer and use it in GitHub Desktop.

Select an option

Save robertoschwald/eefce1330e3d730580dc29625472d6be to your computer and use it in GitHub Desktop.

Revisions

  1. robertoschwald revised this gist Nov 30, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_bareos_packages.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Build Bareos Debian Packages, e.g. for RaspberryOS / arm64
    # Build Bareos Debian Packages, e.g. for Raspberry PI OS / arm64

    BAREOS_BUILD_VERSION=23.0.0-pre
    BAREOS_BUILD_DATE=`date --rfc-email`
  2. robertoschwald revised this gist Nov 30, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions build_bareos_packages.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Build Bareos Debian Packages, e.g. for RaspberryOS / arm64

    BAREOS_BUILD_VERSION=23.0.0-pre
    BAREOS_BUILD_DATE=`date --rfc-email`

  3. robertoschwald created this gist Nov 30, 2023.
    34 changes: 34 additions & 0 deletions build_bareos_packages.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    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