diff options
author | pat <pat@FreeBSD.org> | 2002-01-30 03:56:09 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-01-30 03:56:09 +0000 |
commit | e5e8bcd5441299fc507a6b0de89aebcf1d635553 (patch) | |
tree | eca6ab800a13404586bfec163116f69b01bc91da /mail/courier/pkg-install | |
parent | 60dd2f1197eb00147b684005b6e68eadc0b8524d (diff) | |
download | FreeBSD-ports-e5e8bcd5441299fc507a6b0de89aebcf1d635553.zip FreeBSD-ports-e5e8bcd5441299fc507a6b0de89aebcf1d635553.tar.gz |
Update to 0.37.2.20020125
PR: 34398
Submitted by: maintainer
Diffstat (limited to 'mail/courier/pkg-install')
-rw-r--r-- | mail/courier/pkg-install | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/mail/courier/pkg-install b/mail/courier/pkg-install index 0e162f4..3696864 100644 --- a/mail/courier/pkg-install +++ b/mail/courier/pkg-install @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/mail/courier/Attic/pkg-install,v 1.1 2002-01-15 06:17:26 dwhite Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/courier/Attic/pkg-install,v 1.2 2002-01-30 03:56:07 pat Exp $ # PKG_PREFIX=${PKG_PREFIX:=/usr/local} @@ -34,6 +34,20 @@ yesno() { done } +replace() { + local orig repl + + orig=$1 + repl=$2 + if [ -e ${orig} ]; then + mv -f ${orig} ${orig}.OFF + chmod 0 ${orig}.OFF + fi + if [ -e ${repl} ]; then + ln -s ${repl} ${orig} + fi +} + if [ x"$2" = xPRE-INSTALL ]; then USER=courier; UID=62 GROUP=courier; GID=62 @@ -68,20 +82,6 @@ if [ x"$2" = xPRE-INSTALL ]; then fi fi -replace() { - local orig repl - - orig=$1 - repl=$2 - if [ -e ${orig} ]; then - mv -f ${orig} ${orig}.OFF - chmod 0 ${orig}.OFF - fi - if [ -e ${repl} ]; then - ln -s ${repl} ${orig} - fi -} - if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then if [ -x /sbin/sysctl ]; then OSVERSION=`/sbin/sysctl -n kern.osreldate` |