n2n/packages/rpm/configure.in

53 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-08-17 12:41:39 +02:00
AC_INIT([Makefile.in], 1.0)
2019-07-06 14:40:16 +02:00
# NOTE: this file is not actually used. You need to edit configure as well!
N2N_VERSION_RPM=$(../../scripts/version.sh |tr - _)
2019-07-06 14:40:16 +02:00
2018-08-17 12:41:39 +02:00
MACHINE=`uname -m`
SHORT_MACHINE=`uname -m | cut -b1-3`
if test $MACHINE = "x86_64"; then
EXTN="amd64"
else
2019-07-06 14:40:16 +02:00
if test $SHORT_MACHINE = "aar"; then
EXTN="arm64"
2018-08-17 12:41:39 +02:00
EXTRA_DEPS=""
else
2019-07-06 14:40:16 +02:00
if test $SHORT_MACHINE = "arm"; then
EXTN="armhf"
2018-08-17 12:41:39 +02:00
EXTRA_DEPS=""
2019-07-06 14:40:16 +02:00
else
if test $SHORT_MACHINE = "mip"; then
EXTN="mips"
EXTRA_DEPS=""
else
EXTN="i386"
fi
2018-08-17 12:41:39 +02:00
fi
fi
fi
APP=n2n
DATE=`date -R`
2019-10-21 09:37:28 +02:00
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
2018-08-17 12:41:39 +02:00
AC_SUBST(APP)
AC_SUBST(MACHINE)
AC_SUBST(N2N_VERSION_RPM)
2018-08-17 12:41:39 +02:00
AC_SUBST(EXTN)
AC_SUBST(DATE)
2019-10-21 09:37:28 +02:00
AC_SUBST(RPM_SIGN_CMD)
2018-08-17 12:41:39 +02:00
AC_CONFIG_FILES(n2n.spec)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT