summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-09-03 20:17:02 +0000
committerPacho Ramos <pacho@gentoo.org>2013-09-03 20:17:02 +0000
commit0ebecff2c5cd84736b2da59779e39bb9ddd45087 (patch)
tree0f8be685da6b5d7e2005b437c2470848447d2095 /net-proxy
parentAdd support for socket activation (#483270 by Henry Gebhardt and Alexander Tsoy) (diff)
downloadgentoo-2-0ebecff2c5cd84736b2da59779e39bb9ddd45087.tar.gz
gentoo-2-0ebecff2c5cd84736b2da59779e39bb9ddd45087.tar.bz2
gentoo-2-0ebecff2c5cd84736b2da59779e39bb9ddd45087.zip
Add unit file (#483370 by Andrius Štikonas)
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/privoxy/ChangeLog8
-rw-r--r--net-proxy/privoxy/files/privoxy.service10
-rw-r--r--net-proxy/privoxy/privoxy-3.0.21-r1.ebuild63
3 files changed, 80 insertions, 1 deletions
diff --git a/net-proxy/privoxy/ChangeLog b/net-proxy/privoxy/ChangeLog
index 32dcdf4ae380..0256ea2a2bf7 100644
--- a/net-proxy/privoxy/ChangeLog
+++ b/net-proxy/privoxy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/privoxy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/ChangeLog,v 1.83 2013/03/17 19:22:02 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/ChangeLog,v 1.84 2013/09/03 20:17:02 pacho Exp $
+
+*privoxy-3.0.21-r1 (03 Sep 2013)
+
+ 03 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/privoxy.service,
+ +privoxy-3.0.21-r1.ebuild:
+ Add unit file (#483370 by Andrius Štikonas)
17 Mar 2013; Agostino Sarubbo <ago@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.service b/net-proxy/privoxy/files/privoxy.service
new file mode 100644
index 000000000000..568123924781
--- /dev/null
+++ b/net-proxy/privoxy/files/privoxy.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Privoxy Web Proxy With Advanced Filtering Capabilities
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/privoxy --no-daemon --user privoxy.privoxy /etc/privoxy/config
+SuccessExitStatus=15
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-proxy/privoxy/privoxy-3.0.21-r1.ebuild b/net-proxy/privoxy/privoxy-3.0.21-r1.ebuild
new file mode 100644
index 000000000000..c839be995e30
--- /dev/null
+++ b/net-proxy/privoxy/privoxy-3.0.21-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/privoxy-3.0.21-r1.ebuild,v 1.1 2013/09/03 20:17:02 pacho Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs autotools systemd user
+
+[ "${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}"/${PN}-3.0.19-gentoo.patch
+ # autoreconf needs to be called even if we don't modify any autotools source files
+ # See main makefile
+ eautoreconf
+}
+
+src_configure() {
+ 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 () {
+ default
+
+ newinitd "${FILESDIR}/privoxy.initd" privoxy
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/privoxy.logrotate" privoxy
+
+ diropts -m 0750 -g privoxy -o privoxy
+ keepdir /var/log/privoxy
+}