aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix28/pkg-install
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2005-09-12 05:42:42 +0800
committervsevolod <vsevolod@FreeBSD.org>2005-09-12 05:42:42 +0800
commitf00c3aa216e85a76505e1c8baa311575d0f0514a (patch)
tree5634834a26d2c2bc76836909515844a29dda5fb1 /mail/postfix28/pkg-install
parentef7f1f069c72aa30afc6b48cb9f0a002d82c9f61 (diff)
downloadfreebsd-ports-gnome-f00c3aa216e85a76505e1c8baa311575d0f0514a.tar.gz
freebsd-ports-gnome-f00c3aa216e85a76505e1c8baa311575d0f0514a.tar.zst
freebsd-ports-gnome-f00c3aa216e85a76505e1c8baa311575d0f0514a.zip
Update PORTREVISION because libspf2 is moved
Update LIB_DEPENDS to mail/libspf2-10 Use builtin echo Use REINPLACE instead then scripts/configure and scripts/fix-files-list PR: 85000 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> Approved by: Vivek Khera (maintainer)
Diffstat (limited to 'mail/postfix28/pkg-install')
-rw-r--r--mail/postfix28/pkg-install54
1 files changed, 27 insertions, 27 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install
index e912b1a051e2..fe0c6c6f0243 100644
--- a/mail/postfix28/pkg-install
+++ b/mail/postfix28/pkg-install
@@ -34,7 +34,7 @@ ask() {
if [ x${answer} = x ]; then
answer=${default}
fi
- /bin/echo ${answer}
+ echo ${answer}
}
yesno() {
@@ -48,7 +48,7 @@ yesno() {
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
- /bin/echo "Please answer yes or no."
+ echo "Please answer yes or no."
done
}
@@ -61,51 +61,51 @@ if [ x"$2" = xPRE-INSTALL ]; then
GID2=126
if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
- /bin/echo "You already have a group \"${GROUP}\", so I will use it."
+ echo "You already have a group \"${GROUP}\", so I will use it."
else
if /usr/sbin/pw groupadd ${GROUP} -g ${GID}
then
- /bin/echo "Added group \"${GROUP}\"."
+ echo "Added group \"${GROUP}\"."
else
- /bin/echo "Adding group \"${GROUP}\" failed..."
- /bin/echo "Please create it, and try again."
+ echo "Adding group \"${GROUP}\" failed..."
+ echo "Please create it, and try again."
exit 1
fi
fi
if /usr/sbin/pw groupshow "${GROUP2}" 2>/dev/null; then
- /bin/echo "You already have a group \"${GROUP2}\", so I will use it."
+ echo "You already have a group \"${GROUP2}\", so I will use it."
else
if /usr/sbin/pw groupadd ${GROUP2} -g ${GID2}; then
- /bin/echo "Added group \"${GROUP2}\"."
+ echo "Added group \"${GROUP2}\"."
else
- /bin/echo "Adding group \"${GROUP2}\" failed..."
- /bin/echo "Please create it, and try again."
+ echo "Adding group \"${GROUP2}\" failed..."
+ echo "Please create it, and try again."
exit 1
fi
fi
if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
- /bin/echo "You already have a user \"${USER}\", so I will use it."
+ echo "You already have a user \"${USER}\", so I will use it."
else
if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -d /var/spool/postfix -s ${NOLOGIN} -c "Postfix Mail System"; then
- /bin/echo "Added user \"${USER}\"."
+ echo "Added user \"${USER}\"."
else
- /bin/echo "Adding user \"${USER}\" failed..."
- /bin/echo "Please create it, and try again."
+ echo "Adding user \"${USER}\" failed..."
+ echo "Please create it, and try again."
exit 1
fi
fi
if /usr/sbin/pw show group mail | grep -q "${USER}" 2>/dev/null; then
- /bin/echo "You already have user \"${USER}\" in group \"mail\", so I will use it."
+ echo "You already have user \"${USER}\" in group \"mail\", so I will use it."
else
- /bin/echo "You need user \"${USER}\" added to group \"mail\"."
+ echo "You need user \"${USER}\" added to group \"mail\"."
if yesno "Would you like me to add it" y; then
/usr/sbin/pw groupmod mail -m ${USER} || exit
- /bin/echo "Done."
+ echo "Done."
else
- /bin/echo "Please create it, and try again."
+ echo "Please create it, and try again."
exit 1
fi
fi
@@ -161,21 +161,21 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
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
- /bin/echo "#" > /etc/mail/mailer.conf
- /bin/echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
- /bin/echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- /bin/echo "#" >> /etc/mail/mailer.conf
- /bin/echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- /bin/echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- /bin/echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
- /bin/echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
+ 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
- /bin/echo "Done."
+ echo "Done."
fi
fi
fi