aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-current/pkg-install
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-08-31 01:30:41 +0800
committergarga <garga@FreeBSD.org>2005-08-31 01:30:41 +0800
commit4163da3416788f31a1c8d28c181087facd6d9302 (patch)
tree580bf53e094f1189eba8ecd52c8c92135ea18cda /mail/postfix-current/pkg-install
parent2e793b7b6eba5f84f1dc8841baff5efd31ce5b39 (diff)
downloadfreebsd-ports-gnome-4163da3416788f31a1c8d28c181087facd6d9302.tar.gz
freebsd-ports-gnome-4163da3416788f31a1c8d28c181087facd6d9302.tar.zst
freebsd-ports-gnome-4163da3416788f31a1c8d28c181087facd6d9302.zip
- Update to 2.3-20050829
- Add CDB maps (ports/84382) - Use builtin echo - Use REINPLACE instead then scripts/configure and scripts/fix-files-list PR: ports/85489 Submitted by: maintainer
Diffstat (limited to 'mail/postfix-current/pkg-install')
-rw-r--r--mail/postfix-current/pkg-install54
1 files changed, 27 insertions, 27 deletions
diff --git a/mail/postfix-current/pkg-install b/mail/postfix-current/pkg-install
index 73fca798b090..71e11cbeeeaf 100644
--- a/mail/postfix-current/pkg-install
+++ b/mail/postfix-current/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,50 +61,50 @@ 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
@@ -160,21 +160,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
/bin/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