Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/tinyproxy: ChangeLog tinyproxy-1.8.1-r1.ebuild
Date: Thu, 03 Jun 2010 22:30:58
Message-Id: 20100603223052.C3DE12CF4B@corvid.gentoo.org
1 jer 10/06/03 22:30:52
2
3 Modified: ChangeLog
4 Added: tinyproxy-1.8.1-r1.ebuild
5 Log:
6 Fix various directory paths. Add tinyproxy user and make it own its directories. Fix configuration file location as used in initd script.
7 (Portage version: 2.2_rc67/cvs/Linux i686)
8
9 Revision Changes Path
10 1.17 net-proxy/tinyproxy/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/tinyproxy/ChangeLog?rev=1.17&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/tinyproxy/ChangeLog?rev=1.17&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/tinyproxy/ChangeLog?r1=1.16&r2=1.17
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v
19 retrieving revision 1.16
20 retrieving revision 1.17
21 diff -u -r1.16 -r1.17
22 --- ChangeLog 3 Jun 2010 21:46:23 -0000 1.16
23 +++ ChangeLog 3 Jun 2010 22:30:52 -0000 1.17
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-proxy/tinyproxy
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.16 2010/06/03 21:46:23 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.17 2010/06/03 22:30:52 jer Exp $
29 +
30 +*tinyproxy-1.8.1-r1 (03 Jun 2010)
31 +
32 + 03 Jun 2010; Jeroen Roovers <jer@g.o> +tinyproxy-1.8.1-r1.ebuild:
33 + Fix various directory paths. Add tinyproxy user and make it own its
34 + directories. Fix configuration file location as used in initd script.
35
36 03 Jun 2010; Jeroen Roovers <jer@g.o> tinyproxy-1.8.1.ebuild:
37 Remove USE=doc, only use USE=minimal.
38
39
40
41 1.1 net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tinyproxy-1.8.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 EAPI="2"
53
54 inherit autotools eutils
55
56 DESCRIPTION="A lightweight HTTP/SSL proxy"
57 HOMEPAGE="http://www.banu.com/tinyproxy/"
58 SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
63 IUSE="debug +filter-proxy minimal reverse-proxy transparent-proxy
64 +upstream-proxy +xtinyproxy-header"
65
66 DEPEND="minimal? ( app-text/asciidoc )"
67 RDEPEND=""
68
69 pkg_setup() {
70 enewgroup ${PN}
71 enewuser ${PN} "" "" "" ${PN}
72 }
73
74 src_prepare() {
75 epatch "${FILESDIR}"/${P}-ldflags.patch
76 use minimal && epatch "${FILESDIR}/${P}-minimal.patch"
77 sed -i etc/${PN}.conf.in -e "s|nobody|${PN}|g" || die "sed failed"
78 sed \
79 "${FILESDIR}/${PN}.initd" \
80 -e "/CONFFILE/s:${PN}/::g" \
81 > "${WORKDIR}"/${PN}.initd \
82 || die "sed failed"
83 eautoreconf
84 }
85
86 src_configure() {
87 if use minimal; then
88 ln -s /bin/true ${T}/a2x
89 export PATH="${T}:${PATH}"
90 fi
91 econf \
92 --localstatedir=/var \
93 $(use_enable filter-proxy filter) \
94 $(use_enable reverse-proxy reverse) \
95 $(use_enable transparent-proxy transparent) \
96 $(use_enable upstream-proxy upstream) \
97 $(use_enable xtinyproxy-header xtinyproxy) \
98 $(use_enable debug) \
99 || die "econf failed"
100 }
101
102 src_install() {
103 sed -i \
104 -e 's:mkdir $(datadir)/tinyproxy:mkdir -p $(DESTDIR)$(datadir)/tinyproxy:' \
105 Makefile
106 emake DESTDIR="${D}" install || die "install failed"
107
108 if ! use minimal; then
109 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
110 fi
111
112 diropts -m0775 -o ${PN} -g ${PN}
113 keepdir /var/log/${PN}
114 keepdir /var/run/${PN}
115
116 newinitd "${WORKDIR}"/tinyproxy.initd tinyproxy
117 }
118
119 pkg_postinst() {
120 einfo "For filtering domains and URLs, enable filter option in the configuration file"
121 einfo "and add them to the filter file (one domain or URL per line)."
122 }