diff options
author | Torsten Veller <tove@gentoo.org> | 2010-05-08 11:00:50 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2010-05-08 11:00:50 +0000 |
commit | 1b427c7ce82d5d3e54a680900621da8117196777 (patch) | |
tree | 04d5b6339c8668b6e396a6b5b5a6ff9879469621 /net-proxy | |
parent | amd64 stable, bug 315275 (diff) | |
download | gentoo-2-1b427c7ce82d5d3e54a680900621da8117196777.tar.gz gentoo-2-1b427c7ce82d5d3e54a680900621da8117196777.tar.bz2 gentoo-2-1b427c7ce82d5d3e54a680900621da8117196777.zip |
Version bump (#308615). Fix docdir and logdir (#297206)
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/privoxy/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/privoxy/files/privoxy-3.0.16-gentoo.patch | 108 | ||||
-rw-r--r-- | net-proxy/privoxy/privoxy-3.0.16.ebuild | 63 |
3 files changed, 178 insertions, 1 deletions
diff --git a/net-proxy/privoxy/ChangeLog b/net-proxy/privoxy/ChangeLog index c91ced85e79b..1926a0b29a3c 100644 --- a/net-proxy/privoxy/ChangeLog +++ b/net-proxy/privoxy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/privoxy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/ChangeLog,v 1.56 2010/01/23 18:32:42 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/ChangeLog,v 1.57 2010/05/08 11:00:50 tove Exp $ + +*privoxy-3.0.16 (08 May 2010) + + 08 May 2010; Torsten Veller <tove@gentoo.org> +privoxy-3.0.16.ebuild, + +files/privoxy-3.0.16-gentoo.patch: + Version bump (#308615). Fix docdir and logdir (#297206) 23 Jan 2010; Raúl Porcel <armin76@gentoo.org> privoxy-3.0.12.ebuild, privoxy-3.0.13_beta.ebuild, privoxy-3.0.14_beta.ebuild, diff --git a/net-proxy/privoxy/files/privoxy-3.0.16-gentoo.patch b/net-proxy/privoxy/files/privoxy-3.0.16-gentoo.patch new file mode 100644 index 000000000000..d445ec1b01c5 --- /dev/null +++ b/net-proxy/privoxy/files/privoxy-3.0.16-gentoo.patch @@ -0,0 +1,108 @@ +--- privoxy/GNUmakefile.in ++++ privoxy/GNUmakefile.in +@@ -61,10 +61,10 @@ + MAN_DIR = @mandir@ + MAN_DEST = $(MAN_DIR)/man1 + SHARE_DEST = @datadir@ +-DOC_DEST = $(SHARE_DEST)/doc/privoxy ++DOC_DEST = @docdir@ +-VAR_DEST = @localstatedir@ ++VAR_DEST = /var + LOGS_DEST = $(VAR_DEST)/log/privoxy + PIDS_DEST = $(VAR_DEST)/run + + # if $prefix = /usr/local then the default CONFDEST change from + # CONF_DEST = $(CONF_BASE) to CONF_DEST = $(CONF_BASE)/privoxy +@@ -901,34 +901,8 @@ + fi ;\ + $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\ + for i in $(CONFIGS); do \ +- if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] ; then \ +- $(RM) $(DESTDIR)$(CONF_DEST)/$$i ;\ +- $(ECHO) Installing fresh $$i;\ + $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\ +- elif [ -s "$(CONF_DEST)/$$i" ]; then \ +- $(ECHO) Installing $$i as $$i.new ;\ +- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST)/$$i.new || exit 1;\ +- NEW=1;\ +- else \ +- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\ +- fi ;\ + done ;\ +- if [ -n "$$NEW" ]; then \ +- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\ +- $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\ +- fi ;\ +- [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \ +- $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\ +- $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\ +- if [ x$$USER != x ]; then \ +- $(CHOWN) $$USER $(DESTDIR)$(LOG_DEST)/logfile || \ +- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\ +- fi ;\ +- if [ x$$GROUP_T != x ]; then \ +- $(CHGRP) $$GROUP_T $(DESTDIR)$(LOG_DEST)/logfile || \ +- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\ +- fi ;\ +- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\ + if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \ + if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \ + $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \ +--- privoxy/config ++++ privoxy/config +@@ -267,7 +267,7 @@ + # + # No trailing "/", please. + # +-confdir . ++confdir /etc/privoxy + # + # + # 2.2. templdir +@@ -324,7 +324,7 @@ + # + # No trailing "/", please. + # +-logdir . ++logdir /var/log/privoxy + # + # + # 2.4. actionsfile +@@ -464,7 +464,7 @@ + # Any log files must be writable by whatever user Privoxy is + # being run as (on Unix, default user id is "privoxy"). + # +-logfile logfile ++logfile privoxy.log + # + # + # 2.7. trustfile +--- privoxy/default.action.master ++++ privoxy/default.action.master +@@ -564,7 +564,7 @@ + { \ + +change-x-forwarded-for{block} \ + +hide-from-header{block} \ +-+set-image-blocker{pattern} \ +++set-image-blocker{blank} \ + } + standard.Cautious + +@@ -584,7 +584,7 @@ + +hide-from-header{block} \ + +hide-referrer{conditional-block} \ + +session-cookies-only \ +-+set-image-blocker{pattern} \ +++set-image-blocker{blank} \ + } + standard.Medium + +@@ -623,7 +623,7 @@ + +hide-referrer{conditional-block} \ + +limit-connect{,} \ + +overwrite-last-modified{randomize} \ +-+set-image-blocker{pattern} \ +++set-image-blocker{blank} \ + } + standard.Advanced + diff --git a/net-proxy/privoxy/privoxy-3.0.16.ebuild b/net-proxy/privoxy/privoxy-3.0.16.ebuild new file mode 100644 index 000000000000..319967b90a46 --- /dev/null +++ b/net-proxy/privoxy/privoxy-3.0.16.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/privoxy-3.0.16.ebuild,v 1.1 2010/05/08 11:00:50 tove Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs autotools + +[ "${PV##*_}" = "beta" ] && + PRIVOXY_STATUS="beta" || + PRIVOXY_STATUS="stable" + +HOMEPAGE="http://www.privoxy.org + http://sourceforge.net/projects/ijbswa/" +DESCRIPTION="A web proxy with advanced filtering capabilities for protecting privacy against Internet junk" +SRC_URI="mirror://sourceforge/ijbswa/${P%_*}-${PRIVOXY_STATUS}-src.tar.gz" + +IUSE="selinux threads zlib" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +LICENSE="GPL-2" + +DEPEND="dev-libs/libpcre + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-privoxy )" + +S="${WORKDIR}/${P%_*}-${PRIVOXY_STATUS}" + +pkg_setup() { + enewgroup privoxy + enewuser privoxy -1 -1 /etc/privoxy privoxy +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + # autoreconf needs to be called even if we don't modify any autotools source files + # See main makefile + eautoreconf || die "eautoreconf failed" +} + +src_configure() { + export CC=$(tc-getCC) + econf \ + $(use_enable zlib) \ + $(use_enable threads pthread) \ + --enable-dynamic-pcre \ + --with-user=privoxy \ + --with-group=privoxy \ + --sysconfdir=/etc/privoxy \ + --docdir=/usr/share/doc/${PF} +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + + newinitd "${FILESDIR}/privoxy.initd" privoxy + insinto /etc/logrotate.d + newins "${FILESDIR}/privoxy.logrotate" privoxy + + diropts -m 0750 -g privoxy -o privoxy + keepdir /var/log/privoxy +} |