summaryrefslogtreecommitdiff
path: root/debian/patches/35_install.dpatch
blob: 161861bb2f65fbacec65bc053f680a5c9fd1a5bf (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
#! /bin/sh -e
## 35_install.dpatch by Andreas Metzler
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Exim's installation scripts install the binary as exim-<version>
## DP: - disable this feature.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
	-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
	-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
	*)
		echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
		exit 1;;
esac

exit 0
				    
@DPATCH@
diff -urNad 30.tmp/scripts/exim_install 30/scripts/exim_install
--- 30.tmp/scripts/exim_install	Mon Dec 30 10:19:59 2002
+++ 30/scripts/exim_install	Mon Dec 30 10:20:21 2002
@@ -172,8 +172,9 @@
   # The exim binary is handled specially
 
   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}
+    version=exim
+#    version=exim-`./exim -bV -C /dev/null | \
+#      awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
 
     # Do something only if newer than existing file, or no existing file