pkgsrc/www/wwwoffle/Makefile

96 lines
3.2 KiB
Makefile
Raw Normal View History

2021-05-24 21:49:01 +02:00
# $NetBSD: Makefile,v 1.95 2021/05/24 19:55:59 wiz Exp $
Update wwwoffle to 2.9j, PR pkg/51340. Version 2.9j of WWWOFFLE released : Sat 23 Mar 2016 --------------------------------------------------- Bug Fixes Fix to remove compilation warnings for [gs]etres[ug]id() functions. Don't delete newlines from within quoted strings when modifying HTML. Accept 'Transfer-Encoding: Chunked' instead of '... chunked'. Increase the socket backlog to queue requests better. Documentation changes for mailing lists, web-page and e-mail addresses. Accept data from servers that use gzip encoding but don't send the tail. Improve the error messages for gnutls problems. [*] Some gnutls fixes and improvements. [*] Fix an error with chunked encoding and compression from slow servers. Fix HTML (and CSS) parsing problems related to media types. Improvements: Increase the root certificate and fake certificates to 2048 bits. [*] Change the certificate hash function to SHA256 (SHA1 is deprecated). [*] Use the SNI TLS extension for incoming and outgoing https connections. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9i of WWWOFFLE released : Mon 15 Oct 2012 --------------------------------------------------- Bug Fixes Check the flex and lex programs are found by configure. Allow https requests in outgoing to be requested when next online as https. Don't detect webbugs for images with width and height set to auto. Fix problem with infinite loop when root certificate expires. Version 2.9h of WWWOFFLE released : Mon Oct 3 13:00:00 2011 ----------------------------------------------------------- Bug Fixes: Remove some gcc warnings. Delete keys & certs differently (fix crash with some gnutls versions). [*] Try decompressing buffered compressed data before asking for more. Handle buffered https data better. [*] Improvements: Improve the SSL/https error messages (gnutls error conditions). [*] Use version 3 SSL certificates. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9g of WWWOFFLE released : Sun Mar 27 11:00:00 2011 ------------------------------------------------------------ Bug Fixes: Fix 2038 UNIX time_t problem with SSL certificates. Allow a margin on current time when warning about future timestamps. Check for libgnutls and libgcrypt separately at configure time. Better handling of the command line recursive options. New Features: A new option allows passing URLs from browser to server unmodified. Version 2.9f of WWWOFFLE released : Sun Jan 31 19:00:00 2010 ------------------------------------------------------------ Bug Fixes: Some compilation warnings caused by flex have been removed. When making a HEAD request use the cached version if possible. Don't use the libgnutls-config program in the configure script. Only remove "authorization" header if it is "basic" authentication. Send a 304 header when online if cached page won't be refreshed. Clarify SSL/HTTPS error messages and documentation. Clarify last online/offline messages from 'wwwoffle -status'. Perform MIME type tests case insensitively. New Features: A new option to the wwwoffle program closes and re-opens the server log file. Documentation: Several small fixes to documentation. New SSL Features [*]: A faster but less cryptographically secure key generation option is provided. The expiration time of the SSL certificates can be increased from one year. *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9e of WWWOFFLE released : Sun Jan 25 16:00:00 2009 ------------------------------------------------------------ Bug Fixes: Handle deflate compression errors. Don't allow wwwoffle program to make requests that won't be got. Handle various encodings of URLs in HTML documents better. Display a note on the monitor form if the page is already monitored. Stopped an error message when refreshing while online. Documentation: Several small fixes to documentation. Version 2.9d of WWWOFFLE released : Wed Jan 23 19:00:00 2008 ------------------------------------------------------------ Bug Fixes: Don't output extra space before XHTML closing tag when modifying HTML. Don't error in case of race condition creating directory. Remove the generation and display of the XML format certificate. Fix bug with decompressing zlib data. Ensure that creating files supplies a permission option. Fetch image URLs stored in style attributes. Documentation: Improve documentation of http-port and https-port configuration file options. New Features: Add a new option to the CensorHeader section called referer-from. Add a new option to the FetchOptions section called iframes (default=no). Version 2.9c of WWWOFFLE released : Sun Jul 15 14:30:00 2007 ------------------------------------------------------------ Bug Fixes: Don't truncate the log file when opening it. Fix some memory leaks and other lint problems. Fix problem with info page for compressed cached files. More fixes for 64-bit compilation. Fix potential crash with case-insensitive wildcard matching. Try to only get IPv4 socket info if no IPv6 addresses on system. Better handling of https error if connection fails. Add more information to fatal errors related to SSL certificates. Version 2.9b of WWWOFFLE released : Fri Feb 16 09:30:00 2007 ------------------------------------------------------------ Bug Fixes: Fix some string allocations. Don't delete the lasttime cached spool file if page was fetched in this session. Fix HTML parsing of '\' inside or outside quoted strings. Make sure that files are truncated when opened. Display non-empty value in monitor page hour-of-day setting for default value. Some documentation updates. New Features: Expired SSL certificates are deleted and replaced. *NOTE* *This only applies if WWWOFFLE is compiled with SSL/https support* WWWOFFLE creates SSL certificates with a 1 year expiry period. When they expire web browsers will start to give errors. If the WWWOFFLE root Certificate Authority certificate expires then all sites will give SSL errors. Deleting the existing WWWOFFLE CA certificate from the browser and installing the new one will fix this problem (the WWWOFFLE CA certificate can be loaded from https://localhost:8443/certificates/root).
2016-08-21 11:53:55 +02:00
DISTNAME= wwwoffle-2.9j
2021-05-24 21:49:01 +02:00
PKGREVISION= 10
CATEGORIES= www
MASTER_SITES= http://www.gedanken.org.uk/software/wwwoffle/download/
EXTRACT_SUFX= .tgz
MAINTAINER= ginger@email.su
Update wwwoffle to 2.9j, PR pkg/51340. Version 2.9j of WWWOFFLE released : Sat 23 Mar 2016 --------------------------------------------------- Bug Fixes Fix to remove compilation warnings for [gs]etres[ug]id() functions. Don't delete newlines from within quoted strings when modifying HTML. Accept 'Transfer-Encoding: Chunked' instead of '... chunked'. Increase the socket backlog to queue requests better. Documentation changes for mailing lists, web-page and e-mail addresses. Accept data from servers that use gzip encoding but don't send the tail. Improve the error messages for gnutls problems. [*] Some gnutls fixes and improvements. [*] Fix an error with chunked encoding and compression from slow servers. Fix HTML (and CSS) parsing problems related to media types. Improvements: Increase the root certificate and fake certificates to 2048 bits. [*] Change the certificate hash function to SHA256 (SHA1 is deprecated). [*] Use the SNI TLS extension for incoming and outgoing https connections. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9i of WWWOFFLE released : Mon 15 Oct 2012 --------------------------------------------------- Bug Fixes Check the flex and lex programs are found by configure. Allow https requests in outgoing to be requested when next online as https. Don't detect webbugs for images with width and height set to auto. Fix problem with infinite loop when root certificate expires. Version 2.9h of WWWOFFLE released : Mon Oct 3 13:00:00 2011 ----------------------------------------------------------- Bug Fixes: Remove some gcc warnings. Delete keys & certs differently (fix crash with some gnutls versions). [*] Try decompressing buffered compressed data before asking for more. Handle buffered https data better. [*] Improvements: Improve the SSL/https error messages (gnutls error conditions). [*] Use version 3 SSL certificates. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9g of WWWOFFLE released : Sun Mar 27 11:00:00 2011 ------------------------------------------------------------ Bug Fixes: Fix 2038 UNIX time_t problem with SSL certificates. Allow a margin on current time when warning about future timestamps. Check for libgnutls and libgcrypt separately at configure time. Better handling of the command line recursive options. New Features: A new option allows passing URLs from browser to server unmodified. Version 2.9f of WWWOFFLE released : Sun Jan 31 19:00:00 2010 ------------------------------------------------------------ Bug Fixes: Some compilation warnings caused by flex have been removed. When making a HEAD request use the cached version if possible. Don't use the libgnutls-config program in the configure script. Only remove "authorization" header if it is "basic" authentication. Send a 304 header when online if cached page won't be refreshed. Clarify SSL/HTTPS error messages and documentation. Clarify last online/offline messages from 'wwwoffle -status'. Perform MIME type tests case insensitively. New Features: A new option to the wwwoffle program closes and re-opens the server log file. Documentation: Several small fixes to documentation. New SSL Features [*]: A faster but less cryptographically secure key generation option is provided. The expiration time of the SSL certificates can be increased from one year. *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9e of WWWOFFLE released : Sun Jan 25 16:00:00 2009 ------------------------------------------------------------ Bug Fixes: Handle deflate compression errors. Don't allow wwwoffle program to make requests that won't be got. Handle various encodings of URLs in HTML documents better. Display a note on the monitor form if the page is already monitored. Stopped an error message when refreshing while online. Documentation: Several small fixes to documentation. Version 2.9d of WWWOFFLE released : Wed Jan 23 19:00:00 2008 ------------------------------------------------------------ Bug Fixes: Don't output extra space before XHTML closing tag when modifying HTML. Don't error in case of race condition creating directory. Remove the generation and display of the XML format certificate. Fix bug with decompressing zlib data. Ensure that creating files supplies a permission option. Fetch image URLs stored in style attributes. Documentation: Improve documentation of http-port and https-port configuration file options. New Features: Add a new option to the CensorHeader section called referer-from. Add a new option to the FetchOptions section called iframes (default=no). Version 2.9c of WWWOFFLE released : Sun Jul 15 14:30:00 2007 ------------------------------------------------------------ Bug Fixes: Don't truncate the log file when opening it. Fix some memory leaks and other lint problems. Fix problem with info page for compressed cached files. More fixes for 64-bit compilation. Fix potential crash with case-insensitive wildcard matching. Try to only get IPv4 socket info if no IPv6 addresses on system. Better handling of https error if connection fails. Add more information to fatal errors related to SSL certificates. Version 2.9b of WWWOFFLE released : Fri Feb 16 09:30:00 2007 ------------------------------------------------------------ Bug Fixes: Fix some string allocations. Don't delete the lasttime cached spool file if page was fetched in this session. Fix HTML parsing of '\' inside or outside quoted strings. Make sure that files are truncated when opened. Display non-empty value in monitor page hour-of-day setting for default value. Some documentation updates. New Features: Expired SSL certificates are deleted and replaced. *NOTE* *This only applies if WWWOFFLE is compiled with SSL/https support* WWWOFFLE creates SSL certificates with a 1 year expiry period. When they expire web browsers will start to give errors. If the WWWOFFLE root Certificate Authority certificate expires then all sites will give SSL errors. Deleting the existing WWWOFFLE CA certificate from the browser and installing the new one will fix this problem (the WWWOFFLE CA certificate can be loaded from https://localhost:8443/certificates/root).
2016-08-21 11:53:55 +02:00
HOMEPAGE= http://www.gedanken.org.uk/software/wwwoffle
LICENSE= gnu-gpl-v2
COMMENT= WWW proxy with support for offline browsing
USE_TOOLS+= gmake gzip perl tar lex
GNU_CONFIGURE= yes
Update wwwoffle to 2.9j, PR pkg/51340. Version 2.9j of WWWOFFLE released : Sat 23 Mar 2016 --------------------------------------------------- Bug Fixes Fix to remove compilation warnings for [gs]etres[ug]id() functions. Don't delete newlines from within quoted strings when modifying HTML. Accept 'Transfer-Encoding: Chunked' instead of '... chunked'. Increase the socket backlog to queue requests better. Documentation changes for mailing lists, web-page and e-mail addresses. Accept data from servers that use gzip encoding but don't send the tail. Improve the error messages for gnutls problems. [*] Some gnutls fixes and improvements. [*] Fix an error with chunked encoding and compression from slow servers. Fix HTML (and CSS) parsing problems related to media types. Improvements: Increase the root certificate and fake certificates to 2048 bits. [*] Change the certificate hash function to SHA256 (SHA1 is deprecated). [*] Use the SNI TLS extension for incoming and outgoing https connections. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9i of WWWOFFLE released : Mon 15 Oct 2012 --------------------------------------------------- Bug Fixes Check the flex and lex programs are found by configure. Allow https requests in outgoing to be requested when next online as https. Don't detect webbugs for images with width and height set to auto. Fix problem with infinite loop when root certificate expires. Version 2.9h of WWWOFFLE released : Mon Oct 3 13:00:00 2011 ----------------------------------------------------------- Bug Fixes: Remove some gcc warnings. Delete keys & certs differently (fix crash with some gnutls versions). [*] Try decompressing buffered compressed data before asking for more. Handle buffered https data better. [*] Improvements: Improve the SSL/https error messages (gnutls error conditions). [*] Use version 3 SSL certificates. [*] *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9g of WWWOFFLE released : Sun Mar 27 11:00:00 2011 ------------------------------------------------------------ Bug Fixes: Fix 2038 UNIX time_t problem with SSL certificates. Allow a margin on current time when warning about future timestamps. Check for libgnutls and libgcrypt separately at configure time. Better handling of the command line recursive options. New Features: A new option allows passing URLs from browser to server unmodified. Version 2.9f of WWWOFFLE released : Sun Jan 31 19:00:00 2010 ------------------------------------------------------------ Bug Fixes: Some compilation warnings caused by flex have been removed. When making a HEAD request use the cached version if possible. Don't use the libgnutls-config program in the configure script. Only remove "authorization" header if it is "basic" authentication. Send a 304 header when online if cached page won't be refreshed. Clarify SSL/HTTPS error messages and documentation. Clarify last online/offline messages from 'wwwoffle -status'. Perform MIME type tests case insensitively. New Features: A new option to the wwwoffle program closes and re-opens the server log file. Documentation: Several small fixes to documentation. New SSL Features [*]: A faster but less cryptographically secure key generation option is provided. The expiration time of the SSL certificates can be increased from one year. *NOTE* *These only apply if WWWOFFLE is compiled with SSL/https support* Version 2.9e of WWWOFFLE released : Sun Jan 25 16:00:00 2009 ------------------------------------------------------------ Bug Fixes: Handle deflate compression errors. Don't allow wwwoffle program to make requests that won't be got. Handle various encodings of URLs in HTML documents better. Display a note on the monitor form if the page is already monitored. Stopped an error message when refreshing while online. Documentation: Several small fixes to documentation. Version 2.9d of WWWOFFLE released : Wed Jan 23 19:00:00 2008 ------------------------------------------------------------ Bug Fixes: Don't output extra space before XHTML closing tag when modifying HTML. Don't error in case of race condition creating directory. Remove the generation and display of the XML format certificate. Fix bug with decompressing zlib data. Ensure that creating files supplies a permission option. Fetch image URLs stored in style attributes. Documentation: Improve documentation of http-port and https-port configuration file options. New Features: Add a new option to the CensorHeader section called referer-from. Add a new option to the FetchOptions section called iframes (default=no). Version 2.9c of WWWOFFLE released : Sun Jul 15 14:30:00 2007 ------------------------------------------------------------ Bug Fixes: Don't truncate the log file when opening it. Fix some memory leaks and other lint problems. Fix problem with info page for compressed cached files. More fixes for 64-bit compilation. Fix potential crash with case-insensitive wildcard matching. Try to only get IPv4 socket info if no IPv6 addresses on system. Better handling of https error if connection fails. Add more information to fatal errors related to SSL certificates. Version 2.9b of WWWOFFLE released : Fri Feb 16 09:30:00 2007 ------------------------------------------------------------ Bug Fixes: Fix some string allocations. Don't delete the lasttime cached spool file if page was fetched in this session. Fix HTML parsing of '\' inside or outside quoted strings. Make sure that files are truncated when opened. Display non-empty value in monitor page hour-of-day setting for default value. Some documentation updates. New Features: Expired SSL certificates are deleted and replaced. *NOTE* *This only applies if WWWOFFLE is compiled with SSL/https support* WWWOFFLE creates SSL certificates with a 1 year expiry period. When they expire web browsers will start to give errors. If the WWWOFFLE root Certificate Authority certificate expires then all sites will give SSL errors. Deleting the existing WWWOFFLE CA certificate from the browser and installing the new one will fix this problem (the WWWOFFLE CA certificate can be loaded from https://localhost:8443/certificates/root).
2016-08-21 11:53:55 +02:00
BUILD_DEFS+= VARBASE
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/wwwoffle
1998-07-13 20:20:08 +02:00
CHECK_PORTABILITY_SKIP+= configure.in
PKG_SYSCONFSUBDIR= wwwoffle
CONF_FILES+= ${PREFIX}/share/examples/wwwoffle/wwwoffle.conf ${PKG_SYSCONFDIR}/wwwoffle.conf
CONF_FILES_MODE= 0640
PLIST_SUBST+= GZIP_CMD=${GZIP_CMD:Q}
2007-03-24 20:21:18 +01:00
INSTALLATION_DIRS= sbin libdata
RCD_SCRIPTS= wwwoffled
1999-12-07 09:50:49 +01:00
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
SUBST_FILES.fix-paths= cache/search/namazu/scripts/wwwoffle-namazu
SUBST_FILES.fix-paths+= cache/search/hyperestraier/scripts/wwwoffle-estseek
SUBST_VARS.fix-paths= PREFIX
2006-02-23 00:00:37 +01:00
.include "options.mk"
2006-10-23 13:06:23 +02:00
post-extract:
chmod -R go-w ${WRKSRC}
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:
${MKDIR} ${DESTDIR}${VARBASE}/wwwoffle/prevtime1
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config.pl \
${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config.pl
${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config-2.0-2.5.pl \
${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config-2.0-2.5.pl
# Directories other than html and search are automatically created at run time
${TAR} cCf ${DESTDIR}/ - var/wwwoffle/html var/wwwoffle/search | \
${GZIP_CMD} -9 \
> ${DESTDIR}${PREFIX}/libdata/wwwoffle-spool.tar.gz
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/ru
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/nl
${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/it
@${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 "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"