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.
package="radsecproxy"
# Version of the package we build.
version="1.9.0"
# A revision of our package. We need to bump this if we rebuild the same version
# of the package at some point.
revision="2${lsb_release_name}~uninett"
......@@ -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.
radsecproxy_url="https://github.com/radsecproxy/radsecproxy"
radsecproxy_srcurl="${radsecproxy_url}/releases/download/${version}/radsecproxy-${version}.tar.gz"
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}/"
dpkg-buildpackage
......
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