summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/postfix/files/install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/postfix/files/install.patch')
-rw-r--r--meta-networking/recipes-daemons/postfix/files/install.patch57
1 files changed, 42 insertions, 15 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/install.patch b/meta-networking/recipes-daemons/postfix/files/install.patch
index a3fe089c22..d023680f3b 100644
--- a/meta-networking/recipes-daemons/postfix/files/install.patch
+++ b/meta-networking/recipes-daemons/postfix/files/install.patch
@@ -1,14 +1,20 @@
1Change fixed postconf to a variable for cross-compiling 1From 190650e1cd5700cd6950ead3fcb17ebcec192a2e Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 19 Jun 2015 17:14:58 +0900
4Subject: [PATCH] Change fixed postconf to a variable for cross-compiling
2 5
3Upstreamstatus: Inappropriate [embedded specific] 6Upstreamstatus: Inappropriate [embedded specific]
4 7
5Signed-off-by: Yao Zhao <yao.zhao@windriver.com> 8Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
6--- 9---
10 postfix-install | 18 ++++++++++--------
11 1 file changed, 10 insertions(+), 8 deletions(-)
12
7diff --git a/postfix-install b/postfix-install 13diff --git a/postfix-install b/postfix-install
8index 49225ac..2e4c292 100644 14index 1662c3d..d11fa12 100644
9--- a/postfix-install 15--- a/postfix-install
10+++ b/postfix-install 16+++ b/postfix-install
11@@ -201,8 +201,8 @@ test -z "$non_interactive" -a ! -t 0 && { 17@@ -226,8 +226,8 @@ test -z "$non_interactive" -a ! -t 0 && {
12 exit 1 18 exit 1
13 } 19 }
14 20
@@ -19,7 +25,16 @@ index 49225ac..2e4c292 100644
19 exit 1 25 exit 1
20 } 26 }
21 27
22@@ -363,7 +363,7 @@ HTML files. Specify \"no\" if you do not want to install these files." 28@@ -248,7 +248,7 @@ do
29 case "$junk" in
30 *MAIL_VERSION*)
31 case "$mail_version" in
32- "") mail_version="`bin/postconf -dhx mail_version`" || exit 1
33+ "") mail_version="`$POSTCONF -dhx mail_version`" || exit 1
34 esac
35 val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1
36 case "$val" in
37@@ -434,7 +434,7 @@ template files main.cf.proto and master.cf.proto."
23 38
24 : ${install_root=/} 39 : ${install_root=/}
25 : ${tempdir=`pwd`} 40 : ${tempdir=`pwd`}
@@ -28,39 +43,51 @@ index 49225ac..2e4c292 100644
28 43
29 # Find out the location of installed configuration files. 44 # Find out the location of installed configuration files.
30 45
31@@ -433,7 +433,7 @@ test -f $CONFIG_DIRECTORY/main.cf && { 46@@ -500,7 +500,7 @@ test -f $CONFIG_DIRECTORY/main.cf && {
32 case "$junk" in 47 case "$junk" in
33 "") eval unset $name;; 48 "") eval unset $name;;
34 esac 49 esac
35- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -h $name\`} || 50- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -hx $name\`} ||
36+ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -h $name\`} || 51+ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -hx $name\`} ||
37 exit 1 52 exit 1
38 done 53 done
39 } 54 }
40@@ -446,7 +446,7 @@ do 55@@ -513,7 +513,7 @@ do
41 case "$junk" in 56 case "$junk" in
42 "") eval unset $name;; 57 "") eval unset $name;;
43 esac 58 esac
44- eval : \${$name=\`bin/postconf -c conf -d -h $name\`} || exit 1 59- eval : \${$name=\`bin/postconf -c conf -d -hx $name\`} || exit 1
45+ eval : \${$name=\`$POSTCONF -c conf -d -h $name\`} || exit 1 60+ eval : \${$name=\`$POSTCONF -c conf -d -hx $name\`} || exit 1
46 done 61 done
47 62
48 # Override settings manually. 63 # Override settings manually.
49@@ -565,6 +565,8 @@ HTML_DIRECTORY=$install_root$html_directory 64@@ -639,6 +639,8 @@ README_DIRECTORY=$install_root$readme_directory
50 MANPAGE_DIRECTORY=$install_root$manpage_directory 65 SHLIB_DIRECTORY=$install_root$shlib_directory
51 README_DIRECTORY=$install_root$readme_directory 66 META_DIRECTORY=$install_root$meta_directory
52 67
53+test "x$POSTCONF" != "x" || POSTCONF="bin/postconf" 68+test "x$POSTCONF" != "x" || POSTCONF="bin/postconf"
54+ 69+
55 # Avoid repeated tests for existence of these; default permissions suffice. 70 # Avoid repeated tests for existence of these; default permissions suffice.
56 71
57 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1 72 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1
58@@ -724,7 +726,7 @@ do 73@@ -810,7 +812,7 @@ IFS="$BACKUP_IFS"
59 # Postfix releases, and software should not suddenly be installed in
60 # the wrong place when Postfix is being upgraded. 74 # the wrong place when Postfix is being upgraded.
61 75
76 case "$mail_version" in
77-"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
78+"") mail_version="`$POSTCONF -dhx mail_version`" || exit 1
79 esac
80
81 # Undo MAIL_VERSION expansion at the end of a parameter value. If
82@@ -830,7 +832,7 @@ do
83 esac
84 done
85
62-bin/postconf -c $CONFIG_DIRECTORY -e \ 86-bin/postconf -c $CONFIG_DIRECTORY -e \
63+"$POSTCONF" -c $CONFIG_DIRECTORY -e \ 87+"$POSTCONF" -c $CONFIG_DIRECTORY -e \
64 "daemon_directory = $daemon_directory" \ 88 "daemon_directory = $daemon_directory" \
65 "data_directory = $data_directory" \ 89 "data_directory = $data_directory" \
66 "command_directory = $command_directory" \ 90 "command_directory = $command_directory" \
91--
921.8.4.2
93