diff options
-rw-r--r-- | mail/postfix/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix1/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix20/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix21/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix22/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix23/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix24/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix25/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix26/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix27/pkg-install | 14 | ||||
-rw-r--r-- | mail/postfix28/pkg-install | 14 |
11 files changed, 143 insertions, 11 deletions
diff --git a/mail/postfix/pkg-install b/mail/postfix/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix/pkg-install +++ b/mail/postfix/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix1/pkg-install b/mail/postfix1/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix1/pkg-install +++ b/mail/postfix1/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix20/pkg-install b/mail/postfix20/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix20/pkg-install +++ b/mail/postfix20/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix21/pkg-install b/mail/postfix21/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix21/pkg-install +++ b/mail/postfix21/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix22/pkg-install b/mail/postfix22/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix22/pkg-install +++ b/mail/postfix22/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix23/pkg-install b/mail/postfix23/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix23/pkg-install +++ b/mail/postfix23/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix24/pkg-install b/mail/postfix24/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix24/pkg-install +++ b/mail/postfix24/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix25/pkg-install b/mail/postfix25/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix25/pkg-install +++ b/mail/postfix25/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix26/pkg-install b/mail/postfix26/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix26/pkg-install +++ b/mail/postfix26/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix27/pkg-install b/mail/postfix27/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix27/pkg-install +++ b/mail/postfix27/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install index 1ef1fb5b2089..8cf5a9a5aefe 100644 --- a/mail/postfix28/pkg-install +++ b/mail/postfix28/pkg-install @@ -3,8 +3,19 @@ # $FreeBSD$ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then 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" n; 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 |