aboutsummaryrefslogtreecommitdiff
path: root/mail/openwebmail
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-10-20 07:37:57 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-10-20 07:37:57 +0000
commit1b19d3a60ac567a856f99d97357c1a9791d2c891 (patch)
tree30a2cbf83e38fbfd03f704a51ff1b8ba11a4b019 /mail/openwebmail
parentd101b93e0aedbf3e63a2a24833cc938e6cab1ef3 (diff)
downloadports-1b19d3a60ac567a856f99d97357c1a9791d2c891.tar.gz
ports-1b19d3a60ac567a856f99d97357c1a9791d2c891.zip
Don't override config file during installation.
Submitted by: Rong-en Fan <rafan@infor.org>
Notes
Notes: svn path=/head/; revision=91708
Diffstat (limited to 'mail/openwebmail')
-rw-r--r--mail/openwebmail/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/openwebmail/Makefile b/mail/openwebmail/Makefile
index 29fb754a7916..dce72cb05f82 100644
--- a/mail/openwebmail/Makefile
+++ b/mail/openwebmail/Makefile
@@ -96,10 +96,11 @@ pre-fetch:
.endif
post-patch:
- @${PERL} -pi.bak -e 's,/usr/local/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf
- @${PERL} -pi.bak -e 's,/usr/local/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf
+ @${MV} ${PATCH_WRKSRC}/etc/openwebmail.conf ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
+ @${PERL} -pi.bak -e 's,/usr/local/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
+ @${PERL} -pi.bak -e 's,/usr/local/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
.if !defined(WITHOUT_SPEEDYCGI)
- @${ECHO} "savedsuid_support no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf
+ @${ECHO} "savedsuid_support no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
@${PERL} -pi.bak -e 's,/usr/local/bin/speedy,${LOCALBASE}/bin/speedy_suid,g' ${PATCH_WRKSRC}/openwebmail*pl
.else
@${PERL} -pi.bak -e 's,/usr/bin/suidperl,${PERL},g' ${PATCH_WRKSRC}/openwebmail*pl