blob: 8ef6eeb23527273eccbbb01a2e8579f8a3cbe373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ae,v 1.11 2010/01/31 21:06:29 heinz Exp $
--- scripts/exim_install.orig 2009-10-30 16:14:04.000000000 +0100
+++ scripts/exim_install
@@ -84,6 +84,8 @@ if [ "${SYSTEM_ALIASES_FILE}" = "" ] ; t
SYSTEM_ALIASES_FILE=/etc/aliases
fi
+INST_CONFIGURE_FILE=${PREFIX}/share/examples/exim/configure
+
# Allow INST_xx to over-ride xx
case "$INST_BIN_DIRECTORY" in ?*) BIN_DIRECTORY="$INST_BIN_DIRECTORY";; esac
case "$INST_CONFIGURE_FILE" in ?*) CONFIGURE_FILE="$INST_CONFIGURE_FILE";; esac
@@ -220,6 +222,9 @@ while [ $# -gt 0 ]; do
if [ $name = exim${EXE} ]; then
version=exim-`./exim -bV -C /dev/null | \
awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
+ # only for pkgsrc: ./exim cannot run during install to DESTDIR because
+ # EXIM_USER may not exist at this time, so we fake the version information
+ version=@PKGSRC_EXIM_VERSION@${EXE}
if [ "${version}" = "exim-${EXE}" ]; then
echo $com ""
@@ -415,15 +420,8 @@ elif [ ! -f ${CONFIGURE_FILE} ]; then
echo $com "*** Exim installation ${ver}failed ***"
exit 1
fi
- if [ ! -f ${SYSTEM_ALIASES_FILE} ]; then
- echo $com '****'
- echo $com Installing a dummy ${SYSTEM_ALIASES_FILE} file because you do not have
- echo $com one, and the default configuration requires it. You should
- echo $com edit ${SYSTEM_ALIASES_FILE} and at least create an alias for postmaster.
- echo $com '***'
- echo ${CP} ../src/aliases.default ${SYSTEM_ALIASES_FILE}
- ${real} ${CP} ../src/aliases.default ${SYSTEM_ALIASES_FILE}
- fi
+ echo ${CP} ../src/aliases.default ${DESTDIR}${PREFIX}/share/examples/exim/aliases
+ ${real} ${CP} ../src/aliases.default ${DESTDIR}${PREFIX}/share/examples/exim/aliases
else
echo $com Configuration file ${CONFIGURE_FILE} already exists
|