1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/mail/exim-old/files/patch-aa
Mark Murray 323ac7e8a1 Upgrade to version 1.60.
Note! I have fixed a bogon from previous versions where I was putting the
executables in $(PREFIX)/bin. They now go in $(PREFIX)/sbin, so make
sure your previous binaries have been properly removed!
1997-02-26 13:51:00 +00:00

85 lines
3.0 KiB
Plaintext

--- scripts/exim_install.orig Tue Feb 25 11:12:33 1997
+++ scripts/exim_install Wed Feb 26 15:17:09 1997
@@ -8,6 +8,8 @@
# This script also installs a default configuration file in CONFIGURE_FILE
# if there is no configuration file there.
+# This script also installs a .info file in INFO_DIRECTORY if required.
+
# The script can be made to output what it would do, without actually doing
# anything, by giving it the option "-n" (cf make). Arguments are the names
# of things to install. No arguments installs everything.
@@ -65,10 +67,12 @@
fi
BIN_DIRECTORY=`grep -h "^ *BIN_DIRECTORY" $files | tail -1 | cut -c15-99`
+INFO_DIRECTORY=`grep -h "^ *INFO_DIRECTORY" $files | tail -1 | cut -c16-99`
CONFIGURE_FILE=`grep -h "^ *CONFIGURE_FILE" $files | tail -1 | cut -c16-99`
# Allow INST_xx to over-ride xx
case "$INST_BIN_DIRECTORY" in ?*) BIN_DIRECTORY="$INST_BIN_DIRECTORY";; esac
+case "$INST_INFO_DIRECTORY" in ?*) INFO_DIRECTORY="$INST_INFO_DIRECTORY";; esac
case "$INST_CONFIGURE_FILE" in ?*) CONFIGURE_FILE="$INST_CONFIGURE_FILE";; esac
case "$INST_CP" in '') CP=cp;; *) CP="$INST_CP";; esac
case "$INST_MV" in '') MV=mv;; *) MV="$INST_MV";; esac
@@ -76,6 +80,7 @@
# Allow the user to over-ride xx
case "$inst_dest" in ?*) BIN_DIRECTORY="$inst_dest";; esac
+case "$inst_info" in ?*) INFO_DIRECTORY="$inst_info";; esac
case "$inst_conf" in ?*) CONFIGURE_FILE="$inst_conf";; esac
case "$inst_cp" in ?*) CP="$inst_cp";; esac
case "$inst_mv" in ?*) MV="$inst_mv";; esac
@@ -101,6 +106,20 @@
fi
fi
+# If info directory doesn't exist, try to create it
+
+if [ ! -d ${INFO_DIRECTORY} ]; then
+ echo mkdir -p ${INFO_DIRECTORY}
+ ${real} mkdir -p ${INFO_DIRECTORY}
+ if [ $? -ne 0 ]; then
+ echo $com ""
+ echo $com "**** Exim installation ${ver}failed ****"
+ exit 1
+ else
+ echo $com ${INFO_DIRECTORY} created
+ fi
+fi
+
# If no arguments, install everything
if [ $# -gt 0 ]; then
@@ -166,12 +185,30 @@
fi
done
+echo $com ""
+echo $com Installation directory is ${INFO_DIRECTORY}
+echo $com ""
+
+if [ -f ../doc/spec.texinfo ]; then
+ makeinfo --no-split --output exim_overview.info ../doc/oview.texinfo
+ echo ${CP} exim_overview.info ${INFO_DIRECTORY}
+ ${real} ${CP} exim_overview.info ${INFO_DIRECTORY}
+ makeinfo --no-split --output exim.info ../doc/spec.texinfo
+ echo ${CP} exim.info ${INFO_DIRECTORY}
+ ${real} ${CP} exim.info ${INFO_DIRECTORY}
+ makeinfo --no-split --output exim_filter.info ../doc/filter.texinfo
+ echo ${CP} exim_filter.info ${INFO_DIRECTORY}
+ ${real} ${CP} exim_filter.info ${INFO_DIRECTORY}
+fi
+
# If there is no configuration file, install the default,
# building the lib directory if necessary.
echo $com ""
if [ ! -f ${CONFIGURE_FILE} ]; then
+ echo mkdir -p `dirname ${CONFIGURE_FILE}`
+ ${real} mkdir -p `dirname ${CONFIGURE_FILE}`
echo $com Installing default configuration in ${CONFIGURE_FILE}
echo $com because there is no existing configuration file.
echo ${CP} ../src/configure.default ${CONFIGURE_FILE}