diff options
author | Sahil Tandon <sahil@FreeBSD.org> | 2011-07-26 01:49:28 +0000 |
---|---|---|
committer | Sahil Tandon <sahil@FreeBSD.org> | 2011-07-26 01:49:28 +0000 |
commit | d56e5eb7da85c86f483901245e78f7afa333f815 (patch) | |
tree | 400bb89a5f2aa3a1482b01f8f1fa5c295478a7a6 /mail/postfix28/files | |
parent | 0d6bf530f37cf6339c616d2c672ac4110571bbfd (diff) |
Notes
Diffstat (limited to 'mail/postfix28/files')
-rw-r--r-- | mail/postfix28/files/pkg-install.in | 72 |
1 files changed, 1 insertions, 71 deletions
diff --git a/mail/postfix28/files/pkg-install.in b/mail/postfix28/files/pkg-install.in index 6e289a3bb35e..b21747697e6a 100644 --- a/mail/postfix28/files/pkg-install.in +++ b/mail/postfix28/files/pkg-install.in @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/files/pkg-install.in,v 1.4 2010-11-27 06:48:50 sahil Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/files/pkg-install.in,v 1.5 2011-07-26 01:49:28 sahil Exp $ # # If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it @@ -56,63 +56,6 @@ yesno() { done } -if [ "$2" = "PRE-INSTALL" ]; then - USER=postfix - UID=125 - GROUP=postfix - GID=125 - GROUP2=maildrop - GID2=126 - - if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if /usr/sbin/pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - 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 - echo "You already have a group \"${GROUP2}\", so I will use it." - else - if /usr/sbin/pw groupadd ${GROUP2} -g ${GID2}; then - echo "Added group \"${GROUP2}\"." - else - 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 - 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 - echo "Added user \"${USER}\"." - else - 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 - echo "You already have user \"${USER}\" in group \"mail\", so I will use it." - else - 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 - echo "Done." - else - echo "Please create it, and try again." - exit 1 - fi - fi -fi if [ "$2" = "POST-INSTALL" ]; then SAMPLES="main.cf master.cf" @@ -130,19 +73,6 @@ if [ "$2" = "POST-INSTALL" ]; then upgrade-package fi -replace() { - local orig repl - - orig=$1 - repl=$2 - if [ -e ${orig} ]; then - /bin/mv -f ${orig} ${orig}.OFF - /bin/chmod 0 ${orig}.OFF - fi - if [ -e ${repl} ]; then - /bin/ln -s ${repl} ${orig} - fi -} if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" ]; then egrep -q "^sendmail.*${PREFIX}/sbin/sendmail" ${MC} && \ |