diff options
author | Rod Whitby <rod@whitby.id.au> | 2008-04-29 01:45:00 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2008-04-29 01:45:00 +0000 |
commit | cdf928e1bd0916c9e8f5edee7cbb870c0e8cf33e (patch) | |
tree | 6d3bea4c9886dcd34903b57bbbbe2cf6cbea7e88 /packages/postfix | |
parent | 7c1feb9c1179d94ae52b4ad61d27fd0c8ee74ca2 (diff) |
postfix: Fix the update-alternatives call for sendmail (both the syntax and the ordering were wrong - it was ending up in the root directory and newaliases was being called before it was set up.
Diffstat (limited to 'packages/postfix')
-rw-r--r-- | packages/postfix/postfix_2.0.20.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb index 280f073333..44e1515f1c 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 = "virtual/db libpcre postfix-native" LICENSE = "IPL" -PR = "r11" +PR = "r12" SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \ file://${FILESDIR}/makedefs.patch;patch=1 \ @@ -53,6 +53,7 @@ do_install () { } pkg_postinst () { + update-alternatives --install ${sbindir}/sendmail sendmail sendmail.${PN} 40 grep postfix /etc/group || addgroup postfix grep postdrop /etc/group || addgroup postdrop grep vmail /etc/group || addgroup vmail @@ -69,11 +70,10 @@ pkg_postinst () { /etc/init.d/populate-volatile.sh update touch /etc/aliases newaliases - update-alternatives --install sendmail sendmail ${sbindir}/sendmail.${PN} 40 } pkg_postrm () { - update-alternatives --remove sendmail ${sbindir}/sendmail + update-alternatives --remove sendmail sendmail.${PN} } # Exclude .debug directories from the main package |