2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[#3078] set package version and type in configure.ac

This commit is contained in:
Wlodek Wencel
2023-10-03 18:34:33 +02:00
parent be074bd7fb
commit f3f17f51c1
2 changed files with 12 additions and 2 deletions

View File

@@ -43,8 +43,17 @@ AC_PROG_CXX
AC_PROG_CXXCPP
# Check for exact Kea version.
AC_MSG_CHECKING(whether this is a tarball or git source)
if test -d "${srcdir}/.git"; then
AC_MSG_CHECKING(whether this is a tarball or git source or package preparation)
# KEA_PKG_VERSION_IN_CONFIGURE and KEA_PKG_TYPE_IN_CONFIGURE names may be weird
# considering those are placed inside configure script, but those are designed
# to be set in package sources (APKBUILD, rules or kea.spec) kea-packaging repo
# KEA_PKG_VERSION_IN_CONFIGURE will be date and timestamp of the package
# e.g. "isc20230921141113"
# KEA_PKG_TYPE_IN_CONFIGURE will be type of the package "rpm", "deb" or "apk"
if test -n "$KEA_PKG_VERSION_IN_CONFIGURE"; then
KEA_SRCID="$KEA_PKG_VERSION_IN_CONFIGURE $KEA_PKG_TYPE_IN_CONFIGURE"
AC_MSG_RESULT("$KEA_PKG_TYPE_IN_CONFIGURE")
elif test -d "${srcdir}/.git"; then
KEA_SRCID="git `(cd "${top_srcdir}";git rev-parse HEAD)`"
AC_MSG_RESULT("git")
else

View File

@@ -2415,6 +2415,7 @@ def _build_deb(system, revision, features, tarball_path, env, check_times, dry_r
# update version, etc
execute('sed -i -e s/{VERSION}/%s/ changelog' % pkg_version, cwd='kea-src/kea-%s/debian' % pkg_version, check_times=check_times, dry_run=dry_run)
execute('sed -i -e s/{ISC_VERSION}/%s/ changelog' % pkg_isc_version, cwd='kea-src/kea-%s/debian' % pkg_version, check_times=check_times, dry_run=dry_run)
execute('sed -i -e s/{ISC_VERSION}/%s/ rules' % pkg_isc_version, cwd='kea-src/kea-%s/debian' % pkg_version, check_times=check_times, dry_run=dry_run)
execute('sed -i -e s/{FREERADIUS_CLIENT_VERSION}/%s/g control' % frc_version, cwd='kea-src/kea-%s/debian' % pkg_version, check_times=check_times, dry_run=dry_run)
services_list = ['isc-kea-dhcp4.isc-kea-dhcp4-server.service', 'isc-kea-dhcp6.isc-kea-dhcp6-server.service', 'isc-kea-dhcp-ddns.isc-kea-dhcp-ddns-server.service', 'isc-kea-ctrl-agent.service']