summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-01-07 14:05:27 +0000
committerPacho Ramos <pacho@gentoo.org>2015-01-07 14:05:27 +0000
commit5df9e38fce8a754bccff982202a683f73ac0a57b (patch)
tree57234bbef90c2144a562b808a929f0926e24b749 /net-proxy/wwwoffle
parentReassign as and cleanup discussed at https://www.mail-archive.com/gentoo-dev@... (diff)
downloadgentoo-2-5df9e38fce8a754bccff982202a683f73ac0a57b.tar.gz
gentoo-2-5df9e38fce8a754bccff982202a683f73ac0a57b.tar.bz2
gentoo-2-5df9e38fce8a754bccff982202a683f73ac0a57b.zip
Reassign and cleanup as discussed at https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg66357.html
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-proxy/wwwoffle')
-rw-r--r--net-proxy/wwwoffle/ChangeLog9
-rw-r--r--net-proxy/wwwoffle/metadata.xml2
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.9h.ebuild105
3 files changed, 8 insertions, 108 deletions
diff --git a/net-proxy/wwwoffle/ChangeLog b/net-proxy/wwwoffle/ChangeLog
index 9f9064b97cd2..79b45a0f6be9 100644
--- a/net-proxy/wwwoffle/ChangeLog
+++ b/net-proxy/wwwoffle/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/wwwoffle
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/ChangeLog,v 1.61 2013/03/31 10:26:44 ago Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/ChangeLog,v 1.62 2015/01/07 14:05:27 pacho Exp $
+
+ 07 Jan 2015; Pacho Ramos <pacho@gentoo.org> -wwwoffle-2.9h.ebuild,
+ metadata.xml:
+ Reassign and cleanup as discussed at https://www.mail-archive.com/gentoo-
+ dev@lists.gentoo.org/msg66357.html
31 Mar 2013; Agostino Sarubbo <ago@gentoo.org> wwwoffle-2.9i.ebuild:
Stable for sparc, wrt bug #457462
diff --git a/net-proxy/wwwoffle/metadata.xml b/net-proxy/wwwoffle/metadata.xml
index 2e4d04e95643..a4e7c219354f 100644
--- a/net-proxy/wwwoffle/metadata.xml
+++ b/net-proxy/wwwoffle/metadata.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>net-proxy</herd>
+<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
<longdescription>The wwwoffled program is a simple proxy server with special features for use
with dial-up internet links. This means that it is possible to browse web pages and read them
without having to remain connected.
diff --git a/net-proxy/wwwoffle/wwwoffle-2.9h.ebuild b/net-proxy/wwwoffle/wwwoffle-2.9h.ebuild
deleted file mode 100644
index 6619a7d76b08..000000000000
--- a/net-proxy/wwwoffle/wwwoffle-2.9h.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.9h.ebuild,v 1.6 2012/12/29 14:25:48 ago Exp $
-
-EAPI=4
-inherit user
-
-DESCRIPTION="Web caching proxy suitable for non-permanent Internet connections"
-SRC_URI="http://www.gedanken.demon.co.uk/download-wwwoffle/${P}.tgz"
-HOMEPAGE="http://www.gedanken.demon.co.uk/wwwoffle"
-
-KEYWORDS="amd64 ppc ppc64 sparc x86"
-SLOT="0"
-LICENSE="GPL-2"
-IUSE="gnutls ipv6 zlib"
-
-RDEPEND="gnutls? ( net-libs/gnutls )
- zlib? ( sys-libs/zlib )"
-DEPEND="dev-lang/perl
- sys-devel/flex
- ${RDEPEND}"
-
-# Unsure whether to depend on >=www-misc/htdig-3.1.6-r4 or not
-
-src_prepare() {
- sed -i cache/Makefile.in \
- -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' \
- || die
-}
-
-src_configure() {
- econf $(use_with zlib) \
- $(use_with gnutls) \
- $(use_with ipv6) || die "econf failed"
-}
-
-src_install() {
- default
-
- # documentation fix
- # del empty doc dirs
- rmdir "${D}/usr/doc/${PN}"/{it,nl,ru}
- dodir /usr/share/doc
- mv "${D}/usr/doc/${PN}" "${D}/usr/share/doc/${PF}"
- rmdir "${D}/usr/doc"
-
- # install the wwwoffled init script
- newinitd "${FILESDIR}/${PN}.initd" wwwoffled
- newinitd "${FILESDIR}/${PN}-online.initd" wwwoffled-online
- newconfd "${FILESDIR}/${PN}-online.confd" wwwoffled-online
-
- keepdir /var/spool/wwwoffle/{http,outgoing,monitor,lasttime,lastout,local}
- for number in 1 2 3 4 5 6 7 8 9; do
- keepdir "/var/spool/wwwoffle/prevtime${number}" "/var/spool/wwwoffle/prevout${number}"
- done
-
- # empty dirs are removed during update
- keepdir \
- /var/spool/wwwoffle/search/{mnogosearch/db,htdig/tmp,htdig/db-lasttime,htdig/db,namazu/db}
-
- touch \
- "${D}/var/spool/wwwoffle/search/htdig/wwwoffle-htdig.log" \
- "${D}/var/spool/wwwoffle/search/mnogosearch/wwwoffle-mnogosearch.log" \
- "${D}/var/spool/wwwoffle/search/namazu/wwwoffle-namazu.log"
-
- # TODO htdig indexing as part of initscripts
-
- # robots.txt modification - /var/spool/wwwoffle/html/en
- # - remove Disallow: /index
- sed -i -e "s|Disallow:.*/index|#Disallow: /index|" "${D}/var/spool/wwwoffle/html/en/robots.txt"
-}
-
-pkg_preinst() {
- # Add a wwwoffle user
- enewgroup wwwoffle
- enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
-
- # Changing the user:group to wwwoffle:woffle
- fowners -R wwwoffle:wwwoffle /var/spool/wwwoffle /etc/wwwoffle
- sed -i -e 's/^[# \t]\(run-[gu]id[ \t]*=[ \t]*\)[a-zA-Z0-9]*[ \t]*$/ \1wwwoffle/g' \
- "${D}/etc/wwwoffle/wwwoffle.conf"
-
-}
-
-pkg_postinst() {
- # fix permissions for those upgrading
- for number in 1 2 3 4 5 6 7 8 9;
- do
- [ ! -d "${ROOT}/var/spool/wwwoffle/prevtime${number}" ] && \
- keepdir "${ROOT}/var/spool/wwwoffle/prevtime${number}"
- [ ! -d "${ROOT}/var/spool/wwwoffle/prevout${number}" ] && \
- keepdir "${ROOT}/var/spool/wwwoffle/prevout${number}"
- done
- chown -R wwwoffle:wwwoffle "${ROOT}/var/spool/wwwoffle" "${ROOT}/etc/wwwoffle"
-
- [ -f "${T}/stopped" ] && \
- ewarn "wwwoffled was stopped. /etc/init.d/wwwoffled start to restart AFTER etc-update"
-
- einfo "wwwoffled should run as an ordinary user now. The run-uid and run-gid should be set"
- einfo "to \"wwwoffle\" in your /etc/wwwoffle/wwwoffle.conf. Please uncomment this if it hasn't been already"
-
- einfo "This is for your own security. Otherwise wwwoffle is run as root which is relay bad if"
- einfo "there is an exploit in this program that allows remote/local users to execute arbitary"
- einfo "commands as the root user."
-}