summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/postfix
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/postfix')
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch20
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch32
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch20
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch12
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch10
-rw-r--r--meta-networking/recipes-daemons/postfix/files/main.cf2
-rw-r--r--meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb (renamed from meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb)31
7 files changed, 68 insertions, 59 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch b/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
index 8c9c13b1c4..785fe87452 100644
--- a/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
@@ -1,4 +1,4 @@
1From 9000ee4d8bb5c5e0bcc588e9bec86eb56f4285e1 Mon Sep 17 00:00:00 2001 1From e4197bc1f431fd7e555a31e6f7f1e020b4ec8f4c Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com> 2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 19 Jun 2015 16:45:54 +0900 3Date: Fri, 19 Jun 2015 16:45:54 +0900
4Subject: [PATCH] Fix makedefs 4Subject: [PATCH] Fix makedefs
@@ -19,10 +19,10 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
19 1 file changed, 11 insertions(+), 16 deletions(-) 19 1 file changed, 11 insertions(+), 16 deletions(-)
20 20
21diff --git a/makedefs b/makedefs 21diff --git a/makedefs b/makedefs
22index 3448c1e..78e0717 100644 22index a740e41..28fb128 100644
23--- a/makedefs 23--- a/makedefs
24+++ b/makedefs 24+++ b/makedefs
25@@ -197,9 +197,6 @@ echo "# pie=$pie" 25@@ -230,9 +230,6 @@ echo "# pie=$pie"
26 26
27 # Defaults for most sane systems 27 # Defaults for most sane systems
28 28
@@ -32,7 +32,7 @@ index 3448c1e..78e0717 100644
32 ARFL=rv 32 ARFL=rv
33 33
34 # Ugly function to make our error message more visible among the 34 # Ugly function to make our error message more visible among the
35@@ -492,12 +489,12 @@ case "$SYSTEM.$RELEASE" in 35@@ -563,12 +560,12 @@ case "$SYSTEM.$RELEASE" in
36 case "$CCARGS" in 36 case "$CCARGS" in
37 *-DNO_DB*) ;; 37 *-DNO_DB*) ;;
38 *-DHAS_DB*) ;; 38 *-DHAS_DB*) ;;
@@ -48,7 +48,7 @@ index 3448c1e..78e0717 100644
48 else 48 else
49 # No, we're not going to try db1 db2 db3 etc. 49 # No, we're not going to try db1 db2 db3 etc.
50 # On a properly installed system, Postfix builds 50 # On a properly installed system, Postfix builds
51@@ -506,12 +503,12 @@ case "$SYSTEM.$RELEASE" in 51@@ -577,12 +574,12 @@ case "$SYSTEM.$RELEASE" in
52 echo "Install the appropriate db*-devel package first." 1>&2 52 echo "Install the appropriate db*-devel package first." 1>&2
53 exit 1 53 exit 1
54 fi 54 fi
@@ -63,7 +63,7 @@ index 3448c1e..78e0717 100644
63 do 63 do
64 test -e $lib/lib$name.a -o -e $lib/lib$name.so && { 64 test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
65 SYSLIBS="$SYSLIBS -l$name" 65 SYSLIBS="$SYSLIBS -l$name"
66@@ -531,7 +528,7 @@ case "$SYSTEM.$RELEASE" in 66@@ -602,7 +599,7 @@ case "$SYSTEM.$RELEASE" in
67 if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ] 67 if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ]
68 then 68 then
69 : 69 :
@@ -72,7 +72,7 @@ index 3448c1e..78e0717 100644
72 then 72 then
73 echo CCARGS="$CCARGS -DNO_EPOLL" 73 echo CCARGS="$CCARGS -DNO_EPOLL"
74 else 74 else
75@@ -555,8 +552,6 @@ int main(int argc, char **argv) 75@@ -626,8 +623,6 @@ int main(int argc, char **argv)
76 } 76 }
77 EOF 77 EOF
78 ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1 78 ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1
@@ -81,7 +81,7 @@ index 3448c1e..78e0717 100644
81 rm -f makedefs.test makedefs.test.[co] 81 rm -f makedefs.test makedefs.test.[co]
82 fi;; 82 fi;;
83 esac 83 esac
84@@ -572,12 +567,12 @@ EOF 84@@ -644,12 +639,12 @@ EOF
85 case "$CCARGS" in 85 case "$CCARGS" in
86 *-DNO_DB*) ;; 86 *-DNO_DB*) ;;
87 *-DHAS_DB*) ;; 87 *-DHAS_DB*) ;;
@@ -97,7 +97,7 @@ index 3448c1e..78e0717 100644
97 else 97 else
98 # On a properly installed system, Postfix builds 98 # On a properly installed system, Postfix builds
99 # by including <db.h> and by linking with -ldb 99 # by including <db.h> and by linking with -ldb
100@@ -585,12 +580,12 @@ EOF 100@@ -657,12 +652,12 @@ EOF
101 echo "Install the appropriate db*-devel package first." 1>&2 101 echo "Install the appropriate db*-devel package first." 1>&2
102 exit 1 102 exit 1
103 fi 103 fi
@@ -113,5 +113,5 @@ index 3448c1e..78e0717 100644
113 test -e $lib/lib$name.a -o -e $lib/lib$name.so && { 113 test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
114 SYSLIBS="$SYSLIBS -l$name" 114 SYSLIBS="$SYSLIBS -l$name"
115-- 115--
1162.17.1 1162.25.1
117 117
diff --git a/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch b/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
index 28199ccdd2..d46efb95cb 100644
--- a/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
@@ -1,4 +1,4 @@
1From cb69ffda0c2cbde6acdc8b01c8d5ff78d81a84fc Mon Sep 17 00:00:00 2001 1From 953719878466c55572294f42e85127bda5d34999 Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com> 2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 19 Jun 2015 17:14:58 +0900 3Date: Fri, 19 Jun 2015 17:14:58 +0900
4Subject: [PATCH] Change fixed postconf to a variable for cross-compiling 4Subject: [PATCH] Change fixed postconf to a variable for cross-compiling
@@ -12,7 +12,7 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
12 2 files changed, 11 insertions(+), 9 deletions(-) 12 2 files changed, 11 insertions(+), 9 deletions(-)
13 13
14diff --git a/Makefile.in b/Makefile.in 14diff --git a/Makefile.in b/Makefile.in
15index 65e7911..40295be 100644 15index a37f89f..17cb64b 100644
16--- a/Makefile.in 16--- a/Makefile.in
17+++ b/Makefile.in 17+++ b/Makefile.in
18@@ -22,7 +22,7 @@ META = meta/main.cf.proto meta/master.cf.proto meta/postfix-files \ 18@@ -22,7 +22,7 @@ META = meta/main.cf.proto meta/master.cf.proto meta/postfix-files \
@@ -25,10 +25,10 @@ index 65e7911..40295be 100644
25 default: update 25 default: update
26 26
27diff --git a/postfix-install b/postfix-install 27diff --git a/postfix-install b/postfix-install
28index e498cd3..8049f43 100644 28index 563ee27..00d4651 100644
29--- a/postfix-install 29--- a/postfix-install
30+++ b/postfix-install 30+++ b/postfix-install
31@@ -244,8 +244,8 @@ test -z "$non_interactive" -a ! -t 0 && { 31@@ -249,8 +249,8 @@ test -z "$non_interactive" -a ! -t 0 && {
32 exit 1 32 exit 1
33 } 33 }
34 34
@@ -39,7 +39,7 @@ index e498cd3..8049f43 100644
39 exit 1 39 exit 1
40 } 40 }
41 41
42@@ -266,7 +266,7 @@ do 42@@ -271,7 +271,7 @@ do
43 case "$junk" in 43 case "$junk" in
44 *MAIL_VERSION*) 44 *MAIL_VERSION*)
45 case "$mail_version" in 45 case "$mail_version" in
@@ -48,7 +48,7 @@ index e498cd3..8049f43 100644
48 esac 48 esac
49 val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1 49 val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1
50 case "$val" in 50 case "$val" in
51@@ -454,7 +454,7 @@ template files main.cf.proto and master.cf.proto." 51@@ -459,7 +459,7 @@ template files main.cf.proto and master.cf.proto."
52 52
53 : ${install_root=/} 53 : ${install_root=/}
54 : ${tempdir=`pwd`} 54 : ${tempdir=`pwd`}
@@ -57,16 +57,16 @@ index e498cd3..8049f43 100644
57 57
58 # Find out the location of installed configuration files. 58 # Find out the location of installed configuration files.
59 59
60@@ -520,7 +520,7 @@ test -f $CONFIG_DIRECTORY/main.cf && { 60@@ -525,7 +525,7 @@ test -f $CONFIG_DIRECTORY/main.cf && {
61 case "$junk" in 61 case "$junk" in
62 "") eval unset $name;; 62 "") eval unset $name;;
63 esac 63 esac
64- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -hx $name\`} || 64- eval : \${$name=\`bin/postconf -qc $CONFIG_DIRECTORY -hx $name\`} ||
65+ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -hx $name\`} || 65+ eval : \${$name=\`$POSTCONF -qc $CONFIG_DIRECTORY -hx $name\`} ||
66 exit 1 66 exit 1
67 done 67 done
68 } 68 }
69@@ -533,7 +533,7 @@ do 69@@ -538,7 +538,7 @@ do
70 case "$junk" in 70 case "$junk" in
71 "") eval unset $name;; 71 "") eval unset $name;;
72 esac 72 esac
@@ -75,7 +75,7 @@ index e498cd3..8049f43 100644
75 done 75 done
76 76
77 # Override settings manually. 77 # Override settings manually.
78@@ -670,6 +670,8 @@ README_DIRECTORY=$install_root$readme_directory 78@@ -675,6 +675,8 @@ README_DIRECTORY=$install_root$readme_directory
79 SHLIB_DIRECTORY=$install_root$shlib_directory 79 SHLIB_DIRECTORY=$install_root$shlib_directory
80 META_DIRECTORY=$install_root$meta_directory 80 META_DIRECTORY=$install_root$meta_directory
81 81
@@ -84,7 +84,7 @@ index e498cd3..8049f43 100644
84 # Avoid repeated tests for existence of these; default permissions suffice. 84 # Avoid repeated tests for existence of these; default permissions suffice.
85 85
86 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1 86 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1
87@@ -841,7 +843,7 @@ IFS="$BACKUP_IFS" 87@@ -846,7 +848,7 @@ IFS="$BACKUP_IFS"
88 # the wrong place when Postfix is being upgraded. 88 # the wrong place when Postfix is being upgraded.
89 89
90 case "$mail_version" in 90 case "$mail_version" in
@@ -93,15 +93,15 @@ index e498cd3..8049f43 100644
93 esac 93 esac
94 94
95 # Undo MAIL_VERSION expansion at the end of a parameter value. If 95 # Undo MAIL_VERSION expansion at the end of a parameter value. If
96@@ -861,7 +863,7 @@ do 96@@ -866,7 +868,7 @@ do
97 esac 97 esac
98 done 98 done
99 99
100-bin/postconf -c $CONFIG_DIRECTORY -e \ 100-bin/postconf -qc $CONFIG_DIRECTORY -e \
101+"$POSTCONF" -c $CONFIG_DIRECTORY -e \ 101+"$POSTCONF" -qc $CONFIG_DIRECTORY -e \
102 "daemon_directory = $daemon_directory" \ 102 "daemon_directory = $daemon_directory" \
103 "data_directory = $data_directory" \ 103 "data_directory = $data_directory" \
104 "command_directory = $command_directory" \ 104 "command_directory = $command_directory" \
105-- 105--
1062.17.1 1062.25.1
107 107
diff --git a/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch b/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
index 1545f21637..6f8e3e84da 100644
--- a/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
@@ -1,22 +1,22 @@
1From 995bddd9563b1aecca2369f2f9c675f88bdc0053 Mon Sep 17 00:00:00 2001 1From a8ec63a71361ccd3f6d2959c4c87b7824282b291 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Aug 2017 10:29:37 -0700 3Date: Sat, 26 Aug 2017 10:29:37 -0700
4Subject: [PATCH] makedefs: Use native compiler to build makedefs.test 4Subject: [PATCH] makedefs: Use native compiler to build makedefs.test
5 5
6Its a binary used during build 6Its a binary used during build
7 7
8Upstream-Status: Inappropriate [embedded specific]
9
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 11---
10Upstream-Status: Pending
11
12 makedefs | 10 +++++----- 12 makedefs | 10 +++++-----
13 1 file changed, 5 insertions(+), 5 deletions(-) 13 1 file changed, 5 insertions(+), 5 deletions(-)
14 14
15diff --git a/makedefs b/makedefs 15diff --git a/makedefs b/makedefs
16index 78e0717..3299eba 100644 16index 28fb128..313b401 100644
17--- a/makedefs 17--- a/makedefs
18+++ b/makedefs 18+++ b/makedefs
19@@ -551,7 +551,7 @@ int main(int argc, char **argv) 19@@ -622,7 +622,7 @@ int main(int argc, char **argv)
20 exit(0); 20 exit(0);
21 } 21 }
22 EOF 22 EOF
@@ -25,7 +25,7 @@ index 78e0717..3299eba 100644
25 rm -f makedefs.test makedefs.test.[co] 25 rm -f makedefs.test makedefs.test.[co]
26 fi;; 26 fi;;
27 esac 27 esac
28@@ -787,7 +787,7 @@ int main(int argc, char **argv) 28@@ -865,7 +865,7 @@ int main(int argc, char **argv)
29 exit(0); 29 exit(0);
30 } 30 }
31 EOF 31 EOF
@@ -34,7 +34,7 @@ index 78e0717..3299eba 100644
34 ./makedefs.test 2>/dev/null || 34 ./makedefs.test 2>/dev/null ||
35 CCARGS="$CCARGS -DNO_SIGSETJMP" 35 CCARGS="$CCARGS -DNO_SIGSETJMP"
36 rm -f makedefs.test makedefs.test.[co] 36 rm -f makedefs.test makedefs.test.[co]
37@@ -823,7 +823,7 @@ int main(int argc, char **argv) 37@@ -903,7 +903,7 @@ int main(int argc, char **argv)
38 &error) != 14); 38 &error) != 14);
39 } 39 }
40 EOF 40 EOF
@@ -43,7 +43,7 @@ index 78e0717..3299eba 100644
43 $icu_ldflags >/dev/null 2>&1 43 $icu_ldflags >/dev/null 2>&1
44 if ./makedefs.test 2>/dev/null ; then 44 if ./makedefs.test 2>/dev/null ; then
45 CCARGS="$CCARGS $icu_cppflags" 45 CCARGS="$CCARGS $icu_cppflags"
46@@ -938,7 +938,7 @@ int main(void) 46@@ -1024,7 +1024,7 @@ int main(void)
47 exit(ferror(stdout) ? 1 : 0); 47 exit(ferror(stdout) ? 1 : 0);
48 } 48 }
49 EOF 49 EOF
@@ -52,7 +52,7 @@ index 78e0717..3299eba 100644
52 ./makedefs.test || exit 1 52 ./makedefs.test || exit 1
53 rm -f makedefs.test makedefs.test.[co] 53 rm -f makedefs.test makedefs.test.[co]
54 } 54 }
55@@ -1094,7 +1094,7 @@ int main(void) 55@@ -1180,7 +1180,7 @@ int main(void)
56 exit(ferror(stdout) ? 1 : 0); 56 exit(ferror(stdout) ? 1 : 0);
57 } 57 }
58 EOF 58 EOF
@@ -62,5 +62,5 @@ index 78e0717..3299eba 100644
62 rm -f makedefs.test makedefs.test.[co] 62 rm -f makedefs.test makedefs.test.[co]
63 eval ${parm_name}=\""\$parm_val"\" 63 eval ${parm_name}=\""\$parm_val"\"
64-- 64--
652.17.1 652.25.1
66 66
diff --git a/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch b/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
index a38e783309..0660ee098e 100644
--- a/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
@@ -1,4 +1,4 @@
1From afef4a9391e6bb1a6c3e73d370f240577ed8b0dd Mon Sep 17 00:00:00 2001 1From 404150f53bb49af987d7338a808f47fdbd50ba7f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 16 Jan 2022 11:21:54 +0800 3Date: Sun, 16 Jan 2022 11:21:54 +0800
4Subject: [PATCH] Fix icu config 4Subject: [PATCH] Fix icu config
@@ -10,18 +10,18 @@ corrupted in any case its just adding -I/usr/include
10to the CCARGS which we loose nothing if its not 10to the CCARGS which we loose nothing if its not
11entertained. 11entertained.
12 12
13Upstream-Status: Inappropriate [embedded specific]
14
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 15Signed-off-by: Khem Raj <raj.khem@gmail.com>
14--- 16---
15Upstream-Status: Pending
16
17 makedefs | 1 - 17 makedefs | 1 -
18 1 file changed, 1 deletion(-) 18 1 file changed, 1 deletion(-)
19 19
20diff --git a/makedefs b/makedefs 20diff --git a/makedefs b/makedefs
21index 3299eba..2a76f20 100644 21index 313b401..e5db212 100644
22--- a/makedefs 22--- a/makedefs
23+++ b/makedefs 23+++ b/makedefs
24@@ -826,7 +826,6 @@ EOF 24@@ -906,7 +906,6 @@ EOF
25 ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \ 25 ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \
26 $icu_ldflags >/dev/null 2>&1 26 $icu_ldflags >/dev/null 2>&1
27 if ./makedefs.test 2>/dev/null ; then 27 if ./makedefs.test 2>/dev/null ; then
@@ -30,5 +30,5 @@ index 3299eba..2a76f20 100644
30 else 30 else
31 CCARGS="$CCARGS -DNO_EAI" 31 CCARGS="$CCARGS -DNO_EAI"
32-- 32--
332.17.1 332.25.1
34 34
diff --git a/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch b/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
index b425cf8432..1571aa844d 100644
--- a/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
@@ -1,4 +1,4 @@
1From 545d4a79b50caa5698622c0c1905ae154197a16f Mon Sep 17 00:00:00 2001 1From 25e7d1a9bc64f39666eb0e2b9b175773615e28d2 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Fri, 12 Oct 2018 12:38:02 +0800 3Date: Fri, 12 Oct 2018 12:38:02 +0800
4Subject: [PATCH] makedefs: add -lnsl and -lresolv to SYSLIBS by default 4Subject: [PATCH] makedefs: add -lnsl and -lresolv to SYSLIBS by default
@@ -14,10 +14,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14 1 file changed, 2 insertions(+), 20 deletions(-) 14 1 file changed, 2 insertions(+), 20 deletions(-)
15 15
16diff --git a/makedefs b/makedefs 16diff --git a/makedefs b/makedefs
17index 2a76f20..9d5db9f 100644 17index e5db212..b00049b 100644
18--- a/makedefs 18--- a/makedefs
19+++ b/makedefs 19+++ b/makedefs
20@@ -506,16 +506,7 @@ case "$SYSTEM.$RELEASE" in 20@@ -577,16 +577,7 @@ case "$SYSTEM.$RELEASE" in
21 SYSLIBS="$SYSLIBS -ldb" 21 SYSLIBS="$SYSLIBS -ldb"
22 ;; 22 ;;
23 esac 23 esac
@@ -35,7 +35,7 @@ index 2a76f20..9d5db9f 100644
35 # Kernel 2.4 added IPv6 35 # Kernel 2.4 added IPv6
36 case "$RELEASE" in 36 case "$RELEASE" in
37 2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";; 37 2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";;
38@@ -583,16 +574,7 @@ EOF 38@@ -655,16 +646,7 @@ EOF
39 SYSLIBS="$SYSLIBS -ldb" 39 SYSLIBS="$SYSLIBS -ldb"
40 ;; 40 ;;
41 esac 41 esac
@@ -54,5 +54,5 @@ index 2a76f20..9d5db9f 100644
54 : ${SHLIB_SUFFIX=.so} 54 : ${SHLIB_SUFFIX=.so}
55 : ${SHLIB_CFLAGS=-fPIC} 55 : ${SHLIB_CFLAGS=-fPIC}
56-- 56--
572.17.1 572.25.1
58 58
diff --git a/meta-networking/recipes-daemons/postfix/files/main.cf b/meta-networking/recipes-daemons/postfix/files/main.cf
index 22c57485d7..e9f80af15d 100644
--- a/meta-networking/recipes-daemons/postfix/files/main.cf
+++ b/meta-networking/recipes-daemons/postfix/files/main.cf
@@ -1,4 +1,4 @@
1compatibility_level = 3.6 1compatibility_level = 3.10
2smtputf8_enable = no 2smtputf8_enable = no
3 3
4# Configure your domain and accounts 4# Configure your domain and accounts
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb b/meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb
index d48e9145f8..a85176d871 100644
--- a/meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb
+++ b/meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb
@@ -4,7 +4,7 @@ IBM research as an alternative to the widely-used Sendmail program. \
4Postfix attempts to be fast, easy to administer, and secure. The outsidei \ 4Postfix attempts to be fast, easy to administer, and secure. The outsidei \
5has a definite Sendmail-ish flavor, but the inside is completely different." 5has a definite Sendmail-ish flavor, but the inside is completely different."
6 6
7HOMEPAGE= "http://www.postfix.org" 7HOMEPAGE = "http://www.postfix.org"
8SECTION = "mail" 8SECTION = "mail"
9DEPENDS = "db icu libpcre libnsl2 m4-native openssl postfix-native \ 9DEPENDS = "db icu libpcre libnsl2 m4-native openssl postfix-native \
10 ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', 'openldap', '', d)} \ 10 ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', 'openldap', '', d)} \
@@ -28,11 +28,11 @@ SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ 28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
29 " 29 "
30 30
31SRC_URI[sha256sum] = "4b6e17c826cc438cc3016a9c0a55ea7e77c6cbafba7dd57241d81b690b0e9774" 31SRC_URI[sha256sum] = "75868db7a8ed252cd3a14c13a3ce383ddd42563160c02027d061202ee36799bf"
32 32
33UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.8(\.\d+)+).tar.gz" 33UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.10(\.\d+)+).tar.gz"
34 34
35S = "${WORKDIR}/postfix-${PV}" 35S = "${UNPACKDIR}/postfix-${PV}"
36 36
37CLEANBROKEN = "1" 37CLEANBROKEN = "1"
38 38
@@ -87,6 +87,10 @@ export POSTCONF = "${STAGING_DIR_NATIVE}${sbindir_native}/postconf"
87# ignore the OPTS="CC=$CC" in Makefile it will not use the CC=$CC $CCARGS 87# ignore the OPTS="CC=$CC" in Makefile it will not use the CC=$CC $CCARGS
88EXTRA_OEMAKE += "OPT= DEBUG= OPTS= " 88EXTRA_OEMAKE += "OPT= DEBUG= OPTS= "
89 89
90# use gnu17 for now as recommended in:
91# https://marc.info/?l=postfix-users&m=173542420611213
92CFLAGS += "-std=gnu17"
93
90do_compile () { 94do_compile () {
91 unset CFLAGS CPPFLAGS CXXFLAGS 95 unset CFLAGS CPPFLAGS CXXFLAGS
92 local native_build 96 local native_build
@@ -135,20 +139,25 @@ do_install () {
135 rm -rf ${D}${localstatedir}/spool/postfix 139 rm -rf ${D}${localstatedir}/spool/postfix
136 mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/${MLPREFIX}sample-main.cf 140 mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/${MLPREFIX}sample-main.cf
137 install -m 755 ${S}/bin/smtp-sink ${D}/${sbindir}/ 141 install -m 755 ${S}/bin/smtp-sink ${D}/${sbindir}/
138 install -d ${D}${sysconfdir}/init.d
139 install -m 644 ${UNPACKDIR}/main.cf ${D}${sysconfdir}/postfix/main.cf 142 install -m 644 ${UNPACKDIR}/main.cf ${D}${sysconfdir}/postfix/main.cf
140 sed -i 's#@LIBEXECDIR@#${libexecdir}#' ${D}${sysconfdir}/postfix/main.cf 143 sed -i 's#@LIBEXECDIR@#${libexecdir}#' ${D}${sysconfdir}/postfix/main.cf
141 144
142 install -m 755 ${UNPACKDIR}/check_hostname.sh ${D}${sbindir}/ 145 install -m 755 ${UNPACKDIR}/check_hostname.sh ${D}${sbindir}/
143 146
144 install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
145 install -m 644 ${UNPACKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient 147 install -m 644 ${UNPACKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient
146 148
147 install -d ${D}${systemd_unitdir}/system 149 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
148 install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system 150 install -d ${D}${sysconfdir}/init.d
149 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service 151 install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
150 sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service 152 fi
151 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service 153
154 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
155 install -d ${D}${systemd_unitdir}/system
156 install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system
157 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service
158 sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service
159 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service
160 fi
152 161
153 install -m 0755 ${UNPACKDIR}/aliasesdb ${D}${libexecdir}/postfix 162 install -m 0755 ${UNPACKDIR}/aliasesdb ${D}${libexecdir}/postfix
154 163