2006-03-14 02:14:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.64 2006/03/14 01:14:34 jlam Exp $
|
1998-06-06 19:03:58 +02:00
|
|
|
|
Update wwwoffle to 2.8e, and take over maintainership
Changes since 2.8c:
* src/version.h, doc/NEWS: Update to version 2.8e.
* src/wwwoffle-tools.c:
Fix previous wwwoffle-mv change and preserve timestamps.
* src/configdata.c:
Make the default value for reply-chunked-data match the documentation.
* src/info.c: Indicate on the info page if the URL has been requested.
* src/wwwoffles.c: Handle HEAD requests more intelligently.
When online send HEAD don't cache them, when offline convert to GET if not cached.
* doc/README: Updated description of wwwoffle-mv program.
* src/configdata.c, src/wwwoffles.c, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h:
Added a new option cache-control-max-age-0 to OnlineOptions and OfflineOptions.
* doc/FAQ: Another solution to the infamous libc resolver problem.
* src/wwwoffles.c: No functional changes.
Added more comments relating to Fetch mode, and on mode for else statements.
Rearranged code so that mode==Fetch is evaluated with others in else branch.
* src/wwwoffles.c:
Fix two places where being in Fetch mode would go wrong
(aliased URL and unauthenticated proxy request).
* doc/README, doc/README.CONF: Some text changes.
* src/wwwoffle-tools.c: Allow moving files and changing the path.
* src/control.c: Fix spurious error message.
* doc/wwwoffle.conf.man.template:
Updated the dates in the footer/header.
* src/spool.c:
Only print an error for a missing monitor time file if the URL is monitored.
Version 2.8d of WWWOFFLE released.
* doc/NEWS, src/version.h: Update to version 2.8d.
* doc/README:
Update acknowledgements section (removal of old GIF code).
* src/gifmodify.c:
All new GIF modification code (handles GIF87a and GIF89a).
* doc/README.CONF:
Make sure that all lines are less than 78 characters long.
* src/htmlmodify.l, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h, src/configdata.c:
Add a new option to remove HTML "marquee" effect (scrolling text).
* src/Makefile.in, src/configedit.c, src/control.c, src/index.c,
src/monitor.c, src/refresh.c:
Give warnings if processing URL arguments and an unexpected one is seen.
* conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README,
doc/README.CONF, src/config.h, src/configdata.c, src/htmlmodify.l,
conf/upgrade-config.pl:
Add an HTMLModify option to fix bad cyrillic coding.
* src/wwwoffle-tools.c: Return an error status in case of a failure.
* src/wwwoffles.c:
Make sure that there is a message from 'wwwoffle -fetch' for all URLs.
* src/miscurl.c: Fix hostname character checking.
* src/document.c: Parse xhtml pages for links and images.
* src/info.c: Display source of xhtml and xml pages.
* src/wwwoffles.c: Add cache information to xhtml pages.
* doc/README.CONF: Clarify the try-without-password option wording.
* src/miscurl.c:
When splitting a URL disallow invalid characters in hostnames.
* src/wwwoffled.c: Change log file ownership before changing uid/gid.
Close stdin/stdout/stderr after detaching from terminal not before.
Don't open log file again after detaching from terminal.
Don't force usage of stderr when re-initialising error handler.
* doc/README.CONF, src/configmisc.c:
A URL-SPEC path like '/*/foo*' matches '/foo*' and '/*/foo*' as a special case.
* src/cgi.c, src/search.c:
Fix bug with setting up stdout for CGI program.
* src/errors.c: Fix bug that left file descriptor open on log file.
* src/document.h, src/htmlmodify.l, src/wwwoffles.c:
Disable the demoronise-ms-html option if the HTML is UTF-8 or other multibyte charset.
2005-05-07 13:02:47 +02:00
|
|
|
DISTNAME= wwwoffle-2.8e
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
1998-06-06 19:03:58 +02:00
|
|
|
CATEGORIES= www
|
Update wwwoffle to 2.8e, and take over maintainership
Changes since 2.8c:
* src/version.h, doc/NEWS: Update to version 2.8e.
* src/wwwoffle-tools.c:
Fix previous wwwoffle-mv change and preserve timestamps.
* src/configdata.c:
Make the default value for reply-chunked-data match the documentation.
* src/info.c: Indicate on the info page if the URL has been requested.
* src/wwwoffles.c: Handle HEAD requests more intelligently.
When online send HEAD don't cache them, when offline convert to GET if not cached.
* doc/README: Updated description of wwwoffle-mv program.
* src/configdata.c, src/wwwoffles.c, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h:
Added a new option cache-control-max-age-0 to OnlineOptions and OfflineOptions.
* doc/FAQ: Another solution to the infamous libc resolver problem.
* src/wwwoffles.c: No functional changes.
Added more comments relating to Fetch mode, and on mode for else statements.
Rearranged code so that mode==Fetch is evaluated with others in else branch.
* src/wwwoffles.c:
Fix two places where being in Fetch mode would go wrong
(aliased URL and unauthenticated proxy request).
* doc/README, doc/README.CONF: Some text changes.
* src/wwwoffle-tools.c: Allow moving files and changing the path.
* src/control.c: Fix spurious error message.
* doc/wwwoffle.conf.man.template:
Updated the dates in the footer/header.
* src/spool.c:
Only print an error for a missing monitor time file if the URL is monitored.
Version 2.8d of WWWOFFLE released.
* doc/NEWS, src/version.h: Update to version 2.8d.
* doc/README:
Update acknowledgements section (removal of old GIF code).
* src/gifmodify.c:
All new GIF modification code (handles GIF87a and GIF89a).
* doc/README.CONF:
Make sure that all lines are less than 78 characters long.
* src/htmlmodify.l, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h, src/configdata.c:
Add a new option to remove HTML "marquee" effect (scrolling text).
* src/Makefile.in, src/configedit.c, src/control.c, src/index.c,
src/monitor.c, src/refresh.c:
Give warnings if processing URL arguments and an unexpected one is seen.
* conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README,
doc/README.CONF, src/config.h, src/configdata.c, src/htmlmodify.l,
conf/upgrade-config.pl:
Add an HTMLModify option to fix bad cyrillic coding.
* src/wwwoffle-tools.c: Return an error status in case of a failure.
* src/wwwoffles.c:
Make sure that there is a message from 'wwwoffle -fetch' for all URLs.
* src/miscurl.c: Fix hostname character checking.
* src/document.c: Parse xhtml pages for links and images.
* src/info.c: Display source of xhtml and xml pages.
* src/wwwoffles.c: Add cache information to xhtml pages.
* doc/README.CONF: Clarify the try-without-password option wording.
* src/miscurl.c:
When splitting a URL disallow invalid characters in hostnames.
* src/wwwoffled.c: Change log file ownership before changing uid/gid.
Close stdin/stdout/stderr after detaching from terminal not before.
Don't open log file again after detaching from terminal.
Don't force usage of stderr when re-initialising error handler.
* doc/README.CONF, src/configmisc.c:
A URL-SPEC path like '/*/foo*' matches '/foo*' and '/*/foo*' as a special case.
* src/cgi.c, src/search.c:
Fix bug with setting up stdout for CGI program.
* src/errors.c: Fix bug that left file descriptor open on log file.
* src/document.h, src/htmlmodify.l, src/wwwoffles.c:
Disable the demoronise-ms-html option if the HTML is UTF-8 or other multibyte charset.
2005-05-07 13:02:47 +02:00
|
|
|
MASTER_SITES= http://www.gedanken.freeserve.co.uk/download-wwwoffle/ \
|
|
|
|
ftp://ftp.ibiblio.org/pub/Linux/apps/www/servers/
|
1998-06-06 19:03:58 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
Update wwwoffle to 2.8e, and take over maintainership
Changes since 2.8c:
* src/version.h, doc/NEWS: Update to version 2.8e.
* src/wwwoffle-tools.c:
Fix previous wwwoffle-mv change and preserve timestamps.
* src/configdata.c:
Make the default value for reply-chunked-data match the documentation.
* src/info.c: Indicate on the info page if the URL has been requested.
* src/wwwoffles.c: Handle HEAD requests more intelligently.
When online send HEAD don't cache them, when offline convert to GET if not cached.
* doc/README: Updated description of wwwoffle-mv program.
* src/configdata.c, src/wwwoffles.c, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h:
Added a new option cache-control-max-age-0 to OnlineOptions and OfflineOptions.
* doc/FAQ: Another solution to the infamous libc resolver problem.
* src/wwwoffles.c: No functional changes.
Added more comments relating to Fetch mode, and on mode for else statements.
Rearranged code so that mode==Fetch is evaluated with others in else branch.
* src/wwwoffles.c:
Fix two places where being in Fetch mode would go wrong
(aliased URL and unauthenticated proxy request).
* doc/README, doc/README.CONF: Some text changes.
* src/wwwoffle-tools.c: Allow moving files and changing the path.
* src/control.c: Fix spurious error message.
* doc/wwwoffle.conf.man.template:
Updated the dates in the footer/header.
* src/spool.c:
Only print an error for a missing monitor time file if the URL is monitored.
Version 2.8d of WWWOFFLE released.
* doc/NEWS, src/version.h: Update to version 2.8d.
* doc/README:
Update acknowledgements section (removal of old GIF code).
* src/gifmodify.c:
All new GIF modification code (handles GIF87a and GIF89a).
* doc/README.CONF:
Make sure that all lines are less than 78 characters long.
* src/htmlmodify.l, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h, src/configdata.c:
Add a new option to remove HTML "marquee" effect (scrolling text).
* src/Makefile.in, src/configedit.c, src/control.c, src/index.c,
src/monitor.c, src/refresh.c:
Give warnings if processing URL arguments and an unexpected one is seen.
* conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README,
doc/README.CONF, src/config.h, src/configdata.c, src/htmlmodify.l,
conf/upgrade-config.pl:
Add an HTMLModify option to fix bad cyrillic coding.
* src/wwwoffle-tools.c: Return an error status in case of a failure.
* src/wwwoffles.c:
Make sure that there is a message from 'wwwoffle -fetch' for all URLs.
* src/miscurl.c: Fix hostname character checking.
* src/document.c: Parse xhtml pages for links and images.
* src/info.c: Display source of xhtml and xml pages.
* src/wwwoffles.c: Add cache information to xhtml pages.
* doc/README.CONF: Clarify the try-without-password option wording.
* src/miscurl.c:
When splitting a URL disallow invalid characters in hostnames.
* src/wwwoffled.c: Change log file ownership before changing uid/gid.
Close stdin/stdout/stderr after detaching from terminal not before.
Don't open log file again after detaching from terminal.
Don't force usage of stderr when re-initialising error handler.
* doc/README.CONF, src/configmisc.c:
A URL-SPEC path like '/*/foo*' matches '/foo*' and '/*/foo*' as a special case.
* src/cgi.c, src/search.c:
Fix bug with setting up stdout for CGI program.
* src/errors.c: Fix bug that left file descriptor open on log file.
* src/document.h, src/htmlmodify.l, src/wwwoffles.c:
Disable the demoronise-ms-html option if the HTML is UTF-8 or other multibyte charset.
2005-05-07 13:02:47 +02:00
|
|
|
MAINTAINER= abs@NetBSD.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= WWW proxy with support for offline browsing
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2005-11-01 13:22:24 +01:00
|
|
|
USE_TOOLS+= gmake gzip
|
2002-03-10 23:14:29 +01:00
|
|
|
GNU_CONFIGURE= yes
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
|
2004-12-29 16:42:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/wwwoffle
|
1998-07-13 20:20:08 +02:00
|
|
|
|
2003-08-29 11:25:40 +02:00
|
|
|
PKG_SYSCONFSUBDIR= wwwoffle
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= GZIP_CMD=${GZIP_CMD:Q}
|
2003-08-29 11:25:40 +02:00
|
|
|
|
|
|
|
RCD_SCRIPTS= wwwoffled
|
1999-12-07 09:50:49 +01:00
|
|
|
|
2006-02-23 00:00:37 +01:00
|
|
|
.include "options.mk"
|
2004-06-08 14:23:59 +02:00
|
|
|
|
1998-06-06 19:03:58 +02:00
|
|
|
post-build:
|
2002-03-10 23:14:29 +01:00
|
|
|
cd ${WRKSRC}/cache/search/htdig/scripts; \
|
2001-03-12 19:05:24 +01:00
|
|
|
for f in wwwoffle-ht*; do \
|
|
|
|
${MV} $$f $$f.old; \
|
|
|
|
${SED} -e '/htsearch/s#^#${PREFIX}/libexec/cgi-bin/#' \
|
2002-08-10 19:03:26 +02:00
|
|
|
-e 's#/usr/local#${PREFIX}#' $$f.old > $$f; \
|
2001-03-12 19:05:24 +01:00
|
|
|
${RM} $$f.old; \
|
|
|
|
done
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2002-09-05 18:56:54 +02:00
|
|
|
# For bulk-build machines: a one-time install/deinstall, if wwwoffle
|
|
|
|
# is never run, leaves an incomplete cache directory, which the install
|
|
|
|
# target incorrectly calculates to be a pre-2.2 cache. This tricks it
|
|
|
|
# into setting up the cache directory properly.
|
|
|
|
pre-install:
|
2004-12-29 16:42:37 +01:00
|
|
|
${MKDIR} ${VARBASE}/wwwoffle/prevtime1
|
2002-09-05 18:56:54 +02:00
|
|
|
|
1998-06-06 19:03:58 +02:00
|
|
|
post-install:
|
2002-08-10 19:03:26 +02:00
|
|
|
if [ -f ${PKG_SYSCONFDIR}/wwwoffle.conf.install ]; then \
|
|
|
|
${CP} -p ${PKG_SYSCONFDIR}/wwwoffle.conf.install \
|
|
|
|
${PREFIX}/share/examples/wwwoffle.conf; \
|
|
|
|
elif [ -f ${PKG_SYSCONFDIR}/wwwoffle.conf ]; then \
|
|
|
|
${CP} -p ${PKG_SYSCONFDIR}/wwwoffle.conf \
|
|
|
|
${PREFIX}/share/examples/wwwoffle.conf; \
|
1999-09-03 23:07:36 +02:00
|
|
|
fi
|
2002-03-10 23:14:29 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/convert-cache \
|
2001-03-12 20:08:37 +01:00
|
|
|
${PREFIX}/sbin/wwwoffle-convert-cache
|
2002-03-10 23:14:29 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/uncompress-cache \
|
|
|
|
${PREFIX}/sbin/wwwoffle-uncompress-cache
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config.pl \
|
2001-03-12 20:08:37 +01:00
|
|
|
${PREFIX}/sbin/wwwoffle-upgrade-config.pl
|
2002-03-10 23:14:29 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config-2.x-2.5.pl \
|
2001-03-12 20:08:37 +01:00
|
|
|
${PREFIX}/sbin/wwwoffle-upgrade-config-2.x-2.5.pl
|
2002-03-10 23:14:29 +01:00
|
|
|
# Directories other than html and search are automatically created at run time
|
2005-11-01 13:22:24 +01:00
|
|
|
${TAR} cCf / - var/wwwoffle/html var/wwwoffle/search | ${GZIP_CMD} -9 \
|
|
|
|
> ${PREFIX}/libdata/wwwoffle-spool.tar.gz
|
2001-03-12 19:05:24 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Attention pkgsrc source users:
|
|
|
|
@${ECHO}
|
2002-03-25 10:17:55 +01:00
|
|
|
@${ECHO} 'Please run' "\`make finish'" 'from this directory *after*'
|
|
|
|
@${ECHO} '(optionally) running' "\`make package'", 'in order to fix'
|
|
|
|
@${ECHO} 'up the installed "wwwoffle.pac" files to your hostname'
|
|
|
|
@${ECHO} 'and convert your config file and cache to the new format.'
|
2001-03-12 19:05:24 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
|
|
|
|
@${ECHO}
|
1998-06-06 19:03:58 +02:00
|
|
|
|
2002-03-25 10:17:55 +01:00
|
|
|
# We don't do the following automatically, as that would inconvenience
|
|
|
|
# package build machines, not to mention putting the wrong information
|
|
|
|
# into the "wwwoffle.pac" files.
|
2006-02-23 00:01:28 +01:00
|
|
|
.PHONY: finish
|
2002-03-25 10:17:55 +01:00
|
|
|
finish:
|
2002-08-10 19:03:26 +02:00
|
|
|
${SETENV} CONFDIR="${PKG_SYSCONFDIR}" PKG_PREFIX="${PREFIX}" \
|
|
|
|
${SH} INSTALL _ POST-INSTALL
|
2002-03-25 10:17:55 +01:00
|
|
|
|
1998-06-06 19:03:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|