# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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" SLOT="0" LICENSE="GPL-2" IUSE="ipv6" DEPEND=">=sys-apps/sed-4 sys-apps/gawk dev-lang/perl sys-devel/flex sys-libs/zlib sys-devel/gcc virtual/glibc" RDEPEND="sys-libs/zlib" 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 } src_compile() { local myconf myconf="`use_with ipv6`" econf --with-confdir=/etc ${myconf} || die emake || die } src_install() { make DESTDIR=${D} install || die # Install the wwwoffled init script exeinto /etc/init.d doexe ${FILESDIR}/{wwwoffled-online,wwwoffled} # keeo spool keepdir /var/spool/wwwoffle/{http,outgoing,monitor,lasttime,prevtime1,lastout,local} # empty dirs are removed during update keepdir /var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db} # del empty doc dirs rmdir ${D}/usr/share/doc/${P}/{it,nl,ru} }