210
|
1 # Copyright 1999-2009 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squirm/squirm-1.26.ebuild,v 1.1 2009/06/20 13:15:30 mrness Exp $
|
|
4
|
|
5 EAPI="2"
|
|
6
|
|
7 inherit eutils
|
|
8
|
|
9 DESCRIPTION="A redirector for Squid"
|
|
10 HOMEPAGE="http://squirm.foote.com.au"
|
|
11 SRC_URI="http://squirm.foote.com.au/${P}.tgz"
|
|
12
|
|
13 LICENSE="GPL-2"
|
|
14 SLOT="0"
|
|
15 KEYWORDS="~ppc ~x86"
|
|
16 IUSE=""
|
|
17
|
|
18 src_prepare() {
|
|
19 epatch "${FILESDIR}"/${P}-gentoo.patch
|
|
20 }
|
|
21
|
|
22 src_install() {
|
|
23 emake PREFIX="${D}/opt/squirm" install || die "emake install failed"
|
|
24 }
|
|
25
|
|
26 pkg_postinst() {
|
|
27 einfo "To enable squirm, add the following lines to /etc/squid/squid.conf:"
|
|
28 einfo " url_rewrite_program /opt/squirm/bin/squirm"
|
|
29 einfo " url_rewrite_children 10"
|
|
30 }
|