diff options
Diffstat (limited to 'packages/postfix/postfix_2.0.20.bb')
-rw-r--r-- | packages/postfix/postfix_2.0.20.bb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb index 3344e05115..f5c22c1139 100644 --- a/packages/postfix/postfix_2.0.20.bb +++ b/packages/postfix/postfix_2.0.20.bb @@ -1,7 +1,7 @@ SECTION = "console/network" DEPENDS = "db3 pcre postfix-native" LICENSE = "IPL" -PR = "r1" +PR = "r2" SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \ file://${FILESDIR}/makedefs.patch;patch=1 \ @@ -34,7 +34,7 @@ do_install () { sh ./postfix-install 'install_root=${D}' -non-interactive rm -rf ${D}/var/spool/postfix mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/sample-main.cf - install -m 644 ${WORKDIR}/main.cf_2.0 ${D}${sysconfdir}/postfix/main.cf + install -m 755 ${WORKDIR}/main.cf_2.0 ${D}/var/tmp/main_cf.sh install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_postfix install -m 755 ${WORKDIR}/postfix ${D}${sysconfdir}/init.d/postfix } @@ -45,6 +45,14 @@ pkg_postinst () { grep vmail /etc/group || addgroup vmail grep postfix /etc/passwd || adduser --disabled-password --home=/var/spool/postfix --ingroup postfix postfix grep vmail /etc/passwd || adduser --disabled-password --home=/var/spool/vmail --ingroup vmail vmail + chgrp postdrop /usr/sbin/postqueue + chgrp postdrop /usr/sbin/postdrop + chmod g+s /usr/sbin/postqueue + chmod g+s /usr/sbin/postdrop + /var/tmp/main_cf.sh >/etc/postfix/main.cf + chmod 644 /etc/postfix/main.cf /etc/init.d/populate-volatile.sh + touch /etc/aliases + newaliases } |