Mercurial > hg > portage
changeset 210:c6edd24e6dd4
import squirm from portage
author | holger |
---|---|
date | Fri, 16 Apr 2010 16:42:26 +0200 |
parents | 5f5647863749 |
children | 7720e2fdea3f |
files | net-proxy/squirm/files/squirm-1.26-gentoo.patch net-proxy/squirm/metadata.xml net-proxy/squirm/squirm-1.26.ebuild |
diffstat | 3 files changed, 70 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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)
--- /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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-proxy</herd> +<longdescription>A redirector for Squid</longdescription> +</pkgmetadata>
--- /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" +}