diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-23 23:07:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-23 23:07:00 +0000 |
commit | b28b919120c854e53c8a1d0fb97ba853ee18d641 (patch) | |
tree | 7f4147c4d588224fef2c534717956f51d8f3da38 /net-proxy/junkbuster | |
parent | another shot at the crystal icon problem (diff) | |
download | gentoo-2-b28b919120c854e53c8a1d0fb97ba853ee18d641.tar.gz gentoo-2-b28b919120c854e53c8a1d0fb97ba853ee18d641.tar.bz2 gentoo-2-b28b919120c854e53c8a1d0fb97ba853ee18d641.zip |
touchups and arm love
(Portage version: 2.0.53)
Diffstat (limited to 'net-proxy/junkbuster')
-rw-r--r-- | net-proxy/junkbuster/files/junkbuster-2.0.2-fixups.patch | 37 | ||||
-rw-r--r-- | net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild | 26 |
2 files changed, 37 insertions, 26 deletions
diff --git a/net-proxy/junkbuster/files/junkbuster-2.0.2-fixups.patch b/net-proxy/junkbuster/files/junkbuster-2.0.2-fixups.patch index 47ed33eed0d0..434469a94b54 100644 --- a/net-proxy/junkbuster/files/junkbuster-2.0.2-fixups.patch +++ b/net-proxy/junkbuster/files/junkbuster-2.0.2-fixups.patch @@ -1,6 +1,5 @@ -diff -Nru ijb20.orig/filters.c ijb20/filters.c ---- ijb20.orig/filters.c 2000-03-29 16:05:42.000000000 +0300 -+++ ijb20/filters.c 2005-04-12 22:54:06.295702048 +0300 +--- ijb20/filters.c ++++ ijb20/filters.c @@ -652,7 +652,7 @@ ij_untrusted_url(struct http_request *http, struct client_state *csp) { @@ -32,9 +31,8 @@ diff -Nru ijb20.orig/filters.c ijb20/filters.c urls_read, urls_rejected+1, perc_rej); s = strsav(s,out_str); -diff -Nru ijb20.orig/socks4.c ijb20/socks4.c ---- ijb20.orig/socks4.c 1998-10-30 23:58:48.000000000 +0200 -+++ ijb20/socks4.c 2005-04-12 22:44:47.367672024 +0300 +--- ijb20/socks4.c ++++ ijb20/socks4.c @@ -9,6 +9,7 @@ #include <stdio.h> #include <sys/types.h> @@ -52,9 +50,8 @@ diff -Nru ijb20.orig/socks4.c ijb20/socks4.c int n, csiz, sfd, target_port; int err = 0; char *errstr, *target_host; -diff -Nru ijb20.orig/ssplit.c ijb20/ssplit.c ---- ijb20.orig/ssplit.c 1998-10-30 23:58:48.000000000 +0200 -+++ ijb20/ssplit.c 2005-04-12 22:44:47.368671872 +0300 +--- ijb20/ssplit.c ++++ ijb20/ssplit.c @@ -19,6 +19,9 @@ */ @@ -65,3 +62,25 @@ diff -Nru ijb20.orig/ssplit.c ijb20/ssplit.c int ssplit(char *s, char *c, char *v[], int n, int m, int l) { +--- ijb20/Makefile ++++ ijb20/Makefile +@@ -8,8 +8,8 @@ + PROG = junkbuster + O = o + RM = rm -f +-CC = gcc +-MORE_CFLAGS = -O3 -D_DISTNAME="$(DISTNAME)" -D_DISTURL="$(DISTURL)" ++CC ?= gcc ++MORE_CFLAGS = -D_DISTNAME="$(DISTNAME)" -D_DISTURL="$(DISTURL)" + + # use this for Solaris 2.x + #LDFLAGS = -lnsl -lsocket +@@ -67,7 +67,7 @@ + #MORE_CFLAGS = -relax_pointers + #LDFLAGS = -map junkbuster.xMAP + +-CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) ++CFLAGS += $(DEFAULT_CFLAGS) $(MORE_CFLAGS) + + OBJS = jcc.$(O) parsers.$(O) filters.$(O) loaders.$(O) bind.$(O) conn.$(O) \ + encode.$(O) ssplit.$(O) socks4.$(O) acl.$(O) gnu_regex.$(O) win32.$(O) diff --git a/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild b/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild index 7269cdc67eae..d6d510098f4d 100644 --- a/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild +++ b/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild @@ -1,6 +1,7 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild,v 1.2 2005/07/01 19:49:02 mkennedy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/junkbuster/junkbuster-2.0.2-r3.ebuild,v 1.3 2005/12/23 23:07:00 vapier Exp $ + inherit eutils DESCRIPTION="Filtering HTTP proxy" @@ -9,36 +10,27 @@ SRC_URI="http://www.waldherr.org/redhat/rpm/srpm/junkbuster-2.0.2-8.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 sparc ppc ~amd64" +KEYWORDS="~amd64 arm ppc sparc x86" IUSE="" -DEPEND="virtual/libc" +DEPEND="" S=${WORKDIR}/ijb20 src_unpack() { unpack ${A} - - cd ${S} - epatch ${FILESDIR}/${P}-fixups.patch - - sed -i -e 's:^CFLAGS *=:CFLAGS +=:' ${S}/Makefile + cd "${S}" + epatch "${FILESDIR}"/${P}-fixups.patch } src_install () { - dosbin junkbuster - - dodir /etc/init.d - exeinto /etc/init.d - newexe ${FILESDIR}/junkbuster.rc6 junkbuster - - dodir /etc/junkbuster + dosbin junkbuster || die + newinitd "${FILESDIR}"/junkbuster.rc6 junkbuster insinto /etc/junkbuster doins blocklist config cookiefile forward imagelist - dohtml gpl.html ijbman.html ijbfaq.html + dohtml ijbman.html ijbfaq.html dodoc README README.TOO README.WIN squid.txt - doman junkbuster.1 dodir /var/log/junkbuster |