summaryrefslogtreecommitdiff
path: root/www/wwwoffle
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 /www/wwwoffle
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 'www/wwwoffle')
-rw-r--r--www/wwwoffle/Makefile8
-rw-r--r--www/wwwoffle/pkg/MESSAGE7
-rw-r--r--www/wwwoffle/pkg/PLIST4
3 files changed, 10 insertions, 9 deletions
diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile
index 3f26e034a7e..55080caac2c 100644
--- a/www/wwwoffle/Makefile
+++ b/www/wwwoffle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2001/01/26 05:21:49 hubertf Exp $
+# $NetBSD: Makefile,v 1.24 2001/01/29 11:34:47 wiz Exp $
DISTNAME= wwwoffle-2.6
CATEGORIES= www
@@ -17,8 +17,7 @@ HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
USE_GMAKE= yes
NO_CONFIGURE= yes
-MESSAGE_FILE= ${WRKDIR}/MESSAGE
-PLIST_SRC= ${WRKDIR}/PLIST
+PLIST_SUBST+= GTAR=${GTAR}
BUILD_DEFS+= USE_INET6
@@ -31,9 +30,6 @@ MAKE_ENV+= LIBRARY="-lnsl -lsocket"
post-build:
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffle.sh \
>${WRKDIR}/wwwoffle.sh
- @${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/MESSAGE \
- >${MESSAGE_FILE}
- @${SED} -e 's#@GTAR@#${GTAR}#g' <${PKGDIR}/PLIST >${PLIST_SRC}
pre-install:
${MKDIR} ${PREFIX}/etc/wwwoffle
diff --git a/www/wwwoffle/pkg/MESSAGE b/www/wwwoffle/pkg/MESSAGE
index cb4c297d524..909e2c5cdb7 100644
--- a/www/wwwoffle/pkg/MESSAGE
+++ b/www/wwwoffle/pkg/MESSAGE
@@ -1 +1,6 @@
-Please add "@PREFIX@/etc/rc.d/wwwoffle.sh" to "/etc/rc.local".
+======================================================================
+$NetBSD: MESSAGE,v 1.5 2001/01/29 11:34:47 wiz Exp $
+
+Please add "${PREFIX}/etc/rc.d/wwwoffle" to "/etc/rc.local".
+
+======================================================================
diff --git a/www/wwwoffle/pkg/PLIST b/www/wwwoffle/pkg/PLIST
index 7bbd5fbacef..c7997d29e14 100644
--- a/www/wwwoffle/pkg/PLIST
+++ b/www/wwwoffle/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2001/01/26 05:21:49 hubertf Exp $
+@comment $NetBSD: PLIST,v 1.9 2001/01/29 11:34:47 wiz Exp $
bin/wwwoffle
bin/wwwoffle-ls
bin/wwwoffle-mv
@@ -30,7 +30,7 @@ share/doc/wwwoffle/README.lang
share/doc/wwwoffle/README.udmsearch
share/doc/wwwoffle/README.win32
@dirrm share/doc/wwwoffle
-@exec @GTAR@ xzCf / %D/libdata/wwwoffle-spool.tar.gz
+@exec ${GTAR} xzCf / %D/libdata/wwwoffle-spool.tar.gz
@exec cd /var/wwwoffle/html && mv wwwoffle.pac wwwoffle.pac.dist && sed /PROXY/s/localhost/`hostname`/ <wwwoffle.pac.dist >wwwoffle.pac
@unexec cd /var/wwwoffle && rm -rf html* lasttime outgoing prevtime* temp
@unexec rmdir /var/wwwoffle/* 2>/dev/null && rmdir /var/wwwoffle ; :