summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorabs <abs>2005-11-01 12:22:24 +0000
committerabs <abs>2005-11-01 12:22:24 +0000
commit9316ea78bf154c60cd6492108e133d0ab4dabaa8 (patch)
treefc783e0afd2cd88ef7722379f924bbe96da79217 /www
parent667ee4cd6fe7ce214b9da5f8787a8a9a45b27987 (diff)
downloadpkgsrc-9316ea78bf154c60cd6492108e133d0ab4dabaa8.tar.gz
Update wwwoffle to wwwoffle-2.8enb1
- Use gzip rather than gtar to extract in PLIST (should really be an INSTALL script) - Fix some lines in MESSAGE to for pkglint
Diffstat (limited to 'www')
-rw-r--r--www/wwwoffle/MESSAGE25
-rw-r--r--www/wwwoffle/Makefile11
-rw-r--r--www/wwwoffle/PLIST4
3 files changed, 20 insertions, 20 deletions
diff --git a/www/wwwoffle/MESSAGE b/www/wwwoffle/MESSAGE
index 4702b8e0c4a..68fdbf235f3 100644
--- a/www/wwwoffle/MESSAGE
+++ b/www/wwwoffle/MESSAGE
@@ -1,32 +1,31 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.5 2004/10/11 22:14:51 reed Exp $
+$NetBSD: MESSAGE,v 1.6 2005/11/01 12:22:24 abs Exp $
1) To enable "wwwwoffled" to start on boot on NetBSD-1.5 or newer,
-please copy "${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffled" to "/etc/rc.d/" and add
-"wwwoffled=YES" to /etc/rc.conf. To do the same on older systems,
-add the following to /etc/rc.local:
+ please copy "${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffled" to
+ "/etc/rc.d/" and add "wwwoffled=YES" to /etc/rc.conf. To do the
+ same on older systems, add the following to /etc/rc.local:
if [ -x ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffle ]; then
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffle
fi
2) The hooks are present to to use the package version of "htdig",
-if installed, to serve a searchable index of your cached pages.
-To make the word database, start "wwwoffle" and execute the script
-"/var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full".
+ if installed, to serve a searchable index of your cached pages.
+ To make the word database, start "wwwoffle" and execute the script
+ "/var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full".
2a) A complete installation will purge the cache (and optionally
-reindex the database for "htdig") periodically, as by the following
-example "crontab fragment":
+ reindex the database for "htdig") periodically, as by the following
+ example "crontab fragment":
# wwwoffle proxy maintenance
01 1 * * 0-5 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-incr
01 1 * * 6 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full
3) Docs and links for the other supported cache searchers, and all
-documentation in fact, is easily accessible once wwwoffle is started,
-via
-
-http://localhost:8080/Welcome.html
+ documentation in fact, is easily accessible once wwwoffle is started,
+ via
+ http://localhost:8080/Welcome.html
===========================================================================
diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile
index 812f210e438..a0364782d0c 100644
--- a/www/wwwoffle/Makefile
+++ b/www/wwwoffle/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.56 2005/05/22 20:08:46 jlam Exp $
+# $NetBSD: Makefile,v 1.57 2005/11/01 12:22:24 abs Exp $
DISTNAME= wwwoffle-2.8e
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.gedanken.freeserve.co.uk/download-wwwoffle/ \
ftp://ftp.ibiblio.org/pub/Linux/apps/www/servers/
@@ -10,7 +11,7 @@ MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
COMMENT= WWW proxy with support for offline browsing
-USE_TOOLS+= gmake gtar
+USE_TOOLS+= gmake gzip
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
@@ -18,7 +19,7 @@ CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/wwwoffle
PKG_SYSCONFSUBDIR= wwwoffle
-PLIST_SUBST+= GTAR="${GTAR}"
+PLIST_SUBST+= GZIP_CMD="${GZIP_CMD}"
INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
RCD_SCRIPTS= wwwoffled
@@ -58,8 +59,8 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config-2.x-2.5.pl \
${PREFIX}/sbin/wwwoffle-upgrade-config-2.x-2.5.pl
# Directories other than html and search are automatically created at run time
- ${GTAR} czCf / ${PREFIX}/libdata/wwwoffle-spool.tar.gz \
- var/wwwoffle/html var/wwwoffle/search
+ ${TAR} cCf / - var/wwwoffle/html var/wwwoffle/search | ${GZIP_CMD} -9 \
+ > ${PREFIX}/libdata/wwwoffle-spool.tar.gz
@${ECHO}
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
@${ECHO}
diff --git a/www/wwwoffle/PLIST b/www/wwwoffle/PLIST
index fed957261ef..7ab9877fac9 100644
--- a/www/wwwoffle/PLIST
+++ b/www/wwwoffle/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2005/10/23 16:51:00 wiz Exp $
+@comment $NetBSD: PLIST,v 1.12 2005/11/01 12:22:24 abs Exp $
bin/wwwoffle
bin/wwwoffle-hash
bin/wwwoffle-ls
@@ -69,7 +69,7 @@ share/examples/wwwoffle.conf
@dirrm share/doc/wwwoffle/es
@dirrm share/doc/wwwoffle/de
@dirrm share/doc/wwwoffle
-@exec ${GTAR} xzCf / %D/libdata/wwwoffle-spool.tar.gz
+@exec gzip -d -c %D/libdata/wwwoffle-spool.tar.gz | tar xzCf /
@unexec cd /var/wwwoffle && ${RM} -rf html* search*
@unexec ${RMDIR} /var/wwwoffle/* 2>/dev/null && ${RMDIR} /var/wwwoffle 2>/dev/null || ${TRUE}
@unexec if [ -d /var/wwwoffle ]; then echo "If you won't use the WWWOFFLE package anymore, remove the cache manually by"; echo ' rm -rf /var/wwwoffle'; fi