Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

copy from freebsd2. I'll soon check if it works for fbsd3.

  • Loading branch information...
commit 40a5adbcf021f08c3d5ae82bac598ff970fc7a15 1 parent 53ea7de
jinmei authored
View
52 freebsd3/ports/wwwoffle/Makefile
@@ -0,0 +1,52 @@
+# $Id: Makefile,v 1.1.1.1 1999/10/28 04:47:41 jinmei Exp $
+
+DISTNAME= wwwoffle-2.5
+CATEGORIES= www
+MASTER_SITES= ftp://ftp.demon.co.uk/pub/unix/httpd/ \
+ ${MASTER_SITE_SUNSITE:=apps/www/servers/}
+EXTRACT_SUFX= .tgz
+DISTFILES+= wwwoffle-2.5.tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
+
+USE_GMAKE= yes
+
+MESSAGE_FILE= ${WRKDIR}/MESSAGE
+PLIST_SRC= ${WRKDIR}/PLIST
+
+CHOWN= /usr/sbin/chown
+GTAR= /usr/bin/tar
+
+# IPv6 support
+PATCHDIR= ${WRKDIR}/.patches
+MASTER_SITES+= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/
+DISTFILES+= wwwoffle-2.5-patches.v6.tar.gz
+
+pre-patch:
+ ${MKDIR} ${WRKDIR}/.patches
+ ${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches
+ ${CP} ${WRKDIR}/wwwoffle-2.5-patches.v6/patch-* ${WRKDIR}/.patches
+
+post-build:
+ @${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffle.sh \
+ >${WRKDIR}/wwwoffle.sh
+ @${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/MESSAGE \
+ >${MESSAGE_FILE}
+ @${SED} -e 's#@GTAR@#${GTAR}#g' <${PKGDIR}/PLIST >${PLIST_SRC}
+
+pre-install:
+ ${MKDIR} ${PREFIX}/etc/wwwoffle
+
+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_SCRIPT} ${WRKDIR}/wwwoffle.sh ${PREFIX}/etc/rc.d
+ ${CHOWN} -R ${BINOWN}:${BINGRP} /var/wwwoffle
+
+.include <bsd.port.mk>
View
2  freebsd3/ports/wwwoffle/files/md5
@@ -0,0 +1,2 @@
+MD5 (wwwoffle-2.5.tgz) = 2015ed4a918d0159995a99a30be7e290
+MD5 (wwwoffle-2.5-patches.v6.tar.gz) = 3d7febbccbad1ac44769a8f93af855fa
View
8 freebsd3/ports/wwwoffle/files/patch-sum
@@ -0,0 +1,8 @@
+MD5 (patch-aa) = d24c472fed970b3c5c2d2535ed1aad26
+MD5 (patch-ba) = 18452024b6834859f89f14de20a9bb17
+MD5 (patch-bb) = 0792b65583adb52ff035b47664b4c408
+MD5 (patch-bc) = eb7423aea039efaf7f2646d434b2e148
+MD5 (patch-bd) = 2079be61d9eb5d938d3ff8cb0b001966
+MD5 (patch-be) = 8b61623ec0f2f3554ed3b14dad355170
+MD5 (patch-bf) = 83f76154bcb7e1c5f574e9e33398be1e
+MD5 (patch-bg) = 9d2492b9b70dcc4d5a3232b076a2c60f
View
10 freebsd3/ports/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
View
80 freebsd3/ports/wwwoffle/patches/patch-aa
@@ -0,0 +1,80 @@
+--- Makefile.orig Wed Sep 1 23:19:03 1999
++++ Makefile Tue Oct 26 13:17:51 1999
+@@ -16,9 +16,9 @@
+
+ LOCALHOST=localhost:8080
+
+-INSTDIR=/usr/local
+-SPOOLDIR=/var/spool/wwwoffle
+-CONFDIR=/var/spool/wwwoffle
++INSTDIR=${PREFIX}
++SPOOLDIR=/var/wwwoffle
++CONFDIR=${PREFIX}/etc/wwwoffle
+
+ # For Cygwin (win32)
+ #INSTDIR=/wwwoffle
+@@ -37,13 +37,13 @@
+ ########
+
+ CC=gcc
+-CFLAGS=-O2 -Wall -g
++CFLAGS=-O2 -Wall
+
+ # This is used in the FreeBSD port (http://www.freebsd.org/ports/)
+ #CFLAGS=-O2 -Wall
+
+ LD=gcc
+-LDFLAGS=-g
++LDFLAGS=-s
+
+ # For HP/UX this is a good idea.
+ #LDFLAGS=
+@@ -56,7 +56,7 @@
+ ########
+
+ INCLUDE=
+-LIBRARY=
++LIBRARY= -L/usr/local/v6/lib -linet6
+
+ # For Solaris you need the following instead.
+ #LIBRARY=-lnsl -lsocket
+@@ -272,25 +272,25 @@
+ $(INSTALL) -c -m 644 wwwoffle.conf.man.install $(INSTDIR)/man/man5/wwwoffle.conf.5
+ [ -x $(INSTDIR)/man/man8 ] || $(INSTALL) -d $(INSTDIR)/man/man8
+ $(INSTALL) -c -m 644 wwwoffled.man $(INSTDIR)/man/man8/wwwoffled.8
+- [ -x $(INSTDIR)/doc/wwwoffle ] || $(INSTALL) -d $(INSTDIR)/doc/wwwoffle
++ [ -x $(INSTDIR)/share/doc/wwwoffle ] || $(INSTALL) -d $(INSTDIR)/share/doc/wwwoffle
+ for file in CHANGES.CONF CONVERT COPYING FAQ INSTALL NEWS README* UPGRADE ; do \
+- $(INSTALL) -c -m 644 $$file $(INSTDIR)/doc/wwwoffle/$$file ;\
++ $(INSTALL) -c -m 644 $$file $(INSTDIR)/share/doc/wwwoffle/$$file ;\
+ done
+ [ "x$(LANG)" = "x" ] || [ ! -d lang-$(LANG) ] || ( cd lang-$(LANG) && \
+ for file in CHANGES.CONF CONVERT COPYING FAQ INSTALL NEWS README* UPGRADE ; do \
+- [ ! -f $$file ] || $(INSTALL) -c -m 644 $$file $(INSTDIR)/doc/wwwoffle/$$file-$(LANG) ;\
++ [ ! -f $$file ] || $(INSTALL) -c -m 644 $$file $(INSTDIR)/share/doc/wwwoffle/$$file-$(LANG) ;\
+ done )
+
+
+ install_doc-win32 :
+ [ -x $(INSTDIR)/doc ] || $(INSTALL) -d $(INSTDIR)/doc
+ for file in CHANGES.CONF COPYING FAQ INSTALL NEWS README* ; do \
+- $(INSTALL) -c -m 644 $$file $(INSTDIR)/doc/$$file ;\
++ $(INSTALL) -c -m 644 $$file $(INSTDIR)/share/doc/$$file ;\
+ done
+ $(INSTALL) -c -m 644 README.win32 $(CONFDIR)/README.win32
+ [ "x$(LANG)" = "x" ] || [ ! -d lang-$(LANG) ] || ( cd lang-$(LANG) && \
+ for file in CHANGES.CONF COPYING FAQ INSTALL NEWS README* ; do \
+- [ ! -f $$file ] || $(INSTALL) -c -m 644 $$file $(INSTDIR)/doc/wwwoffle/$$file-$(LANG) ;\
++ [ ! -f $$file ] || $(INSTALL) -c -m 644 $$file $(INSTDIR)/share/doc/wwwoffle/$$file-$(LANG) ;\
+ done )
+
+ install_cache : endian-cache
+@@ -348,7 +348,7 @@
+ [ -f $(CONFDIR)/wwwoffle.conf ] || $(INSTALL) -c -m 640 wwwoffle.conf.install $(CONFDIR)/wwwoffle.conf
+
+ install_fixup-win32:
+- for file in $(INSTDIR)/doc/* $(CONFDIR)/README.win32 ; do \
++ for file in $(INSTDIR)/share/doc/* $(CONFDIR)/README.win32 ; do \
+ [ -f $$file ] && awk '{print $$0 "\r";}' < $$file > $$file.txt && rm -f $$file ;\
+ done
+ for file in $(CONFDIR)/wwwoffle.conf ; do \
View
1  freebsd3/ports/wwwoffle/pkg/COMMENT
@@ -0,0 +1 @@
+A WWW proxy server for offline browsing
View
5 freebsd3/ports/wwwoffle/pkg/DESCR
@@ -0,0 +1,5 @@
+See the website for more details.
+
+WWW: http://www.gedanken.demon.co.uk/wwwoffle/index.html
+
+After installation, edit wwwoffle.conf. See 'man wwwoffle.conf'
View
1  freebsd3/ports/wwwoffle/pkg/MESSAGE
@@ -0,0 +1 @@
+Please add "@PREFIX@/etc/rc.d/wwwoffle.sh" to "/etc/rc.local".
View
30 freebsd3/ports/wwwoffle/pkg/PLIST
@@ -0,0 +1,30 @@
+bin/wwwoffle
+bin/wwwoffle-ls
+bin/wwwoffle-mv
+bin/wwwoffle-read
+bin/wwwoffle-rm
+bin/wwwoffle-tools
+bin/wwwoffle-write
+etc/rc.d/wwwoffle.sh
+etc/wwwoffle/wwwoffle.conf.default
+@exec if [ ! -f %D/etc/wwwoffle/wwwoffle.conf ]; then cp -p %D/etc/wwwoffle/wwwoffle.conf.default %D/etc/wwwoffle/wwwoffle.conf; fi
+man/man1/wwwoffle.1
+man/man5/wwwoffle.conf.5
+man/man8/wwwoffled.8
+sbin/wwwoffled
+share/doc/wwwoffle/CHANGES.CONF
+share/doc/wwwoffle/CONVERT
+share/doc/wwwoffle/COPYING
+share/doc/wwwoffle/FAQ
+share/doc/wwwoffle/INSTALL
+share/doc/wwwoffle/NEWS
+share/doc/wwwoffle/README
+share/doc/wwwoffle/README.1st
+share/doc/wwwoffle/README.CONF
+share/doc/wwwoffle/README.PWD
+share/doc/wwwoffle/README.htdig
+share/doc/wwwoffle/README.lang
+share/doc/wwwoffle/README.win32
+share/doc/wwwoffle/UPGRADE
+@dirrm share/doc/wwwoffle
+@unexec rm -rf /var/wwwoffle
Please sign in to comment.
Something went wrong with that request. Please try again.