Skip to contentSkip to conversation

postfix: some modifies

PATCH In review Bian Naimeng 2 participants 6 messages Feb 16, 2015 – Feb 24, 2015

lore
Share & tools
lore
#0 lore raw

v2 cover postfix: some modifies

Bian Naimeng (2):
postfix: don't hard-code PATH in service file
postfix: fix bug of main.cf_2.0

 meta-networking/recipes-daemons/postfix/files/main.cf_2.0     |  2 +-
 meta-networking/recipes-daemons/postfix/files/postfix.service | 10 +++++-----
 meta-networking/recipes-daemons/postfix/postfix.inc           |  4 +++-
 3 files changed, 9 insertions(+), 7 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/2 postfix: don't hard-code PATH in service file

---
 meta-networking/recipes-daemons/postfix/files/postfix.service | 10 +++++-----
 meta-networking/recipes-daemons/postfix/postfix.inc           |  4 +++-
 2 files changed, 8 insertions(+), 6 deletions(-)
meta-networking/recipes-daemons/postfix/files/postfix.service +5 -5
index c781038..02ea640 100644
@@ -5,11 +5,11 @@ Conflicts=sendmail.service exim.service
 
 [Service]
 Type=forking
-PIDFile=/var/spool/postfix/pid/master.pid
-ExecStartPre=-/usr/libexec/postfix/aliasesdb
-ExecStart=/usr/sbin/postfix start
-ExecReload=/usr/sbin/postfix reload
-ExecStop=/usr/sbin/postfix stop
+PIDFile=@LOCALSTATEDIR@/spool/postfix/pid/master.pid
+ExecStartPre=-@LIBEXECDIR@/aliasesdb
+ExecStart=@SBINDIR@/postfix start
+ExecReload=@SBINDIR@/postfix reload
+ExecStop=@SBINDIR@/postfix stop
 
 [Install]
 WantedBy=multi-user.target
meta-networking/recipes-daemons/postfix/postfix.inc +3 -1
index e73f2f0..a6909e9 100644
@@ -147,7 +147,9 @@ do_install () {
 
     install -d ${D}${systemd_unitdir}/system
     install -m 0644 ${WORKDIR}/postfix.service ${D}${systemd_unitdir}/system
-    sed -i 's,/usr/sbin/,${sbindir}/,g' ${D}${systemd_unitdir}/system/postfix.service
+    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
 
     install -m 0755 ${WORKDIR}/aliasesdb ${D}${libexecdir}
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 2/2 postfix: fix bug of main.cf_2.0

In reply to Bian Naimeng

${exec_prefix}/libexec/${PN} => ${libexecdir}

---
 meta-networking/recipes-daemons/postfix/files/main.cf_2.0 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/postfix/files/main.cf_2.0 +1 -1
index bb31451..9e1077f 100644
@@ -30,7 +30,7 @@ queue_directory = /var/spool/postfix
 mail_spool_directory = /var/spool/mail
 readme_directory = no
 command_directory = /usr/sbin
-daemon_directory = /usr/libexec/postfix
+daemon_directory = /usr/lib/postfix
 mail_owner = postfix
 setgid_group = postdrop
 unknown_local_recipient_reject_code = 450
Signature · 1 line
1.9.1
#3 lore raw

Re: [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0

Hi Bian,

I merged the other postfix change, but this one I'm less sure about. Is this actually incorrect? The standard place to install postfix is in /usr/libexec and that seems to be where we install it as well.

-J.

Quoted 23 lines · [[oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0] On…

${exec_prefix}/libexec/${PN} => ${libexecdir}

---
 meta-networking/recipes-daemons/postfix/files/main.cf_2.0 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/postfix/files/main.cf_2.0 +1 -1
index bb31451..9e1077f 100644
@@ -30,7 +30,7 @@ queue_directory = /var/spool/postfix
 mail_spool_directory = /var/spool/mail
 readme_directory = no
 command_directory = /usr/sbin
-daemon_directory = /usr/libexec/postfix
+daemon_directory = /usr/lib/postfix
 mail_owner = postfix
 setgid_group = postdrop
 unknown_local_recipient_reject_code = 450
Signature · 1 line
1.9.1
Signature · 2 lines
-Joe MacDonald.
:wq
#4 lore raw

Re: [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0

Quoted 5 lines · [Re: [oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0] On…

Hi Bian,

I merged the other postfix change, but this one I'm less sure about. Is this actually incorrect? The standard place to install postfix is in /usr/libexec and that seems to be where we install it as well.

Okay, I've just confirmed that this is the current location after all, I'll merge this as well. Thanks.

-J.

Quoted 31 lines

-J.

Quoted 23 lines · [[oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0] On…

${exec_prefix}/libexec/${PN} => ${libexecdir}

---
 meta-networking/recipes-daemons/postfix/files/main.cf_2.0 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/postfix/files/main.cf_2.0 +1 -1
index bb31451..9e1077f 100644
@@ -30,7 +30,7 @@ queue_directory = /var/spool/postfix
 mail_spool_directory = /var/spool/mail
 readme_directory = no
 command_directory = /usr/sbin
-daemon_directory = /usr/libexec/postfix
+daemon_directory = /usr/lib/postfix
 mail_owner = postfix
 setgid_group = postdrop
 unknown_local_recipient_reject_code = 450
Signature · 1 line
1.9.1
Signature · 2 lines
-Joe MacDonald.
:wq
Signature · 2 lines
-Joe MacDonald.
:wq
#5 lore raw

Re: [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0

Hi Joe,

Sorry for my late reply (The last week was Chinese New Year ^_^). And thanks for your confirmation.

Thanks
Bian

Quoted 60 lines

-----Original Message-----
From: Joe MacDonald [mailto:[email protected]]
Sent: Tuesday, February 24, 2015 3:30 AM
Cc: [email protected]
Subject: Re: [oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0

[Re: [oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0] On

Quoted 5 lines · 15.02.23 (Mon 14:13) Joe MacDonald wrote:

Hi Bian,

I merged the other postfix change, but this one I'm less sure about. Is this actually incorrect? The standard place to install postfix is in /usr/libexec and that seems to be where we install it as well.

Okay, I've just confirmed that this is the current location after all, I'll merge this as well. Thanks.

-J.

Quoted 4 lines

-J.

[[oe] [meta-networking][PATCH v2 2/2] postfix: fix bug of main.cf_2.0] On

Quoted 20 lines · 15.02.16 (Mon 15:52) Bian Naimeng wrote:
Quoted 20 lines

${exec_prefix}/libexec/${PN} => ${libexecdir}

---
 meta-networking/recipes-daemons/postfix/files/main.cf_2.0 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/postfix/files/main.cf_2.0 b/meta-networking/recipes-daemons/postfix/files/main.cf_2.0 index bb31451..9e1077f 100644

meta-networking/recipes-daemons/postfix/files/main.cf_2.0 +0 -0
@@ -30,7 +30,7 @@ queue_directory = /var/spool/postfix

mail_spool_directory = /var/spool/mail readme_directory = no command_directory = /usr/sbin -daemon_directory = /usr/libexec/postfix
+daemon_directory = /usr/lib/postfix
mail_owner = postfix

Quoted 8 lines
Quoted 5 lines

setgid_group = postdrop
unknown_local_recipient_reject_code = 450
--
1.9.1

--
-Joe MacDonald.
:wq

--
-Joe MacDonald.
:wq