pkgsrc/www/wwwoffle/Makefile

84 lines
2.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.64 2006/03/14 01:14:34 jlam Exp $
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
PKGREVISION= 2
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/
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
HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
COMMENT= WWW proxy with support for offline browsing
USE_TOOLS+= gmake gzip
GNU_CONFIGURE= yes
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
PKG_SYSCONFSUBDIR= wwwoffle
PLIST_SUBST+= GZIP_CMD=${GZIP_CMD:Q}
RCD_SCRIPTS= wwwoffled
1999-12-07 09:50:49 +01:00
2006-02-23 00:00:37 +01:00
.include "options.mk"
post-build:
cd ${WRKSRC}/cache/search/htdig/scripts; \
for f in wwwoffle-ht*; do \
${MV} $$f $$f.old; \
${SED} -e '/htsearch/s#^#${PREFIX}/libexec/cgi-bin/#' \
-e 's#/usr/local#${PREFIX}#' $$f.old > $$f; \
${RM} $$f.old; \
done
# 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
post-install:
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; \
fi
${INSTALL_PROGRAM} ${WRKSRC}/src/convert-cache \
${PREFIX}/sbin/wwwoffle-convert-cache
${INSTALL_PROGRAM} ${WRKSRC}/src/uncompress-cache \
${PREFIX}/sbin/wwwoffle-uncompress-cache
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config.pl \
${PREFIX}/sbin/wwwoffle-upgrade-config.pl
${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
${TAR} cCf / - var/wwwoffle/html var/wwwoffle/search | ${GZIP_CMD} -9 \
> ${PREFIX}/libdata/wwwoffle-spool.tar.gz
@${ECHO}
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
@${ECHO}
@${ECHO} Attention pkgsrc source users:
@${ECHO}
@${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.'
@${ECHO}
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
@${ECHO}
# 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
finish:
${SETENV} CONFDIR="${PKG_SYSCONFDIR}" PKG_PREFIX="${PREFIX}" \
${SH} INSTALL _ POST-INSTALL
.include "../../mk/bsd.pkg.mk"