summaryrefslogtreecommitdiff
path: root/mail/squirrelmail
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-01-29 11:34:21 +0000
committerwiz <wiz@pkgsrc.org>2001-01-29 11:34:21 +0000
commitb979f7222ad9bade13f010cd27e5bc6afab1681c (patch)
tree86f14acd24842161759a420487862022044c2b4b /mail/squirrelmail
parent6a13219ca89e5dae86f27159ff86006058c06859 (diff)
downloadpkgsrc-b979f7222ad9bade13f010cd27e5bc6afab1681c.tar.gz
Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced, not @VARIABLE@, nor @@VARIABLE@@). By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX, X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST. Clean up some packages while I'm there; add RCS tags to most MESSAGEs. Remove some uninteresting MESSAGEs.
Diffstat (limited to 'mail/squirrelmail')
-rw-r--r--mail/squirrelmail/Makefile6
-rw-r--r--mail/squirrelmail/pkg/MESSAGE8
2 files changed, 6 insertions, 8 deletions
diff --git a/mail/squirrelmail/Makefile b/mail/squirrelmail/Makefile
index f9ae0f98df1..89d8c260a79 100644
--- a/mail/squirrelmail/Makefile
+++ b/mail/squirrelmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/01/25 17:52:51 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2001/01/29 11:34:32 wiz Exp $
DISTNAME= squirrelmail-1.0pre3
PKGNAME= squirrelmail-0.9.3
@@ -17,10 +17,10 @@ NO_BUILD= # defined
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
-MESSAGE_FILE= ${WRKDIR}/MESSAGE
SM_SUBDIR= share/squirrelmail
SMDIR= ${PREFIX}/${SM_SUBDIR}
+MESSAGE_SUBST+= SMDIR=${SMDIR}
post-extract:
cd ${WRKSRC}; \
@@ -47,8 +47,6 @@ pre-install:
-e "s|@CP@|${CP}|g" \
-e "s|@MKDIR@|${MKDIR}|g" \
${PKGDIR}/INSTALL > ${INSTALL_FILE}
- ${SED} -e "s|@SMDIR@|${SMDIR}|g" \
- ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
do-install:
diff --git a/mail/squirrelmail/pkg/MESSAGE b/mail/squirrelmail/pkg/MESSAGE
index 26750448402..0d6b5637124 100644
--- a/mail/squirrelmail/pkg/MESSAGE
+++ b/mail/squirrelmail/pkg/MESSAGE
@@ -1,16 +1,16 @@
==========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2001/01/24 22:44:13 jlam Exp $
+$NetBSD: MESSAGE,v 1.2 2001/01/29 11:34:33 wiz Exp $
You will need to make SquirrelMail accessible through your HTTP server.
If you are running Apache and ap-php, then you may either symlink
- @SMDIR@
+ ${SMDIR}
into DocumentRoot, or add the following lines to httpd.conf:
- Alias /mail/ "@SMDIR@"
+ Alias /mail/ "${SMDIR}"
- <Directory "@SMDIR@">
+ <Directory "${SMDIR}">
Options Indexes MultiViews
AllowOverride None
Order allow,deny