Gentoo Archives: gentoo-commits

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