Commit 90c9e3f8 authored by Olav Morken's avatar Olav Morken
Browse files

Document the build script

Document the build script to make it easier to understand what is going on in the various sections.
parent ef6952fe
......@@ -33,10 +33,17 @@ apt-get install -y --no-install-recommends \
# The distro code name (e.g. "buster", "bullseye") we are building the package for.
lsb_release_name=$(lsb_release -sc)
# Debian package name for the package we build.
# Version of the package we build.
# A revision of our package. We need to bump this if we rebuild the same version
# of the package at some point.
......@@ -46,14 +53,19 @@ sed -n 's@^deb @deb-src @p' /etc/apt/sources.list > /etc/apt/sources.list.d/sour
apt-get update
# Download the source code for the project.
curl --silent -o "${package}"_"${version}".orig.tar.gz -L "${radsecproxy_srcurl}"
tar xzf "${package}"_"${version}".orig.tar.gz
# Download the Debian source package for project.
apt-get source ${package}
# Extract the project source code, including the Debian source package.
tar xzf "${package}"_"${version}".orig.tar.gz
tar xf "${package}"_*.debian.tar.xz -C "${package}"-"${version}/"
# Remove any Debian patches for the project.
rm -r "${package}"-"${version}/debian/patches"
# The man pages were moved to section 8 after Debian Buster was released.
......@@ -77,6 +89,7 @@ EOF
mv "${changelog_file}.new" "${changelog_file}"
# Build the package.
cd "${package}-${version}/"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment