diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2008-04-25 10:00:12 +0000 |
---|---|---|
committer | Christian Faulhammer <fauli@gentoo.org> | 2008-04-25 10:00:12 +0000 |
commit | 5a11e3c337159b1b7b4b9476ab52f6da8d59533b (patch) | |
tree | 9841e78816018e890c39d57e003ffe9c6a166951 /net-misc | |
parent | add USE=logrotate for net-misc/tor (diff) | |
download | historical-5a11e3c337159b1b7b4b9476ab52f6da8d59533b.tar.gz historical-5a11e3c337159b1b7b4b9476ab52f6da8d59533b.tar.bz2 historical-5a11e3c337159b1b7b4b9476ab52f6da8d59533b.zip |
create the logrotate file with the correct permissions as pointed out on bug 216298 by Serge Koksharov <gentoosiast AT yandex DOT ru>
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/tor/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/tor/Manifest | 11 | ||||
-rw-r--r-- | net-misc/tor/tor-0.1.2.19-r1.ebuild | 69 |
3 files changed, 83 insertions, 6 deletions
diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog index e58090c469f8..8799022293cc 100644 --- a/net-misc/tor/ChangeLog +++ b/net-misc/tor/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/tor # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.113 2008/03/05 07:28:15 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.114 2008/04/25 10:00:12 opfer Exp $ + +*tor-0.1.2.19-r1 (25 Apr 2008) + + 25 Apr 2008; Christian Faulhammer <opfer@gentoo.org> + +tor-0.1.2.19-r1.ebuild: + create the logrotate file with the correct permissions as pointed out on bug + 216298 by Serge Koksharov <gentoosiast AT yandex DOT ru> 05 Mar 2008; Christian Faulhammer <opfer@gentoo.org> -tor-0.1.2.18.ebuild: clean up diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest index 7f53bb18dedd..848e13027776 100644 --- a/net-misc/tor/Manifest +++ b/net-misc/tor/Manifest @@ -5,13 +5,14 @@ AUX tor.initd-r3 1568 RMD160 ed03ef5176615af9867af3041fdf24851cd8d14a SHA1 0722b AUX tor.logrotate.patch 301 RMD160 47a096ae4e7ddabdd5974df3c8cd1b221641edbb SHA1 b3c158d27b23600cc87f5e0a2ebba732e5fe3f69 SHA256 e64ff0f7442a180bcc8f9bd5fc258058ceae227847e32b69de39b589236f09dc AUX torrc.sample-0.1.2.6.patch 1145 RMD160 3656774f05abe54ec22a121954a1d437fe1da520 SHA1 a0c658eafc8feb134e4ce8c7a5cdf94074ad79f5 SHA256 5b94e1d8c097626402b0b388fefb15f11b95db112b23d358e04cfe55331911f1 DIST tor-0.1.2.19.tar.gz 1264275 RMD160 4f1b5474a4bbad2e3c82ef0fce2dd838907e48d5 SHA1 5022dab0de2499e2c6638e1a2e9eee6c79fb707c SHA256 7e57198a0858f5ba8651d75225248c85b619e905f0ff4dbb45fffa2d03a1aa61 +EBUILD tor-0.1.2.19-r1.ebuild 1736 RMD160 35c91a72b8181c95898b820dccbaf7c18894cc04 SHA1 c8d48cbde01375ddb8afdbeec36c12580369682d SHA256 78d5037d51280ce92f5bd29b8eadf3e15840e95df763b4a94d928725439518fa EBUILD tor-0.1.2.19.ebuild 1637 RMD160 b33d4d166fd33c7df72f6f4a1633d372cc216667 SHA1 45fb66ee96e006c587b09c26f0aaa4e07f2f04bc SHA256 07082ec911f7eb7ce6278c579536feadf0c11261563b178f13ec4b7aa8980e5d -MISC ChangeLog 17263 RMD160 ad3c9bbf4cfecb3e904e8ebfcf883ff6c0854673 SHA1 5e86ba753844abf84165373b49067637da28a9c1 SHA256 f10cc35493e8ea4881e9bde7c29e4aff9ce8e2e865f0c5d243599165ae43d80e +MISC ChangeLog 17516 RMD160 8186497039d19262e7632cb5519fdb236bb7e732 SHA1 d5fe946c782a9e8fa71194c3278065c7f26c47cf SHA256 929563d0307f26b16220f6da9d515f301954e8d2796cb00c2f86abd203731d2a MISC metadata.xml 321 RMD160 c5d20db785883aa673606af809f81c2310aed8fa SHA1 cbc654c93f8c6b2ac2e703b80a74259e401f759b SHA256 a062efb060a3067e0c70786f24cbfcd894f055e5b79e8180d44d5fb50dd0e691 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.7 (GNU/Linux) +Version: GnuPG v2.0.9 (GNU/Linux) -iD8DBQFHzkwdNQqtfCuFneMRAvN6AJ9tYY4xtpSHpAozh6fS6qN6jBTHEwCfZFiq -GVbKw71gstEmMSGB74mZJ7s= -=63bz +iEYEARECAAYFAkgRq8oACgkQNQqtfCuFneP0SgCgnsdTzTYNhGRM1LcJj9IHvzqw +yuIAn2YN4EZabAOM0VR0rEu5jDnM2txp +=k2Fs -----END PGP SIGNATURE----- diff --git a/net-misc/tor/tor-0.1.2.19-r1.ebuild b/net-misc/tor/tor-0.1.2.19-r1.ebuild new file mode 100644 index 000000000000..4353fae19133 --- /dev/null +++ b/net-misc/tor/tor-0.1.2.19-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.1.2.19-r1.ebuild,v 1.1 2008/04/25 10:00:12 opfer Exp $ + +inherit eutils + +DESCRIPTION="Anonymizing overlay network for TCP" +HOMEPAGE="http://tor.eff.org" +MY_PV=${PV/_/-} +SRC_URI="http://tor.eff.org/dist/${PN}-${MY_PV}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug logrotate" + +DEPEND="dev-libs/openssl + >=dev-libs/libevent-1.2" +RDEPEND="${DEPEND} + net-proxy/tsocks" + +pkg_setup() { + enewgroup tor + enewuser tor -1 -1 /var/lib/tor tor +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch + epatch "${FILESDIR}"/tor.logrotate.patch +} + +src_compile() { + econf $(use_enable debug) + emake || die +} + +src_install() { + newinitd "${FILESDIR}"/tor.initd-r3 tor + emake DESTDIR="${D}" install || die + keepdir /var/{lib,log,run}/tor + + dodoc README ChangeLog AUTHORS ReleaseNotes \ + doc/{HACKING,TODO} \ + doc/spec/*.txt + + fperms 750 /var/lib/tor /var/log/tor + fperms 755 /var/run/tor + fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor + + if use logrotate; then + sed -e "s:/lib::" \ + -e "s:/rc.d::" \ + -e "s:\\*:\\*.:" \ + -e "s:endscript:create 0640 tor tor\n\tendscript:" -i contrib/tor.logrotate || die + insinto /etc/logrotate.d + newins contrib/tor.logrotate tor + fi +} + +pkg_postinst() { + elog "You must create /etc/tor/torrc, you can use the sample that is in that directory" + elog "To have privoxy and tor working together you must add:" + elog "forward-socks4a / localhost:9050 ." + elog "(notice the . at the end of the line)" + elog "to /etc/privoxy/config" +} |