diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-06-03 22:30:52 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-06-03 22:30:52 +0000 |
commit | 26231d06fe033db5f9cd7bbc15dadf63569d637c (patch) | |
tree | 3d4d8cfd3e8f5c39632d997ee84be834b17e47e2 /net-proxy | |
parent | Tiny comment fix (diff) | |
download | gentoo-2-26231d06fe033db5f9cd7bbc15dadf63569d637c.tar.gz gentoo-2-26231d06fe033db5f9cd7bbc15dadf63569d637c.tar.bz2 gentoo-2-26231d06fe033db5f9cd7bbc15dadf63569d637c.zip |
Fix various directory paths. Add tinyproxy user and make it own its directories. Fix configuration file location as used in initd script.
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/tinyproxy/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild | 75 |
2 files changed, 82 insertions, 1 deletions
diff --git a/net-proxy/tinyproxy/ChangeLog b/net-proxy/tinyproxy/ChangeLog index 60fc65d28689..6957db3d954b 100644 --- a/net-proxy/tinyproxy/ChangeLog +++ b/net-proxy/tinyproxy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/tinyproxy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.16 2010/06/03 21:46:23 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.17 2010/06/03 22:30:52 jer Exp $ + +*tinyproxy-1.8.1-r1 (03 Jun 2010) + + 03 Jun 2010; Jeroen Roovers <jer@gentoo.org> +tinyproxy-1.8.1-r1.ebuild: + Fix various directory paths. Add tinyproxy user and make it own its + directories. Fix configuration file location as used in initd script. 03 Jun 2010; Jeroen Roovers <jer@gentoo.org> tinyproxy-1.8.1.ebuild: Remove USE=doc, only use USE=minimal. diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild new file mode 100644 index 000000000000..10f0d0f91ee5 --- /dev/null +++ b/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild,v 1.1 2010/06/03 22:30:52 jer Exp $ + +EAPI="2" + +inherit autotools eutils + +DESCRIPTION="A lightweight HTTP/SSL proxy" +HOMEPAGE="http://www.banu.com/tinyproxy/" +SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="debug +filter-proxy minimal reverse-proxy transparent-proxy + +upstream-proxy +xtinyproxy-header" + +DEPEND="minimal? ( app-text/asciidoc )" +RDEPEND="" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} "" "" "" ${PN} +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + use minimal && epatch "${FILESDIR}/${P}-minimal.patch" + sed -i etc/${PN}.conf.in -e "s|nobody|${PN}|g" || die "sed failed" + sed \ + "${FILESDIR}/${PN}.initd" \ + -e "/CONFFILE/s:${PN}/::g" \ + > "${WORKDIR}"/${PN}.initd \ + || die "sed failed" + eautoreconf +} + +src_configure() { + if use minimal; then + ln -s /bin/true ${T}/a2x + export PATH="${T}:${PATH}" + fi + econf \ + --localstatedir=/var \ + $(use_enable filter-proxy filter) \ + $(use_enable reverse-proxy reverse) \ + $(use_enable transparent-proxy transparent) \ + $(use_enable upstream-proxy upstream) \ + $(use_enable xtinyproxy-header xtinyproxy) \ + $(use_enable debug) \ + || die "econf failed" +} + +src_install() { + sed -i \ + -e 's:mkdir $(datadir)/tinyproxy:mkdir -p $(DESTDIR)$(datadir)/tinyproxy:' \ + Makefile + emake DESTDIR="${D}" install || die "install failed" + + if ! use minimal; then + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" + fi + + diropts -m0775 -o ${PN} -g ${PN} + keepdir /var/log/${PN} + keepdir /var/run/${PN} + + newinitd "${WORKDIR}"/tinyproxy.initd tinyproxy +} + +pkg_postinst() { + einfo "For filtering domains and URLs, enable filter option in the configuration file" + einfo "and add them to the filter file (one domain or URL per line)." +} |