diff options
author | Wlodek Wencel <wlodek@isc.org> | 2023-10-03 18:34:33 +0200 |
---|---|---|
committer | Wlodek Wencel <wlodek@isc.org> | 2023-10-03 18:34:33 +0200 |
commit | f3f17f51c1a00eebaa06483867682c1739d57772 (patch) | |
tree | 45dbc301e24e987cdbc372ef7c2e6c0440a518b9 /configure.ac | |
parent | [#3093] Applied patch (diff) | |
download | kea-f3f17f51c1a00eebaa06483867682c1739d57772.tar.xz kea-f3f17f51c1a00eebaa06483867682c1739d57772.zip |
[#3078] set package version and type in configure.ac
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 215349b0db..346a36cf61 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |