# HG changeset patch # User holger # Date 1271428946 -7200 # Node ID c6edd24e6dd424cd4173014ee67f35eb6a17e601 # Parent 5f56478637496305b566f2a88dc643c71197dd41 import squirm from portage diff -r 5f5647863749 -r c6edd24e6dd4 net-proxy/squirm/files/squirm-1.26-gentoo.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-proxy/squirm/files/squirm-1.26-gentoo.patch Fri Apr 16 16:42:26 2010 +0200 @@ -0,0 +1,34 @@ +diff -Nru squirm-1.26.orig/Makefile squirm-1.26/Makefile +--- squirm-1.26.orig/Makefile 2005-08-19 09:31:06.000000000 +0200 ++++ squirm-1.26/Makefile 2009-06-20 14:58:18.000000000 +0200 +@@ -1,7 +1,7 @@ + # $Id: squirm-1.26-gentoo.patch,v 1.1 2009/06/20 13:15:30 mrness Exp $ + + # The path to install squirm under +-PREFIX=/usr/local/squirm ++PREFIX=/opt/squirm + + # The username that squid runs as (see cache_effective_user in squid.conf) + USER=squid +@@ -29,10 +29,10 @@ + CC=gcc + + +-OPTIMISATION=-O3 ++OPTIMISATION=-g + BINARIES = squirm + +-CFLAGS = -O3 -Wall -funroll-loops -DPREFIX=\"$(PREFIX)\" ++CFLAGS=-g -DPREFIX=\"$(PREFIX)\" + #CFLAGS = -Wall -g -DPREFIX=\"$(PREFIX)\" + #CFLAGS = -Wall -g -DDEBUG + +@@ -45,7 +45,7 @@ + install -m 750 -o $(USER) -g $(GROUP) -d $(PREFIX)/logs + install -m 660 -c -o root -g $(GROUP) squirm.conf.dist squirm.patterns.dist \ + $(PREFIX)/etc +- install -m 755 -o root -g $(ROOT_GROUP) --strip squirm $(PREFIX)/bin ++ install -m 755 -o root -g $(ROOT_GROUP) squirm $(PREFIX)/bin + + squirm.o: squirm.c $(HFILES) + $(CC) -c squirm.c $(CFLAGS) diff -r 5f5647863749 -r c6edd24e6dd4 net-proxy/squirm/metadata.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-proxy/squirm/metadata.xml Fri Apr 16 16:42:26 2010 +0200 @@ -0,0 +1,6 @@ + + + +net-proxy +A redirector for Squid + diff -r 5f5647863749 -r c6edd24e6dd4 net-proxy/squirm/squirm-1.26.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-proxy/squirm/squirm-1.26.ebuild Fri Apr 16 16:42:26 2010 +0200 @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squirm/squirm-1.26.ebuild,v 1.1 2009/06/20 13:15:30 mrness Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="A redirector for Squid" +HOMEPAGE="http://squirm.foote.com.au" +SRC_URI="http://squirm.foote.com.au/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_install() { + emake PREFIX="${D}/opt/squirm" install || die "emake install failed" +} + +pkg_postinst() { + einfo "To enable squirm, add the following lines to /etc/squid/squid.conf:" + einfo " url_rewrite_program /opt/squirm/bin/squirm" + einfo " url_rewrite_children 10" +}