-do_build() {
-
- echo "Running configure"
- ./configure --quiet \
- --prefix=${PREFIX} \
- --bindir=${BINDIR} \
- --sbindir=${SBINDIR} \
- --mandir=${MANDIR} \
- --libexecdir=${LIBEXECDIR} \
- --sysconfdir=${SYSCONFDIR} \
- --localstatedir=${LOCALSTATEDIR} \
- --with-star=/bin/star \
- --with-gnutar=/bin/tar \
- --with-gnutar-listdir=${AMANDAHOMEDIR}/gnutar-lists \
- --with-index-server=localhost \
- --with-tape-server=localhost \
- --with-user=${amanda_user} \
- --with-group=${amanda_group} \
- --with-owner=${amanda_user} \
- --with-fqdn \
- --with-bsd-security \
- --with-bsdtcp-security \
- --with-bsdudp-security \
- --with-amandahosts \
- --with-smbclient=/usr/bin/smbclient \
- --with-ssh-security \
- --with-udpportrange=${udpportrange} \
- --with-tcpportrange=${tcpportrange} \
- --with-low-tcpportrange=${low_tcpportrange} \
- --with-debugging=${LOGDIR} \
- --disable-installperms \
- --enable-s3-device \
- --with-assertions \
- || exit 1
-
+do_substitute() {
+ # We need to edit packaging/deb/changelog to reflect our current distro
+ # and release. This can't be done within the debian packaging system;
+ # dpkg assumes that packages will have the same name on all releases and
+ # that apt will prevent users from downloading the wrong build. We want
+ # this information helpfully obvious since we can't rely on apt.
+ /usr/bin/perl packaging/common/substitute.pl packaging/deb/changelog.src packaging/deb/changelog