diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile new file mode 100644 index 000000000000..f5d25c366acf --- /dev/null +++ b/www/wwwoffle/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 1998/06/06 17:03:58 tron Exp $ + +DISTNAME= wwwoffle-2.1c +CATEGORIES= www +MASTER_SITES= http://www.gedanken.demon.co.uk/wwwoffle/version-2.1/ +EXTRACT_SUFX= .tgz + +MAINTAINER= magick@bundy.lip.owl.de + +USE_GMAKE= yes +NO_CONFIGURE= yes + +MAN1= wwwoffle.1 +MAN5= wwwoffle.conf.5 +MAN8= wwwoffled.8 + +post-build: + ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/wwwoffle.sh \ + >${WRKDIR}/wwwoffle.sh + +pre-install: + ${MKDIR} ${PREFIX}/etc/wwwoffle + +post-install: + ${CP} ${PREFIX}/etc/wwwoffle/wwwoffle.conf \ + ${PREFIX}/etc/wwwoffle/wwwoffle.conf.default + ${INSTALL_SCRIPT} ${WRKDIR}/wwwoffle.sh ${PREFIX}/etc/rc.d + +.include "../../mk/bsd.pkg.mk" diff --git a/www/wwwoffle/files/md5 b/www/wwwoffle/files/md5 new file mode 100644 index 000000000000..cba5ca137b7c --- /dev/null +++ b/www/wwwoffle/files/md5 @@ -0,0 +1 @@ +MD5 (wwwoffle-2.1c.tgz) = d55e936eabd30ee0d1ab0eb6948d4dd3 diff --git a/www/wwwoffle/files/wwwoffle.sh b/www/wwwoffle/files/wwwoffle.sh new file mode 100644 index 000000000000..458d2377c276 --- /dev/null +++ b/www/wwwoffle/files/wwwoffle.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# $NetBSD: wwwoffle.sh,v 1.1 1998/06/06 17:03:58 tron Exp $ +# +if [ -x @PREFIX@/sbin/wwwoffled -a -f @PREFIX@/etc/wwwoffle/wwwoffle.conf ]; +then + @PREFIX@/sbin/wwwoffled -c @PREFIX@/etc/wwwoffle/wwwoffle.conf >/dev/null 2>&1 & + echo -n ' wwwoffled' +fi +exit 0 diff --git a/www/wwwoffle/patches/patch-aa b/www/wwwoffle/patches/patch-aa new file mode 100644 index 000000000000..b1db490314e1 --- /dev/null +++ b/www/wwwoffle/patches/patch-aa @@ -0,0 +1,24 @@ +--- Makefile.orig Sat Jun 6 18:02:38 1998 ++++ Makefile Sat Jun 6 18:05:01 1998 +@@ -14,17 +14,17 @@ + + ######## + +-INSTDIR=/usr/local ++INSTDIR=${PREFIX} + SPOOLDIR=/var/spool/wwwoffle +-CONFDIR=/var/spool/wwwoffle ++CONFDIR=${PREFIX}/etc/wwwoffle + + ######## + + CC=gcc +-CFLAGS=-O2 -Wall -g ++CFLAGS=-O2 -Wall + + LD=gcc +-LDFLAGS=-g ++LDFLAGS=-s + + LEX=flex -i -L + diff --git a/www/wwwoffle/pkg/COMMENT b/www/wwwoffle/pkg/COMMENT new file mode 100644 index 000000000000..5f1aa17ef25b --- /dev/null +++ b/www/wwwoffle/pkg/COMMENT @@ -0,0 +1 @@ +WWW proxy with support for offline browsing diff --git a/www/wwwoffle/pkg/DESCR b/www/wwwoffle/pkg/DESCR new file mode 100644 index 000000000000..4758f0e063c7 --- /dev/null +++ b/www/wwwoffle/pkg/DESCR @@ -0,0 +1,3 @@ +The wwwoffled program is a simple proxy server with special features for use +with dial-up internet links. This means that it is possible to browse web +pages and read them without having to remain connected. diff --git a/www/wwwoffle/pkg/MESSAGE b/www/wwwoffle/pkg/MESSAGE new file mode 100644 index 000000000000..7e658685aafb --- /dev/null +++ b/www/wwwoffle/pkg/MESSAGE @@ -0,0 +1 @@ +Please add "${PREFIX}/etc/rc.d/wwwoffle.sh" to "/etc/rc.local". diff --git a/www/wwwoffle/pkg/PLIST b/www/wwwoffle/pkg/PLIST new file mode 100644 index 000000000000..309a0ba32397 --- /dev/null +++ b/www/wwwoffle/pkg/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1 1998/06/06 17:03:59 tron Exp $ +bin/wwwoffle +bin/wwwoffle-tools +bin/wwwoffle-ls +bin/wwwoffle-mv +bin/wwwoffle-rm +etc/rc.d/wwwoffle.sh +man/man1/wwwoffle.1 +man/man5/wwwoffle.conf.5 +man/man8/wwwoffled.8 +sbin/wwwoffled +etc/wwwoffle/wwwoffle.conf.default +@exec cp %F %D/etc/wwwoffle/wwwoffle.conf +@unexec rm -f %D/etc/wwwoffle/wwwoffle.conf +@dirrm etc/wwwoffle