pkgsrc/www/wwwoffle/Makefile
fredb e65bc1f071 Upgrade wwwoffle to 2.6c. From the "NEWS" file...
Bug Fixes:
 Changed the HTML message pages to be HTML 4 compliant (use ';' instead of '&'
 for URL arguments).  Fixed meta-refresh-self problem.  Don't get confused by
 scripts when parsing HTML.  Fix crash in convert-cache program.  Made
 compilation work on SGI machines.  Don't truncate partial cached file.  Fix the
 request-changed option.

New Features:
 Add comments where WWWOFFLE modifies the original page's HTML.
 Add the option to remove stylesheets, external links and embedded styles.
 Add the option to remove Java applets.
 Add options to remove links and replace images listed in the DontGet section.
 Add the option to not fetch webbugs (1x1 pixel images) when parsing HTML.
 Add the option to replace webbugs (1x1 pixel images) when modifying HTML.

Translations:
 Added Dutch translations of WWWOFFLE messages.
2001-04-22 06:44:39 +00:00

82 lines
2.7 KiB
Makefile

# $NetBSD: Makefile,v 1.30 2001/04/22 06:44:39 fredb Exp $
DISTNAME= wwwoffle-2.6c
CATEGORIES= www
MASTER_SITES= http://www.gedanken.demon.co.uk/download-wwwoffle/ \
ftp://ftp.demon.co.uk/pub/unix/httpd/ \
${MASTER_SITE_SUNSITE:=apps/www/servers/}
EXTRACT_SUFX= .tgz
PATCHFILES+= wwwoffle-26b-v6-20010411.diff.gz
PATCH_SITES+= ftp://ftp.kame.net/pub/kame/misc/
PATCH_DIST_STRIP= -p1
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
COMMENT= WWW proxy with support for offline browsing
USE_GMAKE= yes
NO_CONFIGURE= yes
PLIST_SUBST+= GTAR="${GTAR}" MKDIR="${MKDIR}" PREFIX="${PREFIX}"
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
MAKE_ENV+= LIBRARY="-lnsl -lsocket"
.endif
post-build:
cd ${WRKSRC}/html/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
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffle.sh \
>${WRKDIR}/wwwoffle.sh
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffled \
>${WRKDIR}/wwwoffled
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/etc/wwwoffle
if [ -d /var/wwwoffle ]; then \
${RM} -rf /var/wwwoffle/html.old; \
${INSTALL_DATA_DIR} /var/wwwoffle/prevtime1; \
fi
post-install:
if [ -f ${PREFIX}/etc/wwwoffle/wwwoffle.conf.install ]; then \
${MV} ${PREFIX}/etc/wwwoffle/wwwoffle.conf.install \
${PREFIX}/etc/wwwoffle/wwwoffle.conf.default; \
else \
${CP} -p ${PREFIX}/etc/wwwoffle/wwwoffle.conf \
${PREFIX}/etc/wwwoffle/wwwoffle.conf.default; \
fi
${INSTALL_PROGRAM} ${WRKSRC}/convert-cache \
${PREFIX}/sbin/wwwoffle-convert-cache
${INSTALL_SCRIPT} ${WRKSRC}/upgrade-config.pl \
${PREFIX}/sbin/wwwoffle-upgrade-config.pl
${INSTALL_SCRIPT} ${WRKSRC}/upgrade-config-2.x-2.5.pl \
${PREFIX}/sbin/wwwoffle-upgrade-config-2.x-2.5.pl
${INSTALL_SCRIPT} ${WRKDIR}/wwwoffle.sh ${PREFIX}/etc/rc.d/wwwoffle
${INSTALL_SCRIPT} ${WRKDIR}/wwwoffled ${PREFIX}/etc/rc.d
# directories other than html are automatically created at run time
${GTAR} czCf / ${PREFIX}/libdata/wwwoffle-spool.tar.gz var/wwwoffle/html
@${ECHO}
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
@${ECHO}
@${ECHO} Attention pkgsrc source users:
@${ECHO}
@${ECHO} If your are upgrading from an older version of wwwoffle,
@${ECHO} your cache will not be converted automatically. Please do
@${ECHO} so by executing the command
@${ECHO} \"${PREFIX}/libexec/wwwoffle-convert-cache /var/wwwoffle\".
@${ECHO}
@${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=
@${ECHO}
.include "../../mk/bsd.pkg.mk"