summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
commited2d2be3dbcac3bde000f4d89f3ae5836cd53b93 (patch)
treeea35ca7703e69b2f955232964f66c73b9338e847 /net-proxy/wwwoffle
parentAdding pcmcia flag. Closes #90025, Cheers Georgi (diff)
downloadgentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.tar.gz
gentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.tar.bz2
gentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.zip
www-proxy -> net-proxy
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-proxy/wwwoffle')
-rw-r--r--net-proxy/wwwoffle/ChangeLog173
-rw-r--r--net-proxy/wwwoffle/Manifest14
-rw-r--r--net-proxy/wwwoffle/files/digest-wwwoffle-2.7h1
-rw-r--r--net-proxy/wwwoffle/files/digest-wwwoffle-2.8b1
-rw-r--r--net-proxy/wwwoffle/files/digest-wwwoffle-2.8e1
-rw-r--r--net-proxy/wwwoffle/files/wwwoffle-online.confd10
-rw-r--r--net-proxy/wwwoffle/files/wwwoffle-online.initd30
-rw-r--r--net-proxy/wwwoffle/files/wwwoffle.initd21
-rwxr-xr-xnet-proxy/wwwoffle/files/wwwoffled21
-rwxr-xr-xnet-proxy/wwwoffle/files/wwwoffled-online21
-rwxr-xr-xnet-proxy/wwwoffle/files/wwwoffled-online-2.8b21
-rw-r--r--net-proxy/wwwoffle/metadata.xml13
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.7h.ebuild67
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.8b.ebuild139
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.8e.ebuild176
15 files changed, 709 insertions, 0 deletions
diff --git a/net-proxy/wwwoffle/ChangeLog b/net-proxy/wwwoffle/ChangeLog
new file mode 100644
index 000000000000..b000fd1e9e74
--- /dev/null
+++ b/net-proxy/wwwoffle/ChangeLog
@@ -0,0 +1,173 @@
+# ChangeLog for www-proxy/wwwoffle
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/ChangeLog,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+ 22 Apr 2005; Alin Nastac <mrness@gentoo.org> :
+ Rename category & herd www-proxy to net-proxy
+
+ 09 Apr 2005; Marcus D. Hanwell <cryos@gentoo.org> wwwoffle-2.8e.ebuild:
+ Marked ~amd64, closes bug 88482.
+
+ 09 Apr 2005; Alin Nastac <mrness@gentoo.org> wwwoffle-2.8e.ebuild:
+ Recursively set ownership to wwwoffle:wwwoffle on /etc/wwwoffle and
+ /var/spool/wwwoffle (#88482)
+
+ 09 Apr 2005; Markus Rothe <corsair@gentoo.org> wwwoffle-2.8b.ebuild:
+ Stable on ppc64
+
+*wwwoffle-2.8e (06 Apr 2005)
+
+ 06 Apr 2005; Alin Nastac <mrness@gentoo.org>
+ -files/wwwoffle-2.8c-config-online, -files/wwwoffle-2.8c-init,
+ -files/wwwoffle-2.8c-init-online, +files/wwwoffle.initd,
+ +files/wwwoffle-online.confd, +files/wwwoffle-online.initd,
+ -wwwoffle-2.8c.ebuild, +wwwoffle-2.8e.ebuild:
+ Version bump
+
+ 20 Nov 2004; Daniel Black <dragonheart@gentoo.org> files/wwwoffle-2.8c-init,
+ files/wwwoffle-2.8c-init-online:
+ more init script fixes as per bug #71674. Thanks again to BlaisorBlade
+ <blaisorblade_spam@yahoo.it>
+
+ 19 Nov 2004; Daniel Black <dragonheart@gentoo.org>
+ files/wwwoffle-2.8c-init-online:
+ Modified online init.d script to fetch in background. Thanks to BlaisorBlade
+ <blaisorblade_spam@yahoo.it> in bug #71674
+
+ 19 Sep 2004; Daniel Black <dragonheart@gentoo.org> wwwoffle-2.8c.ebuild:
+ Ownership of /var/spool/wwwoffle changed to wwwoffle:wwwoffle. Thanks to Alan
+ Swanson <swanson@ukfsn.org> in bug #64629
+
+*wwwoffle-2.8c (19 Sep 2004)
+
+ 19 Sep 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/wwwoffle-2.8c-config-online, +files/wwwoffle-2.8c-init,
+ +files/wwwoffle-2.8c-init-online, +wwwoffle-2.8c.ebuild:
+ version bump. Solves bug #61965 by Stanislav Brabec <utx@penguin.cz>. Attempts
+ to solve bug #7728 however there is still problems
+
+ 05 Sep 2004; Sven Wegener <swegener@gentoo.org> :
+ Fixed ChangeLog header.
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
+ wwwoffle-2.7h.ebuild, wwwoffle-2.8b.ebuild:
+ Masked wwwoffle-2.8b.ebuild stable for ppc
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
+ wwwoffle-2.7h.ebuild:
+ Masked wwwoffle-2.7h.ebuild stable for ppc
+
+*wwwoffle-2.8b (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/wwwoffled, +files/wwwoffled-online, +files/wwwoffled-online-2.8b,
+ +wwwoffle-2.7h.ebuild, +wwwoffle-2.8b.ebuild:
+ Moved from net-www/wwwoffle to www-proxy/wwwoffle.
+
+ 28 Jul 2004; Daniel Black <dragonheart@gentoo.org> wwwoffle-2.8b.ebuild:
+ Changed post-install message - wrong path of config file displayed in message.
+ Thanks to Antonio <netbix@tiscali.it> in bug #58315. Also modified the
+ ebuild to make wwwoffled run as the user wwwoffle. Used a config convert
+ script to update the user's previous configuration.
+
+ 27 Jul 2004; Daniel Black <dragonheart@gentoo.org> -wwwoffle-2.7g.ebuild,
+ wwwoffle-2.8b.ebuild:
+ enew{user,group} copied to pkg_preinst to fix binary packages (bug #58526).
+ Added directories to keep (#58315). Thanks to Thomas Matthijs
+ <axxo@gentoo.org> and Antonio <netbix@tiscali.it>
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> wwwoffle-2.7g.ebuild,
+ wwwoffle-2.7h.ebuild, wwwoffle-2.8b.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 17 Jun 2004; Jason Wever <weeve@gentoo.org> wwwoffle-2.8b.ebuild:
+ Stable on sparc.
+
+ 15 Jun 2004; Daniel Black <dragonheart@gentoo.org> wwwoffle-2.8b.ebuild:
+ x86 stable
+
+ 06 Jun 2004; Daniel Black <dragonheart@gentoo.org> wwwoffle-2.7h.ebuild:
+ QA fix
+
+ 06 Jun 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/wwwoffled-online-2.8b, wwwoffle-2.7h.ebuild, wwwoffle-2.8b.ebuild:
+ Fixed the remainder of bug #35275. QA fix to 2.7h
+
+ 07 May 2004; Daniel Black <dragonheart@gentoo.org> -wwwoffle-2.7d.ebuild,
+ wwwoffle-2.7g.ebuild, wwwoffle-2.7h.ebuild:
+ Remove old version. QA fix and added x86 keywords on 2.7{gh}
+
+ 28 Apr 2004; Daniel Black <dragonheart@gentoo.org> wwwoffle-2.8b.ebuild:
+ Some fixes thanks to tove <bugs@veller.net> in bug #35275. Still some more to
+ go
+
+*wwwoffle-2.8b (25 Apr 2004)
+
+ 25 Apr 2004; Daniel Black <dragonheart@gentoo.org> metadata.xml,
+ wwwoffle-2.7-r1.ebuild, wwwoffle-2.7b.ebuild, wwwoffle-2.7d.ebuild,
+ wwwoffle-2.7g.ebuild, wwwoffle-2.7h.ebuild, wwwoffle-2.8b.ebuild,
+ files/wwwoffled:
+ Thanks to tove <bugs@veller.net> in bug #35275. files/wwwoffled changed to use
+ --name in stop. 2.7g and 2.7h fixed tar unpack. Version bump to 2.8b as well.
+ Removed old versions. Changed 2.8b so it stops wwwoffle before installation
+
+
+ 19 Mar 2004; Gustavo Zacarias <gustavoz@gentoo.org> wwwoffle-2.7g.ebuild:
+ stable on sparc
+
+ 22 Mar 2003; Dan Armak <danarmak@gentoo.org> files/wwwoffled-online:
+
+ Fix bug #16293 - tell wwwoffle to read the /etc/wwwoffle.conf config file
+ so that it knows over which cnotrol port to communicate with the wwwoffled
+ server.
+
+*wwwoffle-2.7h (14 Jan 2003)
+
+ 14 Jan 2003; Dan Armak <danarmak@gentoo.org> ChangeLog :
+
+ A new upstream release that adds some bugfixes.
+
+*wwwoffle-2.7g (14 Dec 2002)
+
+ 14 Dec 2002; Dan Armak <danarmak@gentoo.org> ChangeLog :
+
+ New upstream vesrion.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*wwwoffle-2.7d (29 Jul 2002)
+
+ 29 Jul 2002; Dan Armak <danarmak@gentoo.org> ChangeLog :
+
+ Bugfix version.
+
+*wwwoffle-2.7b (02 Jun 2002)
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> wwwoffle-2.7b.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 02 Jun 2002; Wout Mertens <wmertens@gentoo.org>:
+ New mainstream version. This one fixes the problem where it wouldn't pass
+ on length information.
+
+*wwwoffle-2.7-r1 (16 Mar 2002)
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> wwwoffle-2.7-r1.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 26 Mar 2002; Dan Armak <danarmak@gentoo.org>: general cleanup
+ of the ebuild. Fix bug that made the default spooldir /var/tmp/portage/...
+
+ 16 Mar 2002; Dan Armak <danarmak@gentoo.org> Changelog:
+
+ Now, if the wwwoffle init script is running, it is stopped before merging,
+ and started again afterwards.
+
+*wwwoffle-2.7 (4 Mar 2002)
+
+ 4 Mar 2002; Dan Armak <danarmak@gentoo.org> Changelog:
+
+ New upstream version, which adds some new features and bugfixes. Also cleaned up
+ ebuild in various small ways.
+
+*wwwoffle-2.6d-r6 (1 Feb 2002)
diff --git a/net-proxy/wwwoffle/Manifest b/net-proxy/wwwoffle/Manifest
new file mode 100644
index 000000000000..8130aba8a8f5
--- /dev/null
+++ b/net-proxy/wwwoffle/Manifest
@@ -0,0 +1,14 @@
+MD5 05f59e77d3c9a274835c4261c6cf1793 wwwoffle-2.8b.ebuild 4532
+MD5 03d481b8c1ea435dbc7a9c40029c8f47 wwwoffle-2.7h.ebuild 1851
+MD5 bd1cf2cb7b324dc39a86f789ef0b5eb5 ChangeLog 6467
+MD5 2f092f7d958b226c98713d29cff08f9d metadata.xml 502
+MD5 b1b90b961686c74ce6bf4455ed792c5c wwwoffle-2.8e.ebuild 5154
+MD5 ecf6ff07d66bdc91ff7ff6014ab5c016 files/wwwoffled-online 510
+MD5 a426ce505020deefa18627d26d04eed0 files/wwwoffled-online-2.8b 524
+MD5 1185ed7839f3a2620b3968e3c1d345f0 files/wwwoffle-online.confd 426
+MD5 06fec5f0a5b36dd1d1121b17d8882760 files/wwwoffle-online.initd 696
+MD5 faaff49563ae133cdb50ca1bf1ac93b8 files/wwwoffle.initd 539
+MD5 a6914435a2f1de064fcdc7c784a2b85f files/digest-wwwoffle-2.7h 62
+MD5 009de7420924ad30ca9611df2d1d6299 files/digest-wwwoffle-2.8b 62
+MD5 a627d44111b7ff1d162ac248f5c35376 files/digest-wwwoffle-2.8e 63
+MD5 6cf4ab4a8f2db9c8e503aac035d38eae files/wwwoffled 506
diff --git a/net-proxy/wwwoffle/files/digest-wwwoffle-2.7h b/net-proxy/wwwoffle/files/digest-wwwoffle-2.7h
new file mode 100644
index 000000000000..d419996746a2
--- /dev/null
+++ b/net-proxy/wwwoffle/files/digest-wwwoffle-2.7h
@@ -0,0 +1 @@
+MD5 3226cbe65feca747f92393114d9de5f0 wwwoffle-2.7h.tgz 886577
diff --git a/net-proxy/wwwoffle/files/digest-wwwoffle-2.8b b/net-proxy/wwwoffle/files/digest-wwwoffle-2.8b
new file mode 100644
index 000000000000..9cb59667b7c6
--- /dev/null
+++ b/net-proxy/wwwoffle/files/digest-wwwoffle-2.8b
@@ -0,0 +1 @@
+MD5 ef5a756adc8b8c37b9684b3155494227 wwwoffle-2.8b.tgz 975589
diff --git a/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e b/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e
new file mode 100644
index 000000000000..a0f40e52b471
--- /dev/null
+++ b/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e
@@ -0,0 +1 @@
+MD5 30828cc5a8a459f04f719bbb220003e7 wwwoffle-2.8e.tgz 1015694
diff --git a/net-proxy/wwwoffle/files/wwwoffle-online.confd b/net-proxy/wwwoffle/files/wwwoffle-online.confd
new file mode 100644
index 000000000000..fcb5c5156e1f
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffle-online.confd
@@ -0,0 +1,10 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffle-online.confd,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+# Enter the interface that connects you to the outside world
+# This will correspond to /etc/wwwoffle/init.d/net.${IFACE}
+
+# IMPORTANT: Be sure to run depscan.sh after modifiying IFACE
+
+#IFACE=ppp0
diff --git a/net-proxy/wwwoffle/files/wwwoffle-online.initd b/net-proxy/wwwoffle/files/wwwoffle-online.initd
new file mode 100644
index 000000000000..55aafc20fb91
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffle-online.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffle-online.initd,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+depend() {
+ need wwwoffled
+ use dns
+
+ if [ -n ${IFACE} ];
+ then
+ need net.${IFACE}
+ else
+ ewarn "No IFACE is defined in /etc/conf.d/wwwoffle-online"
+ need net
+ fi
+}
+
+start() {
+ ebegin "Starting wwwoffled-online"
+ wwwoffle -online -c /etc/wwwoffle/wwwoffle.conf
+ wwwoffle -fetch -c /etc/wwwoffle/wwwoffle.conf & > /dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wwwoffled-online"
+ wwwoffle -offline -c /etc/wwwoffle/wwwoffle.conf
+ eend $?
+}
diff --git a/net-proxy/wwwoffle/files/wwwoffle.initd b/net-proxy/wwwoffle/files/wwwoffle.initd
new file mode 100644
index 000000000000..74d805c79ee1
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffle.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffle.initd,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting wwwoffled"
+ start-stop-daemon --start --quiet --exec /usr/sbin/wwwoffled \
+ -u wwwoffle -- -c /etc/wwwoffle/wwwoffle.conf 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wwwoffled"
+ start-stop-daemon --stop --quiet --name wwwoffled
+ eend $?
+}
diff --git a/net-proxy/wwwoffle/files/wwwoffled b/net-proxy/wwwoffle/files/wwwoffled
new file mode 100755
index 000000000000..5c868c1811d7
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffled
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffled,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting wwwoffled"
+ start-stop-daemon --start --quiet --exec `which wwwoffled` \
+ -- -c /etc/wwwoffle.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wwwoffled"
+ start-stop-daemon --stop --quiet --name wwwoffled
+ eend $?
+}
diff --git a/net-proxy/wwwoffle/files/wwwoffled-online b/net-proxy/wwwoffle/files/wwwoffled-online
new file mode 100755
index 000000000000..9c409d3afe57
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffled-online
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffled-online,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+depend() {
+ need wwwoffled net
+}
+
+start() {
+ ebegin "Starting wwwoffled-online"
+ wwwoffle -online -c /etc/wwwoffle.conf
+ wwwoffle -fetch -c /etc/wwwoffle.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wwwoffled-online"
+ wwwoffle -offline -c /etc/wwwoffle.conf
+ eend $?
+}
diff --git a/net-proxy/wwwoffle/files/wwwoffled-online-2.8b b/net-proxy/wwwoffle/files/wwwoffled-online-2.8b
new file mode 100755
index 000000000000..bcb98b23cfef
--- /dev/null
+++ b/net-proxy/wwwoffle/files/wwwoffled-online-2.8b
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/files/wwwoffled-online-2.8b,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+depend() {
+ need wwwoffled net.${IFACE}
+}
+
+start() {
+ ebegin "Starting wwwoffled-online"
+ wwwoffle -online -c /etc/wwwoffle.conf
+ wwwoffle -fetch -c /etc/wwwoffle.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wwwoffled-online"
+ wwwoffle -offline -c /etc/wwwoffle.conf
+ eend $?
+}
diff --git a/net-proxy/wwwoffle/metadata.xml b/net-proxy/wwwoffle/metadata.xml
new file mode 100644
index 000000000000..fdcfd741744c
--- /dev/null
+++ b/net-proxy/wwwoffle/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-proxy</herd>
+<maintainer>
+ <email>dragonheart@gentoo.org</email>
+ <name>Daniel Black</name>
+</maintainer>
+<longdescription>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.
+</longdescription>
+</pkgmetadata>
diff --git a/net-proxy/wwwoffle/wwwoffle-2.7h.ebuild b/net-proxy/wwwoffle/wwwoffle-2.7h.ebuild
new file mode 100644
index 000000000000..681b855546cc
--- /dev/null
+++ b/net-proxy/wwwoffle/wwwoffle-2.7h.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.7h.ebuild,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+DESCRIPTION="wwwoffle = WWW Offline Explorer, an adv. caching proxy especially suitable for nonpermanent (e.g. dialup) Internet connections"
+
+SRC_URI="ftp://ftp.demon.co.uk/pub/unix/httpd/${P}.tgz
+ ftp://ftp.ibiblio.org/pub/Linux/apps/www/servers/${P}.tgz"
+
+HOMEPAGE="http://www.gedanken.demon.co.uk/"
+KEYWORDS="x86 ~sparc ppc ppc64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="ipv6"
+DEPEND="sys-devel/flex
+ sys-libs/zlib
+ sys-devel/gcc
+ virtual/libc
+ >=sys-apps/sed-4"
+
+RDEPEND="sys-libs/zlib
+ virtual/libc"
+
+src_compile() {
+ local myconf
+ use ipv6 && myconf="$myconf --with-ipv6" || myconf="$myconf --without-ipv6"
+ ./configure $myconf --prefix=/usr --with-confdir=/etc || die
+
+ emake || die
+}
+
+src_install() {
+
+ sed -i -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' cache/Makefile
+
+ # Install the files
+ make prefix=${D}/usr SPOOLDIR=${D}/var/spool/wwwoffle CONFDIR=${D}/etc install || die
+
+ cd ${D}/etc
+ sed -i -e "s:${D}::" wwwoffle.conf
+
+ # Install the wwwoffled init script
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/{wwwoffled-online,wwwoffled}
+
+ # someday i'll make it use the file in /etc. for now we at least get
+ # config file protection this way.
+ dosym /etc/wwwoffle.conf /var/spool/wwwoffle/wwwoffle.conf
+}
+
+pkg_preinst() {
+ source /etc/init.d/functions.sh
+ if [ -L ${svcdir}/started/wwwoffled ]; then
+ einfo "The wwwoffled init script is running. I'll stop it, merge the new files and
+ restart the script."
+ /etc/init.d/wwwoffled stop
+ touch ${T}/restart
+ fi
+}
+
+pkg_postinst() {
+ if [ -f "${T}/restart" ]; then
+ einfo "Starting the wwwoffled initscript again..."
+ /etc/init.d/wwwoffled start
+ rm ${T}/restart
+ fi
+}
diff --git a/net-proxy/wwwoffle/wwwoffle-2.8b.ebuild b/net-proxy/wwwoffle/wwwoffle-2.8b.ebuild
new file mode 100644
index 000000000000..5e3812811499
--- /dev/null
+++ b/net-proxy/wwwoffle/wwwoffle-2.8b.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.8b.ebuild,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="wwwoffle = WWW Offline Explorer, an adv. caching proxy especially suitable for nonpermanent (e.g. dialup) Internet connections"
+
+SRC_URI="ftp://ftp.demon.co.uk/pub/unix/httpd/${P}.tgz
+ ftp://ftp.ibiblio.org/pub/Linux/apps/www/servers/${P}.tgz"
+
+HOMEPAGE="http://www.gedanken.demon.co.uk/wwwoffle"
+KEYWORDS="x86 sparc ppc ppc64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="ipv6"
+
+DEPEND=">=sys-apps/sed-4
+ sys-apps/gawk
+ sys-apps/grep
+ dev-lang/perl
+ sys-devel/flex
+ sys-libs/zlib
+ sys-devel/gcc
+ virtual/libc
+ app-arch/tar"
+
+RDEPEND="sys-libs/zlib
+ virtual/libc"
+
+src_unpack(){
+ unpack ${A}
+ cd ${S}
+ sed -i -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' cache/Makefile.in
+ sed -i -e "s#^docdir=.*#docdir=\$(DESTDIR)\${prefix}/share/doc/${P}#" doc/Makefile.in
+
+
+ ### adjust path for htdig - /usr/share/webapps/${PF}/cgi-bin/
+ ## (as per http://www.gentoo.org/proj/en/glep/glep-0011.html)
+ ## Not impliemented yet.
+
+ echo '/usr/share/webapps/*/cgi-bin/htsearch -c /var/spool/wwwoffle/search/htdig/conf/htsearch.conf' \
+ > cache/search/htdig/scripts/wwwoffle-htsearch
+ chmod a+x cache/search/htdig/scripts/wwwoffle-htsearch
+}
+
+src_compile() {
+
+ local myconf
+ myconf="`use_with ipv6`"
+ econf --with-confdir=/etc ${myconf} || die
+ emake || die
+
+ local conffile=conf/wwwoffle.conf.template
+ if [ -f ${ROOT}/etc/wwwoffle.conf ]
+ then
+ einfo "Upgrading current configuration file"
+ cp ${ROOT}/etc/wwwoffle.conf conf/wwwoffle.conf
+ conf/upgrade-config.pl conf/wwwoffle.conf
+ # Hack to stop regeneration of config file
+ touch conf/conf-file
+ conffile=conf/wwwoffle.conf
+ fi
+ # change to user wwwoffle
+ einfo "Changing the default user (and group) to wwwoffle"
+ sed -i -e 's/\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
+ ${conffile}
+}
+
+pkg_preinst() {
+
+ # Add a wwwoffle user - required here for binary packages
+ enewgroup wwwoffle
+ enewuser wwwoffle -1 /bin/false /var/spool/wwwoffle wwwoffle
+
+ # TODO maybe rootjail ${ROOT}
+ source /etc/init.d/functions.sh
+ if [ -L ${svcdir}/started/wwwoffled ]; then
+ einfo "The wwwoffled init script is running. I'll stop it, merge the new files and
+ restart the script."
+ /etc/init.d/wwwoffled stop
+ # Just to be sure...
+ start-stop-daemon --stop --quiet --name wwwoffled
+ touch ${T}/stopped
+ fi
+}
+
+
+src_install() {
+ emake DESTDIR=${D} install || die
+
+ # install the wwwoffled init script
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/wwwoffled
+ newexe ${FILESDIR}/wwwoffled-online-${PV} wwwoffled-online
+
+ # keep spool
+ keepdir /var/spool/wwwoffle/{http,outgoing,monitor,lasttime,prevtime[1-9],prevout[1-9],lastout,local}
+
+ fowners root:wwwoffle /var/spool/wwwoffle
+ # empty dirs are removed during update
+ keepdir \
+ /var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
+
+ # del empty doc dirs
+ rmdir ${D}/usr/share/doc/${P}/{it,nl,ru}
+
+ chown -R wwwoffle:wwwoffle \
+ ${D}/var/spool/wwwoffle/{http,outgoing,monitor,lasttime,prevtime[1-9],prevout[1-9],lastout,local} \
+ ${D}/var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
+
+ dodir /etc/conf.d
+ local config=${D}/etc/conf.d/wwwoffled-online
+ echo -e "\n\n# Enter the interface that connects you to the outside world" >> ${config}
+ echo '# This will correspond to /etc/init.d/net.${IFACE}' >> ${config}
+ echo -e "\n# IMPORTANT: Be sure to run depscan.sh after modifiying IFACE" >> ${config}
+ echo "IFACE=ppp0" >> ${config}
+
+}
+
+pkg_postinst() {
+ # fix permissions for those upgrading
+ chown -R wwwoffle:wwwoffle \
+ ${ROOT}/var/spool/wwwoffle/{http,outgoing,monitor,lasttime,prevtime[1-9],prevout[1-9],lastout,local} \
+ ${ROOT}/var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
+
+ chown root:wwwoffle /var/spool/wwwoffle
+ [ -f ${T}/stopped ] && \
+ ewarn "wwwoffled was stopped. /etc/init.d/wwwoffled start to restart AFTER etc-update"
+
+
+ einfo "wwwoffled should run as an ordinary user now. The run-uid and run-gid should be set"
+ einfo "to \"wwwoffle\" in your /etc/wwwoffle.conf. Please uncomment this if it hasn't been already"
+
+ einfo "This is for your own security. Otherwise wwwoffle is run as root which is relay bad if"
+ einfo "there is an exploit in this program that allows remote/local users to execute arbitary"
+ einfo "commands as the root user."
+
+}
diff --git a/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild b/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild
new file mode 100644
index 000000000000..2cd413f2652c
--- /dev/null
+++ b/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild,v 1.1 2005/04/22 19:15:12 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="wwwoffle = WWW Offline Explorer, an adv. caching proxy especially suitable for nonpermanent (e.g. dialup) Internet connections"
+
+SRC_URI="http://www.gedanken.freeserve.co.uk/download-wwwoffle/${P}.tgz"
+HOMEPAGE="http://www.gedanken.demon.co.uk/wwwoffle"
+KEYWORDS="~x86 ~sparc ~ppc ~ppc64 ~amd64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="ipv6"
+
+DEPEND=">=sys-apps/sed-4
+ sys-apps/gawk
+ sys-apps/grep
+ dev-lang/perl
+ sys-devel/flex
+ sys-libs/zlib
+ sys-devel/gcc
+ virtual/libc
+ app-arch/tar"
+
+RDEPEND="sys-libs/zlib
+ virtual/libc"
+
+# Unsure weither to depend or not
+# >=www-misc/htdig-3.1.6-r4"
+
+src_unpack(){
+ unpack ${A}
+ cd ${S}
+ sed -i -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' \
+ cache/Makefile.in
+}
+
+src_compile() {
+
+ # TODO confdir back to default /etc/wwwoffle
+ # allows to change config file using web interface.
+
+ local myconf
+ myconf="`use_with ipv6`"
+ econf ${myconf} || die
+ emake || die
+
+ if [ -f ${ROOT}/etc/wwwoffle.conf ]
+ then
+ einfo "Upgrading current configuration file"
+ cp ${ROOT}/etc/wwwoffle.conf conf/wwwoffle.conf
+ conf/upgrade-config.pl conf/wwwoffle.conf
+
+ # Hack to stop regeneration of config file
+ touch conf/conf-file
+
+ einfo "Changing the default user (and group) to wwwoffle"
+ sed -i -e 's/\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
+ onf/wwwoffle.conf
+ else
+ einfo "Changing the default user (and group) to wwwoffle"
+ sed -i -e 's/#\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
+ conf/wwwoffle.conf.template
+ fi
+
+}
+
+pkg_preinst() {
+
+ # Add a wwwoffle user - required here for binary packages
+ enewgroup wwwoffle
+ enewuser wwwoffle -1 /bin/false /var/spool/wwwoffle wwwoffle
+
+ # TODO maybe rootjail ${ROOT}
+ source /etc/init.d/functions.sh
+ if [ -L ${svcdir}/started/wwwoffled ]; then
+ einfo "The wwwoffled init script is running. I'll stop it, merge the new files and
+ restart the script."
+ /etc/init.d/wwwoffled stop
+ # Just to be sure...
+ start-stop-daemon --stop --quiet --name wwwoffled
+ touch ${T}/stopped
+ fi
+}
+
+
+src_install() {
+ emake DESTDIR=${D} install || die
+
+ # documentation fix
+ # del empty doc dirs
+ rmdir ${D}/usr/doc/${PN}/{it,nl,ru}
+ dodir /usr/share/doc
+ mv ${D}/usr/doc/wwwoffle ${D}/usr/share/doc/${PF}
+
+ #Updated configuration file
+ #if [ -f ${ROOT}/etc/wwwoffle.conf ];
+ #then
+ # mv ${D}/etc/wwwoffle.conf ${D}/etc/wwwoffle.conf.updated
+ #fi
+
+ # install the wwwoffled init script
+ newinitd ${FILESDIR}/${PN}.initd wwwoffled
+ newinitd ${FILESDIR}/${PN}-online.initd wwwoffled-online
+ newconfd ${FILESDIR}/${PN}-online.confd wwwoffled-online
+
+ keepdir /var/spool/wwwoffle/{http,outgoing,monitor,lasttime,lastout,local}
+ for number in 1 2 3 4 5 6 7 8 9;
+ do
+ keepdir /var/spool/wwwoffle/prevtime${number} /var/spool/wwwoffle/prevout${number}
+ done
+
+ # Need to sumbit patch upstream to allow this.
+ #fowners root:wwwoffle /var/spool/wwwoffle
+ #fowners wwwoffle:wwwoffle /var/spool/wwwoffle
+
+ # empty dirs are removed during update
+ keepdir \
+ /var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
+
+ touch \
+ ${D}/var/spool/wwwoffle/search/htdig/wwwoffle-htdig.log \
+ ${D}/var/spool/wwwoffle/search/mnogosearch/wwwoffle-mnogosearch.log \
+ ${D}/var/spool/wwwoffle/search/namazu/wwwoffle-namazu.log
+
+ chown -R wwwoffle:wwwoffle ${D}/var/spool/wwwoffle ${D}/etc/wwwoffle
+
+ # TODO htdig indexing as part of initscripts
+
+ # robots.txt modification - /var/spool/wwwoffle/html/en
+ # - remove Disallow: /index
+ sed -i -e "s|Disallow:.*/index|#Disallow: /index|" ${D}/var/spool/wwwoffle/html/en/robots.txt
+
+ rmdir ${D}/usr/doc
+}
+
+pkg_postinst() {
+ # fix permissions for those upgrading
+
+ for number in 1 2 3 4 5 6 7 8 9;
+ do
+ [ ! -d ${ROOT}/var/spool/wwwoffle/prevtime${number} ] && keepdir \
+ ${ROOT}/var/spool/wwwoffle/prevtime${number}
+ [ ! -d ${ROOT}/var/spool/wwwoffle/prevout${number} ] && keepdir \
+ ${ROOT}/var/spool/wwwoffle/prevout${number}
+ done
+
+ chown -R wwwoffle:wwwoffle ${ROOT}/var/spool/wwwoffle ${ROOT}/etc/wwwoffle
+
+ # Need to sumbit patch upstream to allow this.
+ #fowners root:wwwoffle /var/spool/wwwoffle
+ #fowners wwwoffle:wwwoffle /var/spool/wwwoffle
+
+ [ -f ${T}/stopped ] && \
+ ewarn "wwwoffled was stopped. /etc/init.d/wwwoffled start to restart AFTER etc-update"
+
+
+ einfo "wwwoffled should run as an ordinary user now. The run-uid and run-gid should be set"
+ einfo "to \"wwwoffle\" in your /etc/wwwoffle/wwwoffle.conf. Please uncomment this if it hasn't been already"
+
+ einfo "This is for your own security. Otherwise wwwoffle is run as root which is relay bad if"
+ einfo "there is an exploit in this program that allows remote/local users to execute arbitary"
+ einfo "commands as the root user."
+
+
+ if [ -f ${ROOT}/etc/wwwoffle.conf ];
+ then
+ ewarn "Configuration file is /etc/wwwoffle/wwwoffle.conf now"
+ ewarn "Suggest you move ${ROOT}etc/wwwoffle.conf"
+ fi
+
+
+ # if htdig - run script for full database index
+ # TODO
+}