From cdf928e1bd0916c9e8f5edee7cbb870c0e8cf33e Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 29 Apr 2008 01:45:00 +0000 Subject: 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. --- packages/postfix/postfix_2.0.20.bb | 6 +++--- 1 file 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 -- cgit v1.2.3