aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix22/pkg-install
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-10-04 07:34:16 +0800
committeredwin <edwin@FreeBSD.org>2007-10-04 07:34:16 +0800
commit82f314a8b7f00aa9ecd7cc15a7d9569061e3626c (patch)
treee8a2a2f3abe23cdfd4cafcd612f7bbe3c0f7a02a /mail/postfix22/pkg-install
parentae66d23574addf17e7d37590206d536f58ef52b9 (diff)
downloadfreebsd-ports-gnome-82f314a8b7f00aa9ecd7cc15a7d9569061e3626c.tar.gz
freebsd-ports-gnome-82f314a8b7f00aa9ecd7cc15a7d9569061e3626c.tar.zst
freebsd-ports-gnome-82f314a8b7f00aa9ecd7cc15a7d9569061e3626c.zip
Remove support for OSVERSION < 5
Diffstat (limited to 'mail/postfix22/pkg-install')
-rw-r--r--mail/postfix22/pkg-install34
1 files changed, 10 insertions, 24 deletions
diff --git a/mail/postfix22/pkg-install b/mail/postfix22/pkg-install
index fe0c6c6f0243..30b1a214b64e 100644
--- a/mail/postfix22/pkg-install
+++ b/mail/postfix22/pkg-install
@@ -153,29 +153,15 @@ replace() {
}
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
- if [ -x /sbin/sysctl ]; then
- OSVERSION=`/sbin/sysctl -n kern.osreldate`
- else
- OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
- fi
- if [ ${OSVERSION} -ge 400014 ]; then
- if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
- mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
- echo "#" > /etc/mail/mailer.conf
- echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
- echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- echo "#" >> /etc/mail/mailer.conf
- echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- fi
- else
- if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
- replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
- replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
- replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
- echo "Done."
- fi
+ if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
+ mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
+ echo "#" > /etc/mail/mailer.conf
+ echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
+ echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
+ echo "#" >> /etc/mail/mailer.conf
+ echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
+ echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
+ echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
+ echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
fi
fi