aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd23/pkg-install
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2004-07-19 12:22:38 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2004-07-19 12:22:38 +0000
commit5aab4401f97bc80cf0f1028c3cda61a606e04b74 (patch)
tree02d11cdbf69a0baca72b03292160d9530fb7cd62 /mail/cyrus-imapd23/pkg-install
parentf7afd26d09f2fd232ef4eadc6fe9a607817e44c3 (diff)
downloadports-5aab4401f97bc80cf0f1028c3cda61a606e04b74.tar.gz
ports-5aab4401f97bc80cf0f1028c3cda61a606e04b74.zip
Notes
Diffstat (limited to 'mail/cyrus-imapd23/pkg-install')
-rw-r--r--mail/cyrus-imapd23/pkg-install13
1 files changed, 6 insertions, 7 deletions
diff --git a/mail/cyrus-imapd23/pkg-install b/mail/cyrus-imapd23/pkg-install
index a4a1d6837d0a..556a643fd972 100644
--- a/mail/cyrus-imapd23/pkg-install
+++ b/mail/cyrus-imapd23/pkg-install
@@ -3,9 +3,8 @@
#set -vx
PKG_BATCH=${BATCH:=NO}
-
-PKG_PREFIX=${PKG_PREFIX:=/usr/local}
-
+PKG_PREFIX=${PKG_PREFIX:=%%PREFIX%%}
+EXAMPLESDIR=${EXAMPLESDIR:=%%EXAMPLESDIR%%}
CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%}
#
@@ -28,7 +27,7 @@ modify_cyrus_user() {
checkfile() {
- diff -bBqw $1 $1.dist >/dev/null 2>&1
+ diff -bBqw $1 $2 >/dev/null 2>&1
case $? in
0) # config file exists, but is the same
;;
@@ -37,7 +36,7 @@ checkfile() {
echo " of the port. See $1.dist for details.";
;;
*) # no config file exists, copy it
- install -c -m 644 $1.dist $1
+ install -c -m 644 $2 $1
;;
esac
}
@@ -49,8 +48,8 @@ case $2 in
POST-INSTALL)
modify_cyrus_user
cd ${PKG_PREFIX}
- checkfile ${PKG_PREFIX}/etc/imapd.conf
- checkfile ${PKG_PREFIX}/etc/cyrus.conf
+ checkfile ${PKG_PREFIX}/etc/imapd.conf ${EXAMPLESDIR}/imapd.conf
+ checkfile ${PKG_PREFIX}/etc/cyrus.conf ${EXAMPLESDIR}/normal.conf
if grep 'sieve' /etc/services; then
echo
else