2014-03-06 17:54:50 +01:00
|
|
|
The exim install script installs a binary named exim-<version>, plus a symlink
|
|
|
|
to it named exim.
|
|
|
|
In order to achieve this "feature" (of dubious usefulness) it runs the
|
|
|
|
executable (on the host) and then filters its output to grab the version number.
|
|
|
|
This clearly cannot work if the executable is cross-compiled, so get rid of all
|
|
|
|
of it and just install an executable file called exim.
|
|
|
|
|
|
|
|
Inspired by:
|
|
|
|
http://patch-tracker.debian.org/patch/series/view/exim4/4.76-2/35_install.dpatch
|
|
|
|
|
|
|
|
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
|
2017-03-11 16:12:05 +01:00
|
|
|
(rebased against exim 4.89)
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2014-03-06 17:54:50 +01:00
|
|
|
---
|
|
|
|
scripts/exim_install | 7 +++++--
|
|
|
|
1 files changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/scripts/exim_install b/scripts/exim_install
|
|
|
|
index e68e7d5..487a4e1 100755
|
|
|
|
--- a/scripts/exim_install
|
|
|
|
+++ b/scripts/exim_install
|
2017-03-11 16:12:05 +01:00
|
|
|
@@ -58,6 +58,8 @@
|
2014-03-06 17:54:50 +01:00
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
+do_symlink=no
|
|
|
|
+
|
|
|
|
# Get the values of BIN_DIRECTORY, CONFIGURE_FILE, INFO_DIRECTORY, NO_SYMLINK,
|
|
|
|
# SYSTEM_ALIASES_FILE, and EXE from the global Makefile (in the build
|
|
|
|
# directory). EXE is empty except in the Cygwin environment. In each case, keep
|
2017-03-11 16:12:05 +01:00
|
|
|
@@ -217,9 +219,7 @@
|
2014-03-06 17:54:50 +01:00
|
|
|
# The exim binary is handled specially
|
|
|
|
|
|
|
|
if [ $name = exim${EXE} ]; then
|
2017-03-11 16:12:05 +01:00
|
|
|
- exim="./exim -bV -C /dev/null"
|
|
|
|
- version=exim-`$exim 2>/dev/null | \
|
2014-03-06 17:54:50 +01:00
|
|
|
- awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
|
|
|
|
+ version=exim
|
|
|
|
|
|
|
|
if [ "${version}" = "exim-${EXE}" ]; then
|
|
|
|
echo $com ""
|