aboutsummaryrefslogtreecommitdiff
path: root/packages/rpm/configure.in
diff options
context:
space:
mode:
authorAlfredo Cardigliano <cardigliano@ntop.org>2019-10-21 09:26:40 +0200
committerAlfredo Cardigliano <cardigliano@ntop.org>2019-10-21 09:26:40 +0200
commitb2832cee8e8415822b66299d1f451bd427b733d6 (patch)
treec8d21e3304995c80b7335fed7e123e5a1e710d99 /packages/rpm/configure.in
parent960aa77b6da9bd70081621ae8e975e548ce7cc13 (diff)
rpm-sign fix for centos8
Diffstat (limited to 'packages/rpm/configure.in')
-rw-r--r--packages/rpm/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/rpm/configure.in b/packages/rpm/configure.in
index 1eaa0ea34..67f1b470b 100644
--- a/packages/rpm/configure.in
+++ b/packages/rpm/configure.in
@@ -29,6 +29,16 @@ PACKAGE_VERSION=`../version.sh --release`
MAJOR_RELEASE=`../version.sh --major-release`
GIT_REVISION=`../version.sh --revision`
+CENTOS_RELEASE=`cat /etc/centos-release | cut -d ' ' -f 3|cut -d '.' -f 1`
+if test $CENTOS_RELEASE = "release"; then
+ CENTOS_RELEASE=`cat /etc/centos-release | cut -d ' ' -f 4|cut -d '.' -f 1`
+fi
+
+RPM_SIGN_CMD="rpm --addsign"
+if test "$CENTOS_RELEASE" -ne 8; then
+ RPM_SIGN_CMD="./rpm-sign.exp"
+fi
+
AC_CONFIG_FILES([Makefile ndpi.spec])
AC_SUBST(PACKAGE_VERSION)
@@ -39,6 +49,7 @@ AC_SUBST(DATE)
AC_SUBST(KERNEL)
AC_SUBST(GIT_REVISION)
AC_SUBST(MAJOR_RELEASE)
+AC_SUBST(RPM_SIGN_CMD)
AC_OUTPUT