diff options
author | torstenb <torstenb@FreeBSD.org> | 2000-02-14 04:17:43 +0800 |
---|---|---|
committer | torstenb <torstenb@FreeBSD.org> | 2000-02-14 04:17:43 +0800 |
commit | 0db11f98fcf4f96459961c17607ac25a2559fff9 (patch) | |
tree | eee42461fd014dca214d9984d60aa81928712fbb /mail/postfix28/pkg-install | |
parent | 94ec24110af30a02f33ea3766be4ed56b94c4d16 (diff) | |
download | freebsd-ports-gnome-0db11f98fcf4f96459961c17607ac25a2559fff9.tar.gz freebsd-ports-gnome-0db11f98fcf4f96459961c17607ac25a2559fff9.tar.zst freebsd-ports-gnome-0db11f98fcf4f96459961c17607ac25a2559fff9.zip |
- Upgrade to Postfix 19991231pl04
- Stylistic changes in Makefile
- Changes in packaging, esp. pkg/INSTALL
Diffstat (limited to 'mail/postfix28/pkg-install')
-rw-r--r-- | mail/postfix28/pkg-install | 77 |
1 files changed, 45 insertions, 32 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install index 7b4849639b05..4ed960fb5bdc 100644 --- a/mail/postfix28/pkg-install +++ b/mail/postfix28/pkg-install @@ -33,45 +33,58 @@ yesno() { done } -if pw groupshow "${group}" 2>/dev/null; then - echo "You already have a group \"${group}\", so I will use it." -else - echo "You need a group \"${group}\"." - if yesno "Would you like me to create it" y; then - pw groupadd ${group} -h - || exit - echo "Done." +if [ x"$2" = xPRE-INSTALL ]; then + if pw groupshow "${group}" 2>/dev/null; then + echo "You already have a group \"${group}\", so I will use it." else - echo "Please create it, and try again." - exit 1 + echo "You need a group \"${group}\"." + if yesno "Would you like me to create it" y; then + pw groupadd ${group} -h - || exit + echo "Done." + else + echo "Please create it, and try again." + exit 1 + fi fi -fi -if pw groupshow "${group2}" 2>/dev/null; then - echo "You already have a group \"${group2}\", so I will use it." -else - echo "You need a group \"${group2}\"." - if yesno "Would you like me to create it" y; then - pw groupadd ${group2} -h - || exit - echo "Done." + if pw groupshow "${group2}" 2>/dev/null; then + echo "You already have a group \"${group2}\", so I will use it." else - echo "Please create it, and try again." - exit 1 + echo "You need a group \"${group2}\"." + if yesno "Would you like me to create it" y; then + pw groupadd ${group2} -h - || exit + echo "Done." + else + echo "Please create it, and try again." + exit 1 + fi fi -fi -if pw user show "${user}" 2>/dev/null; then - echo "You already have a user \"${user}\", so I will use it." -else - echo "You need a user \"${user}\"." - if yesno "Would you like me to create it" y; then - pw useradd ${user} -g ${group} -h - -d /nonexistent \ - -s /nonexistent -c "Postfix Mail System" || exit - echo "Done." + if pw user show "${user}" 2>/dev/null; then + echo "You already have a user \"${user}\", so I will use it." else - echo "Please create it, and try again." - exit 1 + echo "You need a user \"${user}\"." + if yesno "Would you like me to create it" y; then + pw useradd ${user} -g ${group} -h - -d /nonexistent \ + -s /nonexistent -c "Postfix Mail System" || exit + echo "Done." + else + echo "Please create it, and try again." + exit 1 + fi fi + fi -chown root:maildrop ${PREFIX}/sbin/postdrop -chmod 2755 ${PREFIX}/sbin/postdrop +if [ x"$2" = xPOST-INSTALL ]; then + if [ ! -e ${PKG_PREFIX}/etc/postfix/main.cf ]; then + cp -p ${PKG_PREFIX}/etc/postfix/sample-main.cf \ + ${PKG_PREFIX}/etc/postfix/main.cf + fi + if [ ! -e ${PKG_PREFIX}/etc/postfix/master.cf ]; then + cp -p ${PKG_PREFIX}/etc/postfix/sample-master.cf \ + ${PKG_PREFIX}/etc/postfix/master.cf + fi + chown root:maildrop ${PKG_PREFIX}/sbin/postdrop + chmod 2755 ${PKG_PREFIX}/sbin/postdrop +fi |