Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/wwwoffle/
Date: Tue, 03 May 2016 19:18:11
Message-Id: 1462303021.43a78b14d63a70a70d78c90377358066acc3a9c3.wizardedit@gentoo
1 commit: 43a78b14d63a70a70d78c90377358066acc3a9c3
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 19:13:31 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 19:17:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a78b14
7
8 net-proxy/wwwoffle: remove old version
9
10 Package-Manager: portage-2.2.26
11
12 net-proxy/wwwoffle/wwwoffle-2.9i.ebuild | 107 --------------------------------
13 1 file changed, 107 deletions(-)
14
15 diff --git a/net-proxy/wwwoffle/wwwoffle-2.9i.ebuild b/net-proxy/wwwoffle/wwwoffle-2.9i.ebuild
16 deleted file mode 100644
17 index 18b187a..0000000
18 --- a/net-proxy/wwwoffle/wwwoffle-2.9i.ebuild
19 +++ /dev/null
20 @@ -1,107 +0,0 @@
21 -# Copyright 1999-2013 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=4
26 -inherit eutils user
27 -
28 -DESCRIPTION="Web caching proxy suitable for non-permanent Internet connections"
29 -HOMEPAGE="http://www.gedanken.org.uk/software/wwwoffle/"
30 -SRC_URI="http://www.gedanken.org.uk/software/${PN}/download/${P}.tgz"
31 -
32 -KEYWORDS="amd64 ppc ppc64 sparc x86"
33 -SLOT="0"
34 -LICENSE="GPL-2"
35 -IUSE="gnutls ipv6 zlib"
36 -
37 -RDEPEND="gnutls? ( net-libs/gnutls )
38 - zlib? ( sys-libs/zlib )"
39 -DEPEND="dev-lang/perl
40 - sys-devel/flex
41 - ${RDEPEND}"
42 -
43 -# Unsure whether to depend on >=www-misc/htdig-3.1.6-r4 or not
44 -
45 -src_prepare() {
46 - epatch "${FILESDIR}"/${PN}-2.9i-define.patch
47 - sed -i cache/Makefile.in \
48 - -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' \
49 - || die
50 -}
51 -
52 -src_configure() {
53 - econf \
54 - $(use_with gnutls) \
55 - $(use_with ipv6) \
56 - $(use_with zlib)
57 -}
58 -
59 -src_install() {
60 - default
61 -
62 - # documentation fix
63 - # del empty doc dirs
64 - rmdir "${D}/usr/doc/${PN}"/{it,nl,ru} || die
65 - dodir /usr/share/doc
66 - mv "${D}/usr/doc/${PN}" "${D}/usr/share/doc/${PF}" || die
67 - rmdir "${D}/usr/doc" || die
68 -
69 - # install the wwwoffled init script
70 - newinitd "${FILESDIR}/${PN}.initd" wwwoffled
71 - newinitd "${FILESDIR}/${PN}-online.initd" wwwoffled-online
72 - newconfd "${FILESDIR}/${PN}-online.confd" wwwoffled-online
73 -
74 - keepdir /var/spool/wwwoffle/{http,outgoing,monitor,lasttime,lastout,local}
75 - for number in 1 2 3 4 5 6 7 8 9; do
76 - keepdir "/var/spool/wwwoffle/prevtime${number}" "/var/spool/wwwoffle/prevout${number}"
77 - done
78 -
79 - # empty dirs are removed during update
80 - keepdir \
81 - /var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
82 -
83 - touch \
84 - "${D}/var/spool/wwwoffle/search/htdig/wwwoffle-htdig.log" \
85 - "${D}/var/spool/wwwoffle/search/mnogosearch/wwwoffle-mnogosearch.log" \
86 - "${D}/var/spool/wwwoffle/search/namazu/wwwoffle-namazu.log"
87 -
88 - # TODO htdig indexing as part of initscripts
89 -
90 - # robots.txt modification - /var/spool/wwwoffle/html/en
91 - # - remove Disallow: /index
92 - sed -i -e "s|Disallow:.*/index|#Disallow: /index|" "${D}/var/spool/wwwoffle/html/en/robots.txt"
93 -}
94 -
95 -pkg_preinst() {
96 - # Add a wwwoffle user
97 - enewgroup wwwoffle
98 - enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
99 -
100 - # Changing the user:group to wwwoffle:woffle
101 - fowners -R wwwoffle:wwwoffle /var/spool/wwwoffle /etc/wwwoffle
102 - sed -i -e 's/^[# \t]\(run-[gu]id[ \t]*=[ \t]*\)[a-zA-Z0-9]*[ \t]*$/ \1wwwoffle/g' \
103 - "${D}/etc/wwwoffle/wwwoffle.conf"
104 -
105 -}
106 -
107 -pkg_postinst() {
108 - # fix permissions for those upgrading
109 - for number in 1 2 3 4 5 6 7 8 9;
110 - do
111 - [ ! -d "${ROOT}/var/spool/wwwoffle/prevtime${number}" ] && \
112 - keepdir "${ROOT}/var/spool/wwwoffle/prevtime${number}"
113 - [ ! -d "${ROOT}/var/spool/wwwoffle/prevout${number}" ] && \
114 - keepdir "${ROOT}/var/spool/wwwoffle/prevout${number}"
115 - done
116 - chown -R wwwoffle:wwwoffle "${ROOT}/var/spool/wwwoffle" "${ROOT}/etc/wwwoffle"
117 -
118 - [ -f "${T}/stopped" ] && \
119 - ewarn "wwwoffled was stopped. /etc/init.d/wwwoffled start to restart AFTER etc-update"
120 -
121 - einfo "wwwoffled should run as an ordinary user now. The run-uid and run-gid should be set"
122 - einfo "to \"wwwoffle\" in your /etc/wwwoffle/wwwoffle.conf. Please uncomment this if it hasn't been already"
123 -
124 - einfo "This is for your own security. Otherwise wwwoffle is run as root which is relay bad if"
125 - einfo "there is an exploit in this program that allows remote/local users to execute arbitary"
126 - einfo "commands as the root user."
127 -}