postfix: add new recipe
cover postfix: add new recipe
From: Jackie Huang <[email protected]>
We ported postfix from openembedded a year ago, and updated it to 2.9.5, now we are updating it to the latest stable release 2.11.1, and I'm sending here to see if oe-core take it, if not, I will send it to meta-oe.
--
The following changes since commit a5776ae532d6af1e880ab1a712dc768c900f88db:
sanity.bbclass: Update minimum git version to 1.7.8 (2014-07-08 11:19:50 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib jhuang0/uprev-postfix_140710-1
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jhuang0/uprev-postfix_140710-1
Jackie Huang (1):
postfix: add new recipe
meta/recipes-extended/postfix/files/install.patch | 66 ++++++ .../postfix/files/internal_recipient | 1 + meta/recipes-extended/postfix/files/main.cf_2.0 | 102 +++++++++ meta/recipes-extended/postfix/files/makedefs.patch | 116 ++++++++++ meta/recipes-extended/postfix/files/postfix | 85 ++++++++ .../postfix/files/postfix-add-db6-support.patch | 26 +++ .../recipes-extended/postfix/files/postfix.service | 14 ++ meta/recipes-extended/postfix/postfix.inc | 230 ++++++++++++++++++++ meta/recipes-extended/postfix/postfix_2.11.1.bb | 6 + 9 files changed, 646 insertions(+) create mode 100644 meta/recipes-extended/postfix/files/install.patch create mode 100644 meta/recipes-extended/postfix/files/internal_recipient create mode 100644 meta/recipes-extended/postfix/files/main.cf_2.0 create mode 100644 meta/recipes-extended/postfix/files/makedefs.patch create mode 100755 meta/recipes-extended/postfix/files/postfix create mode 100644 meta/recipes-extended/postfix/files/postfix-add-db6-support.patch create mode 100644 meta/recipes-extended/postfix/files/postfix.service create mode 100644 meta/recipes-extended/postfix/postfix.inc create mode 100644 meta/recipes-extended/postfix/postfix_2.11.1.bb
Signature · 1 line
1.7.9.5
PATCH 1/1 postfix: add new recipe
From: Jackie Huang <[email protected]>
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
--- meta/recipes-extended/postfix/files/install.patch | 66 ++++++ .../postfix/files/internal_recipient | 1 + meta/recipes-extended/postfix/files/main.cf_2.0 | 102 +++++++++ meta/recipes-extended/postfix/files/makedefs.patch | 116 ++++++++++ meta/recipes-extended/postfix/files/postfix | 85 ++++++++ .../postfix/files/postfix-add-db6-support.patch | 26 +++ .../recipes-extended/postfix/files/postfix.service | 14 ++ meta/recipes-extended/postfix/postfix.inc | 230 ++++++++++++++++++++ meta/recipes-extended/postfix/postfix_2.11.1.bb | 6 + 9 files changed, 646 insertions(+) create mode 100644 meta/recipes-extended/postfix/files/install.patch create mode 100644 meta/recipes-extended/postfix/files/internal_recipient create mode 100644 meta/recipes-extended/postfix/files/main.cf_2.0 create mode 100644 meta/recipes-extended/postfix/files/makedefs.patch create mode 100755 meta/recipes-extended/postfix/files/postfix create mode 100644 meta/recipes-extended/postfix/files/postfix-add-db6-support.patch create mode 100644 meta/recipes-extended/postfix/files/postfix.service create mode 100644 meta/recipes-extended/postfix/postfix.inc create mode 100644 meta/recipes-extended/postfix/postfix_2.11.1.bb
meta/recipes-extended/postfix/files/install.patch new file +66 -0
@@ -0,0 +1,66 @@ +Change fixed postconf to a variable for cross-compiling + +Upstreamstatus: Inappropriate [embedded specific] + +Signed-off-by: Yao Zhao <[email protected]> +--- +diff --git a/postfix-install b/postfix-install +index 49225ac..2e4c292 100644 +--- a/postfix-install ++++ b/postfix-install +@@ -201,8 +201,8 @@ test -z "$non_interactive" -a ! -t 0 && { + exit 1 + } + +-test -x bin/postconf || { +- echo $0: Error: no bin/postconf file. Did you forget to run \"make\"? 1>&2 ++test -x "$POSTCONF" || { ++ echo $0: Error: no $POSTCONF file. Did you forget to run \"make\"? 1>&2 + exit 1 + } + +@@ -363,7 +363,7 @@ HTML files. Specify \"no\" if you do not want to install these files." + + : ${install_root=/} + : ${tempdir=`pwd`} +-: ${config_directory=`bin/postconf -c conf -h -d config_directory`} ++: ${config_directory=`$POSTCONF -c conf -h -d config_directory`} + + # Find out the location of installed configuration files. + +@@ -433,7 +433,7 @@ test -f $CONFIG_DIRECTORY/main.cf && { + case "$junk" in + "") eval unset $name;; + esac +- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -h $name\`} || ++ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -h $name\`} || + exit 1 + done + } +@@ -446,7 +446,7 @@ do + case "$junk" in + "") eval unset $name;; + esac +- eval : \${$name=\`bin/postconf -c conf -d -h $name\`} || exit 1 ++ eval : \${$name=\`$POSTCONF -c conf -d -h $name\`} || exit 1 + done + + # Override settings manually. +@@ -565,6 +565,8 @@ HTML_DIRECTORY=$install_root$html_directory + MANPAGE_DIRECTORY=$install_root$manpage_directory + README_DIRECTORY=$install_root$readme_directory + ++test "x$POSTCONF" != "x" || POSTCONF="bin/postconf" ++ + # Avoid repeated tests for existence of these; default permissions suffice. + + test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1 +@@ -724,7 +726,7 @@ do + # Postfix releases, and software should not suddenly be installed in + # the wrong place when Postfix is being upgraded. + +-bin/postconf -c $CONFIG_DIRECTORY -e \ ++"$POSTCONF" -c $CONFIG_DIRECTORY -e \ + "daemon_directory = $daemon_directory" \ + "data_directory = $data_directory" \ + "command_directory = $command_directory" \
meta/recipes-extended/postfix/files/internal_recipient new file +1 -0
@@ -0,0 +1 @@ +root@ permit_mynetworks,reject
meta/recipes-extended/postfix/files/main.cf_2.0 new file +102 -0
102 lines not on this page · raw message
meta/recipes-extended/postfix/files/makedefs.patch new file +116 -0
116 lines not on this page · raw message
meta/recipes-extended/postfix/files/postfix new file +85 -0
85 lines not on this page · raw message
meta/recipes-extended/postfix/files/postfix-add-db6-support.patch new file +26 -0
@@ -0,0 +1,26 @@ +Subject: [PATCH] add db6 support db6 + +Upstream-Status: Backport + +Signed-off-by: Jackie Huang <[email protected]> +--- + src/util/dict_db.c | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/src/util/dict_db.c b/src/util/dict_db.c +index 93ee480..f1ae66b 100644 +--- a/src/util/dict_db.c ++++ b/src/util/dict_db.c +@@ -693,7 +693,8 @@ static DICT *dict_db_open(const char *class, const char *path, int open_flags, + msg_fatal("set DB cache size %d: %m", dict_db_cache_size); + if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0) + msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM); +-#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) ++#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \ ++ (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) + if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0) + FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, + "open database %s: %m", db_path)); +-- +1.7.1 +
meta/recipes-extended/postfix/files/postfix.service new file +14 -0
@@ -0,0 +1,14 @@ +[Unit] +Description=Postfix Mail Transport Agent +After=syslog.target network.target +Conflicts=sendmail.service exim.service + +[Service] +Type=forking +PIDFile=/var/spool/postfix/pid/master.pid +ExecStart=/usr/sbin/postfix start +ExecReload=/usr/sbin/postfix reload +ExecStop=/usr/sbin/postfix stop + +[Install] +WantedBy=multi-user.target
meta/recipes-extended/postfix/postfix.inc new file +230 -0
230 lines not on this page · raw message
meta/recipes-extended/postfix/postfix_2.11.1.bb new file +6 -0
@@ -0,0 +1,6 @@ +require postfix.inc + +SRC_URI += "file://postfix-add-db6-support.patch" + +SRC_URI[md5sum] = "56ac1f1a79737c4ac1e24535a122a4a6" +SRC_URI[sha256sum] = "487f98a73b95a5799409caf21ec065efea91c1dcdfb84c038a0e3a265d6489e2"
--
1.7.9.5
Quoted 8 lines · On Thu, Jul 10, 2014 at 09:57:56PM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
Why is it sent to oe-core and meta-oe at the same time?
Quoted 12 lines · Martin Jansa
Quoted 8 lines · On Thu, Jul 10, 2014 at 09:57:56PM -0400, [email protected] wrote:
From: Jackie Huang <[email protected]>
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
Why is it sent to oe-core and meta-oe at the same time?
I'm sorry, I should have finished reading whole backlog before not-sending this.
I agree with other reviewers it's better in meta-oe (maybe meta-networking?)
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Meta-networking seems the obvious home to me.
Ross
Quoted 24 lines · Martin Jansa
Quoted 1 line · Martin Jansa
On Thu, Jul 10, 2014 at 09:57:56PM -0400, [email protected]
Quoted 11 lines · <javascript:;> wrote:
Quoted 8 lines
From: Jackie Huang <[email protected] <javascript:;>>
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
Why is it sent to oe-core and meta-oe at the same time?
I'm sorry, I should have finished reading whole backlog before not-sending this.
I agree with other reviewers it's better in meta-oe (maybe meta-networking?)
--
Martin 'JaMa' Jansa jabber: [email protected] <javascript:;>
Ok, meta-networking is fine to me, I will resend although I had already resent to meta-oe.
Thanks,
Jackie
From: Burton, Ross [mailto:[email protected]]
Sent: Friday, July 11, 2014 7:46 PM
To: Martin Jansa
Cc: Huang, Jie (Jackie); [email protected]
Subject: Re: [OE-core] [PATCH 0/1] postfix: add new recipe
Meta-networking seems the obvious home to me.
Ross
On Friday, 11 July 2014, Martin Jansa <[email protected]<mailto:[email protected]>> wrote:
Quoted 12 lines · Martin Jansa
Quoted 8 lines · On Thu, Jul 10, 2014 at 09:57:56PM -0400…
From: Jackie Huang <[email protected]<javascript:;>>
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.
Why is it sent to oe-core and meta-oe at the same time?
I'm sorry, I should have finished reading whole backlog before not-sending this.
I agree with other reviewers it's better in meta-oe (maybe meta-networking?)
--
Martin 'JaMa' Jansa jabber: [email protected]<javascript:;>
Quoted 3 lines · * [email protected] <[email protected]> [140711 03:58]:
We ported postfix from openembedded a year ago, and updated it to 2.9.5, now we are updating it to the latest stable release 2.11.1, and I'm sending here to see if oe-core take it, if not, I will send it to meta-oe.
I think meta-oe is a better place for postfix. So, please resend it to meta-oe.
Cheers,
Anders
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-core- [email protected]] On Behalf Of Anders Darander
Sent: Friday, July 11, 2014 3:34 PM
To: [email protected]
Subject: Re: [OE-core] [PATCH 0/1] postfix: add new recipe
Quoted 6 lines
Quoted 3 lines · * [email protected] <[email protected]> [140711 03:58]:
We ported postfix from openembedded a year ago, and updated it to 2.9.5, now we are updating it to the latest stable release 2.11.1, and I'm sending here to see if oe-core take it, if not, I will send it to meta-oe.
I think meta-oe is a better place for postfix. So, please resend it to meta-oe.
Ok, I will resend to meta-oe.
Thanks,
Jackie
Quoted 12 lines
Cheers,
Anders--
Anders Darander
ChargeStorm AB / eStorm AB
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 2 lines · Anders Darander
I think meta-oe is a better place for postfix. So, please resend it to meta-oe.
Agreed.
Ross