mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
postfix: upgrade 3.8.9 -> 3.10.1
ChangeLog: https://www.postfix.org/announcements/postfix-3.10.0.html https://www.postfix.org/announcements/postfix-3.10.1.html Refresh local patches. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
9e656e3ac2
commit
09a888062b
|
|
@ -1,4 +1,4 @@
|
|||
From 9000ee4d8bb5c5e0bcc588e9bec86eb56f4285e1 Mon Sep 17 00:00:00 2001
|
||||
From e4197bc1f431fd7e555a31e6f7f1e020b4ec8f4c Mon Sep 17 00:00:00 2001
|
||||
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
||||
Date: Fri, 19 Jun 2015 16:45:54 +0900
|
||||
Subject: [PATCH] Fix makedefs
|
||||
|
|
@ -19,10 +19,10 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
|
|||
1 file changed, 11 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/makedefs b/makedefs
|
||||
index 3448c1e..78e0717 100644
|
||||
index a740e41..28fb128 100644
|
||||
--- a/makedefs
|
||||
+++ b/makedefs
|
||||
@@ -197,9 +197,6 @@ echo "# pie=$pie"
|
||||
@@ -230,9 +230,6 @@ echo "# pie=$pie"
|
||||
|
||||
# Defaults for most sane systems
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ index 3448c1e..78e0717 100644
|
|||
ARFL=rv
|
||||
|
||||
# Ugly function to make our error message more visible among the
|
||||
@@ -492,12 +489,12 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -563,12 +560,12 @@ case "$SYSTEM.$RELEASE" in
|
||||
case "$CCARGS" in
|
||||
*-DNO_DB*) ;;
|
||||
*-DHAS_DB*) ;;
|
||||
|
|
@ -48,7 +48,7 @@ index 3448c1e..78e0717 100644
|
|||
else
|
||||
# No, we're not going to try db1 db2 db3 etc.
|
||||
# On a properly installed system, Postfix builds
|
||||
@@ -506,12 +503,12 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -577,12 +574,12 @@ case "$SYSTEM.$RELEASE" in
|
||||
echo "Install the appropriate db*-devel package first." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -63,7 +63,7 @@ index 3448c1e..78e0717 100644
|
|||
do
|
||||
test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
|
||||
SYSLIBS="$SYSLIBS -l$name"
|
||||
@@ -531,7 +528,7 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -602,7 +599,7 @@ case "$SYSTEM.$RELEASE" in
|
||||
if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ]
|
||||
then
|
||||
:
|
||||
|
|
@ -72,7 +72,7 @@ index 3448c1e..78e0717 100644
|
|||
then
|
||||
echo CCARGS="$CCARGS -DNO_EPOLL"
|
||||
else
|
||||
@@ -555,8 +552,6 @@ int main(int argc, char **argv)
|
||||
@@ -626,8 +623,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
EOF
|
||||
${CC-gcc} -o makedefs.test makedefs.test.c || exit 1
|
||||
|
|
@ -81,7 +81,7 @@ index 3448c1e..78e0717 100644
|
|||
rm -f makedefs.test makedefs.test.[co]
|
||||
fi;;
|
||||
esac
|
||||
@@ -572,12 +567,12 @@ EOF
|
||||
@@ -644,12 +639,12 @@ EOF
|
||||
case "$CCARGS" in
|
||||
*-DNO_DB*) ;;
|
||||
*-DHAS_DB*) ;;
|
||||
|
|
@ -97,7 +97,7 @@ index 3448c1e..78e0717 100644
|
|||
else
|
||||
# On a properly installed system, Postfix builds
|
||||
# by including <db.h> and by linking with -ldb
|
||||
@@ -585,12 +580,12 @@ EOF
|
||||
@@ -657,12 +652,12 @@ EOF
|
||||
echo "Install the appropriate db*-devel package first." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -113,5 +113,5 @@ index 3448c1e..78e0717 100644
|
|||
test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
|
||||
SYSLIBS="$SYSLIBS -l$name"
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From cb69ffda0c2cbde6acdc8b01c8d5ff78d81a84fc Mon Sep 17 00:00:00 2001
|
||||
From 953719878466c55572294f42e85127bda5d34999 Mon Sep 17 00:00:00 2001
|
||||
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
||||
Date: Fri, 19 Jun 2015 17:14:58 +0900
|
||||
Subject: [PATCH] Change fixed postconf to a variable for cross-compiling
|
||||
|
|
@ -12,7 +12,7 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
|
|||
2 files changed, 11 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 65e7911..40295be 100644
|
||||
index a37f89f..17cb64b 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -22,7 +22,7 @@ META = meta/main.cf.proto meta/master.cf.proto meta/postfix-files \
|
||||
|
|
@ -25,10 +25,10 @@ index 65e7911..40295be 100644
|
|||
default: update
|
||||
|
||||
diff --git a/postfix-install b/postfix-install
|
||||
index e498cd3..8049f43 100644
|
||||
index 563ee27..00d4651 100644
|
||||
--- a/postfix-install
|
||||
+++ b/postfix-install
|
||||
@@ -244,8 +244,8 @@ test -z "$non_interactive" -a ! -t 0 && {
|
||||
@@ -249,8 +249,8 @@ test -z "$non_interactive" -a ! -t 0 && {
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ index e498cd3..8049f43 100644
|
|||
exit 1
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ do
|
||||
@@ -271,7 +271,7 @@ do
|
||||
case "$junk" in
|
||||
*MAIL_VERSION*)
|
||||
case "$mail_version" in
|
||||
|
|
@ -48,7 +48,7 @@ index e498cd3..8049f43 100644
|
|||
esac
|
||||
val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1
|
||||
case "$val" in
|
||||
@@ -454,7 +454,7 @@ template files main.cf.proto and master.cf.proto."
|
||||
@@ -459,7 +459,7 @@ template files main.cf.proto and master.cf.proto."
|
||||
|
||||
: ${install_root=/}
|
||||
: ${tempdir=`pwd`}
|
||||
|
|
@ -57,16 +57,16 @@ index e498cd3..8049f43 100644
|
|||
|
||||
# Find out the location of installed configuration files.
|
||||
|
||||
@@ -520,7 +520,7 @@ test -f $CONFIG_DIRECTORY/main.cf && {
|
||||
@@ -525,7 +525,7 @@ test -f $CONFIG_DIRECTORY/main.cf && {
|
||||
case "$junk" in
|
||||
"") eval unset $name;;
|
||||
esac
|
||||
- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -hx $name\`} ||
|
||||
+ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -hx $name\`} ||
|
||||
- eval : \${$name=\`bin/postconf -qc $CONFIG_DIRECTORY -hx $name\`} ||
|
||||
+ eval : \${$name=\`$POSTCONF -qc $CONFIG_DIRECTORY -hx $name\`} ||
|
||||
exit 1
|
||||
done
|
||||
}
|
||||
@@ -533,7 +533,7 @@ do
|
||||
@@ -538,7 +538,7 @@ do
|
||||
case "$junk" in
|
||||
"") eval unset $name;;
|
||||
esac
|
||||
|
|
@ -75,7 +75,7 @@ index e498cd3..8049f43 100644
|
|||
done
|
||||
|
||||
# Override settings manually.
|
||||
@@ -670,6 +670,8 @@ README_DIRECTORY=$install_root$readme_directory
|
||||
@@ -675,6 +675,8 @@ README_DIRECTORY=$install_root$readme_directory
|
||||
SHLIB_DIRECTORY=$install_root$shlib_directory
|
||||
META_DIRECTORY=$install_root$meta_directory
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ index e498cd3..8049f43 100644
|
|||
# Avoid repeated tests for existence of these; default permissions suffice.
|
||||
|
||||
test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1
|
||||
@@ -841,7 +843,7 @@ IFS="$BACKUP_IFS"
|
||||
@@ -846,7 +848,7 @@ IFS="$BACKUP_IFS"
|
||||
# the wrong place when Postfix is being upgraded.
|
||||
|
||||
case "$mail_version" in
|
||||
|
|
@ -93,15 +93,15 @@ index e498cd3..8049f43 100644
|
|||
esac
|
||||
|
||||
# Undo MAIL_VERSION expansion at the end of a parameter value. If
|
||||
@@ -861,7 +863,7 @@ do
|
||||
@@ -866,7 +868,7 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
-bin/postconf -c $CONFIG_DIRECTORY -e \
|
||||
+"$POSTCONF" -c $CONFIG_DIRECTORY -e \
|
||||
-bin/postconf -qc $CONFIG_DIRECTORY -e \
|
||||
+"$POSTCONF" -qc $CONFIG_DIRECTORY -e \
|
||||
"daemon_directory = $daemon_directory" \
|
||||
"data_directory = $data_directory" \
|
||||
"command_directory = $command_directory" \
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
From 995bddd9563b1aecca2369f2f9c675f88bdc0053 Mon Sep 17 00:00:00 2001
|
||||
From a8ec63a71361ccd3f6d2959c4c87b7824282b291 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 26 Aug 2017 10:29:37 -0700
|
||||
Subject: [PATCH] makedefs: Use native compiler to build makedefs.test
|
||||
|
||||
Its a binary used during build
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
makedefs | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/makedefs b/makedefs
|
||||
index 78e0717..3299eba 100644
|
||||
index 28fb128..313b401 100644
|
||||
--- a/makedefs
|
||||
+++ b/makedefs
|
||||
@@ -551,7 +551,7 @@ int main(int argc, char **argv)
|
||||
@@ -622,7 +622,7 @@ int main(int argc, char **argv)
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
|
|
@ -25,7 +25,7 @@ index 78e0717..3299eba 100644
|
|||
rm -f makedefs.test makedefs.test.[co]
|
||||
fi;;
|
||||
esac
|
||||
@@ -787,7 +787,7 @@ int main(int argc, char **argv)
|
||||
@@ -865,7 +865,7 @@ int main(int argc, char **argv)
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
|
|
@ -34,7 +34,7 @@ index 78e0717..3299eba 100644
|
|||
./makedefs.test 2>/dev/null ||
|
||||
CCARGS="$CCARGS -DNO_SIGSETJMP"
|
||||
rm -f makedefs.test makedefs.test.[co]
|
||||
@@ -823,7 +823,7 @@ int main(int argc, char **argv)
|
||||
@@ -903,7 +903,7 @@ int main(int argc, char **argv)
|
||||
&error) != 14);
|
||||
}
|
||||
EOF
|
||||
|
|
@ -43,7 +43,7 @@ index 78e0717..3299eba 100644
|
|||
$icu_ldflags >/dev/null 2>&1
|
||||
if ./makedefs.test 2>/dev/null ; then
|
||||
CCARGS="$CCARGS $icu_cppflags"
|
||||
@@ -938,7 +938,7 @@ int main(void)
|
||||
@@ -1024,7 +1024,7 @@ int main(void)
|
||||
exit(ferror(stdout) ? 1 : 0);
|
||||
}
|
||||
EOF
|
||||
|
|
@ -52,7 +52,7 @@ index 78e0717..3299eba 100644
|
|||
./makedefs.test || exit 1
|
||||
rm -f makedefs.test makedefs.test.[co]
|
||||
}
|
||||
@@ -1094,7 +1094,7 @@ int main(void)
|
||||
@@ -1180,7 +1180,7 @@ int main(void)
|
||||
exit(ferror(stdout) ? 1 : 0);
|
||||
}
|
||||
EOF
|
||||
|
|
@ -62,5 +62,5 @@ index 78e0717..3299eba 100644
|
|||
rm -f makedefs.test makedefs.test.[co]
|
||||
eval ${parm_name}=\""\$parm_val"\"
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From afef4a9391e6bb1a6c3e73d370f240577ed8b0dd Mon Sep 17 00:00:00 2001
|
||||
From 404150f53bb49af987d7338a808f47fdbd50ba7f Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 16 Jan 2022 11:21:54 +0800
|
||||
Subject: [PATCH] Fix icu config
|
||||
|
|
@ -10,18 +10,18 @@ corrupted in any case its just adding -I/usr/include
|
|||
to the CCARGS which we loose nothing if its not
|
||||
entertained.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
makedefs | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/makedefs b/makedefs
|
||||
index 3299eba..2a76f20 100644
|
||||
index 313b401..e5db212 100644
|
||||
--- a/makedefs
|
||||
+++ b/makedefs
|
||||
@@ -826,7 +826,6 @@ EOF
|
||||
@@ -906,7 +906,6 @@ EOF
|
||||
${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \
|
||||
$icu_ldflags >/dev/null 2>&1
|
||||
if ./makedefs.test 2>/dev/null ; then
|
||||
|
|
@ -30,5 +30,5 @@ index 3299eba..2a76f20 100644
|
|||
else
|
||||
CCARGS="$CCARGS -DNO_EAI"
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 545d4a79b50caa5698622c0c1905ae154197a16f Mon Sep 17 00:00:00 2001
|
||||
From 25e7d1a9bc64f39666eb0e2b9b175773615e28d2 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 12 Oct 2018 12:38:02 +0800
|
||||
Subject: [PATCH] makedefs: add -lnsl and -lresolv to SYSLIBS by default
|
||||
|
|
@ -14,10 +14,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/makedefs b/makedefs
|
||||
index 2a76f20..9d5db9f 100644
|
||||
index e5db212..b00049b 100644
|
||||
--- a/makedefs
|
||||
+++ b/makedefs
|
||||
@@ -506,16 +506,7 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -577,16 +577,7 @@ case "$SYSTEM.$RELEASE" in
|
||||
SYSLIBS="$SYSLIBS -ldb"
|
||||
;;
|
||||
esac
|
||||
|
|
@ -35,7 +35,7 @@ index 2a76f20..9d5db9f 100644
|
|||
# Kernel 2.4 added IPv6
|
||||
case "$RELEASE" in
|
||||
2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";;
|
||||
@@ -583,16 +574,7 @@ EOF
|
||||
@@ -655,16 +646,7 @@ EOF
|
||||
SYSLIBS="$SYSLIBS -ldb"
|
||||
;;
|
||||
esac
|
||||
|
|
@ -54,5 +54,5 @@ index 2a76f20..9d5db9f 100644
|
|||
: ${SHLIB_SUFFIX=.so}
|
||||
: ${SHLIB_CFLAGS=-fPIC}
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
compatibility_level = 3.6
|
||||
compatibility_level = 3.10
|
||||
smtputf8_enable = no
|
||||
|
||||
# Configure your domain and accounts
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
|
|||
file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "d0205a11e36d57b640daaa17a7e7166b8abc730d93b1db7e92e32dfb24bbfde1"
|
||||
SRC_URI[sha256sum] = "75868db7a8ed252cd3a14c13a3ce383ddd42563160c02027d061202ee36799bf"
|
||||
|
||||
UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.8(\.\d+)+).tar.gz"
|
||||
UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.10(\.\d+)+).tar.gz"
|
||||
|
||||
S = "${WORKDIR}/postfix-${PV}"
|
||||
|
||||
|
|
@ -135,20 +135,25 @@ do_install () {
|
|||
rm -rf ${D}${localstatedir}/spool/postfix
|
||||
mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/${MLPREFIX}sample-main.cf
|
||||
install -m 755 ${S}/bin/smtp-sink ${D}/${sbindir}/
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 644 ${UNPACKDIR}/main.cf ${D}${sysconfdir}/postfix/main.cf
|
||||
sed -i 's#@LIBEXECDIR@#${libexecdir}#' ${D}${sysconfdir}/postfix/main.cf
|
||||
|
||||
install -m 755 ${UNPACKDIR}/check_hostname.sh ${D}${sbindir}/
|
||||
|
||||
install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
|
||||
install -m 644 ${UNPACKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system
|
||||
sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
|
||||
fi
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system
|
||||
sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service
|
||||
fi
|
||||
|
||||
install -m 0755 ${UNPACKDIR}/aliasesdb ${D}${libexecdir}/postfix
|
||||
|
||||
Loading…
Reference in New Issue
Block a user