rpm-sign fix for centos8
This commit is contained in:
@@ -29,8 +29,8 @@ build-rpm: build-src cleanup-rpm
|
|||||||
tar cvfz $(HOME)/rpmbuild/SOURCES/ndpi-@PACKAGE_VERSION@.tgz ndpi-@PACKAGE_VERSION@
|
tar cvfz $(HOME)/rpmbuild/SOURCES/ndpi-@PACKAGE_VERSION@.tgz ndpi-@PACKAGE_VERSION@
|
||||||
@rm -f $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE)
|
@rm -f $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE)
|
||||||
@rpmbuild -bb ./$(APPL).spec --define "buildnumber $(GIT_REVISION)"
|
@rpmbuild -bb ./$(APPL).spec --define "buildnumber $(GIT_REVISION)"
|
||||||
@if [[ $EUID -ne 0 ]]; then ./rpm-sign.exp $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE); fi
|
@if [[ $EUID -ne 0 ]]; then @RPM_SIGN_CMD@ $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE); fi
|
||||||
@if [[ $EUID -ne 0 ]]; then ./rpm-sign.exp $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(DEV_PACKAGE); fi
|
@if [[ $EUID -ne 0 ]]; then @RPM_SIGN_CMD@ $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(DEV_PACKAGE); fi
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Package contents:"
|
@echo "Package contents:"
|
||||||
@rpm -qpl $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE)
|
@rpm -qpl $(HOME)/rpmbuild/RPMS/$(PLATFORM)/$(PACKAGE)
|
||||||
|
|||||||
Vendored
+12
@@ -583,6 +583,7 @@ PACKAGE_URL=''
|
|||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
RPM_SIGN_CMD
|
||||||
MAJOR_RELEASE
|
MAJOR_RELEASE
|
||||||
GIT_REVISION
|
GIT_REVISION
|
||||||
KERNEL
|
KERNEL
|
||||||
@@ -1698,6 +1699,16 @@ PACKAGE_VERSION=`../version.sh --release`
|
|||||||
MAJOR_RELEASE=`../version.sh --major-release`
|
MAJOR_RELEASE=`../version.sh --major-release`
|
||||||
GIT_REVISION=`../version.sh --revision`
|
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="$ac_config_files Makefile ndpi.spec"
|
ac_config_files="$ac_config_files Makefile ndpi.spec"
|
||||||
|
|
||||||
|
|
||||||
@@ -1710,6 +1721,7 @@ ac_config_files="$ac_config_files Makefile ndpi.spec"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
# tests run on this system so they can be shared between configure
|
# tests run on this system so they can be shared between configure
|
||||||
|
|||||||
@@ -29,6 +29,16 @@ PACKAGE_VERSION=`../version.sh --release`
|
|||||||
MAJOR_RELEASE=`../version.sh --major-release`
|
MAJOR_RELEASE=`../version.sh --major-release`
|
||||||
GIT_REVISION=`../version.sh --revision`
|
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_CONFIG_FILES([Makefile ndpi.spec])
|
||||||
|
|
||||||
AC_SUBST(PACKAGE_VERSION)
|
AC_SUBST(PACKAGE_VERSION)
|
||||||
@@ -39,6 +49,7 @@ AC_SUBST(DATE)
|
|||||||
AC_SUBST(KERNEL)
|
AC_SUBST(KERNEL)
|
||||||
AC_SUBST(GIT_REVISION)
|
AC_SUBST(GIT_REVISION)
|
||||||
AC_SUBST(MAJOR_RELEASE)
|
AC_SUBST(MAJOR_RELEASE)
|
||||||
|
AC_SUBST(RPM_SIGN_CMD)
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user