summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-09-20 13:54:43 +0000
committerAlin Năstac <mrness@gentoo.org>2006-09-20 13:54:43 +0000
commit49c2927fa74c702781050a3c3506778481e95a4c (patch)
tree1b387b339f09c8713106e15e4f58517dd6a15ead /net-proxy
parentRemove obsolete versions. Version bump. (diff)
downloadhistorical-49c2927fa74c702781050a3c3506778481e95a4c.tar.gz
historical-49c2927fa74c702781050a3c3506778481e95a4c.tar.bz2
historical-49c2927fa74c702781050a3c3506778481e95a4c.zip
Remove obsolete versions. Version bump.
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/wwwoffle/Manifest41
-rw-r--r--net-proxy/wwwoffle/files/digest-wwwoffle-2.8e3
-rw-r--r--net-proxy/wwwoffle/files/digest-wwwoffle-2.93
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.8e.ebuild159
-rw-r--r--net-proxy/wwwoffle/wwwoffle-2.9.ebuild160
5 files changed, 22 insertions, 344 deletions
diff --git a/net-proxy/wwwoffle/Manifest b/net-proxy/wwwoffle/Manifest
index 0bbd5803ffb3..c62a5c23ce90 100644
--- a/net-proxy/wwwoffle/Manifest
+++ b/net-proxy/wwwoffle/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX wwwoffle-2.9-gcc41.patch 1728 RMD160 30664073ca03b3e1ef554a7d78e2c91fd75383e4 SHA1 eca8194632a4f525f37b007edfcf4e37ab34f4ce SHA256 9fb9f470964e6e307f11f88c5bb9afae87c1e807aa6bae939d965c5783f783b5
MD5 81b9c9d0eaf6200078fdb1380202de80 files/wwwoffle-2.9-gcc41.patch 1728
RMD160 30664073ca03b3e1ef554a7d78e2c91fd75383e4 files/wwwoffle-2.9-gcc41.patch 1728
@@ -18,34 +21,34 @@ AUX wwwoffle.initd 539 RMD160 f5f0c39adabadbdd74108d455a5b910ce66d92ea SHA1 5434
MD5 9976f6cc21d8fd01b67cb72fc7cf3198 files/wwwoffle.initd 539
RMD160 f5f0c39adabadbdd74108d455a5b910ce66d92ea files/wwwoffle.initd 539
SHA256 346b3d93113ed56096e8a052e62c3410eeb0936fe08842d64de0bdf0905e2db0 files/wwwoffle.initd 539
-DIST wwwoffle-2.8e.tgz 1015694 RMD160 a9243f0c2aab2c735ce355ee81d3a802e8d797dc SHA1 719cc53a2c66c14aa7dfcb6ca0ef9f033b454bd9 SHA256 3b5ed02d144ea8651524544a6621ca9cfd693189b8f661b1a44956e00978c515
DIST wwwoffle-2.9.tgz 1074108 RMD160 f5cbe205c3d0b5ba0cdc23bfa51f185cb8ec1f6c SHA1 51090c2cebc296722538f74a8dcae8d448d80c06 SHA256 ac5e779beae963cf2f3b0dd44f7ed64114a1c15aa2fb6f41ad7db9bc0f096df3
-EBUILD wwwoffle-2.8e.ebuild 5140 RMD160 43521ff92569aba2dc04f9b72c9d57fbf3974b78 SHA1 bcbd1b51a42083c1b9914c726dca3307bbc5f9fd SHA256 201b15e1add50c2180f2f1c2715e7b0792ba560a2876c84deeba15eb9a28d38c
-MD5 b32055c6ea5422b6186b09203a4315e2 wwwoffle-2.8e.ebuild 5140
-RMD160 43521ff92569aba2dc04f9b72c9d57fbf3974b78 wwwoffle-2.8e.ebuild 5140
-SHA256 201b15e1add50c2180f2f1c2715e7b0792ba560a2876c84deeba15eb9a28d38c wwwoffle-2.8e.ebuild 5140
+DIST wwwoffle-2.9a.tgz 1071362 RMD160 b183fe881f9824a0dbf11480fc8d98f57cd5a7f8 SHA1 9070d944c609979b9f8d14e38d31536214e2caf4 SHA256 23a469f6b4be39333fdbafb750dff890c0c6e9000144ad98d27c5461dddf9de1
EBUILD wwwoffle-2.9-r1.ebuild 5327 RMD160 f3b6ac3dccf4e08843b6e308c607417fa42dfa30 SHA1 e593fe3093b0d75eba36c790e463ed1c3439465e SHA256 ede12aba9cba1306084e47be5de6c50129ea26c70fce842027e602420e0a19c8
MD5 aad35114fefb64324932de3ce271eabd wwwoffle-2.9-r1.ebuild 5327
RMD160 f3b6ac3dccf4e08843b6e308c607417fa42dfa30 wwwoffle-2.9-r1.ebuild 5327
SHA256 ede12aba9cba1306084e47be5de6c50129ea26c70fce842027e602420e0a19c8 wwwoffle-2.9-r1.ebuild 5327
-EBUILD wwwoffle-2.9.ebuild 5288 RMD160 d017e9d4530b5cf14e637bfca448969d4e62720a SHA1 de1eeb64e2327976b0abad0866177d56544156bc SHA256 a13b501fb3000c762d76592d9dcda7632698650dcdc8f900997532d270b92571
-MD5 dfe72511c7f6ed01a62c5ed625fcc91a wwwoffle-2.9.ebuild 5288
-RMD160 d017e9d4530b5cf14e637bfca448969d4e62720a wwwoffle-2.9.ebuild 5288
-SHA256 a13b501fb3000c762d76592d9dcda7632698650dcdc8f900997532d270b92571 wwwoffle-2.9.ebuild 5288
-MISC ChangeLog 8573 RMD160 0817e29b3b7e5d1ad63f60a0f7b2cda24523ecfa SHA1 b252728d934ecaf5ff1979408cc9caf43e08a0ba SHA256 bea8baf6e68a7cf864839c29fa0af24c84ba0ea1978c5538e5ed2c7848ae0810
-MD5 d08afa41c14ef1a3ebb4b1117b9b2df0 ChangeLog 8573
-RMD160 0817e29b3b7e5d1ad63f60a0f7b2cda24523ecfa ChangeLog 8573
-SHA256 bea8baf6e68a7cf864839c29fa0af24c84ba0ea1978c5538e5ed2c7848ae0810 ChangeLog 8573
+EBUILD wwwoffle-2.9a.ebuild 5252 RMD160 f844ce344d79a4bad5cbc4bb7ff01a68f0a724c8 SHA1 64348efa4d9abcc5571b349bab26923559959dd1 SHA256 223de7f18da362db82aef5973c07d9dd3a8db8884aeafe840227854d5362fe7b
+MD5 973351d3e6c293db6e90d6e40a37bc4b wwwoffle-2.9a.ebuild 5252
+RMD160 f844ce344d79a4bad5cbc4bb7ff01a68f0a724c8 wwwoffle-2.9a.ebuild 5252
+SHA256 223de7f18da362db82aef5973c07d9dd3a8db8884aeafe840227854d5362fe7b wwwoffle-2.9a.ebuild 5252
+MISC ChangeLog 8764 RMD160 b31d54abc5e9d9cb5a65ee897c8c7daabc20abd0 SHA1 e455ae15163910bb303ce0bc18e03f078a0de65e SHA256 b6b6ff263713a1b8188a7c96363e1f45b528142b9be02bd03527509133298dff
+MD5 fb143af64b11aa85114b57c4f27b8297 ChangeLog 8764
+RMD160 b31d54abc5e9d9cb5a65ee897c8c7daabc20abd0 ChangeLog 8764
+SHA256 b6b6ff263713a1b8188a7c96363e1f45b528142b9be02bd03527509133298dff ChangeLog 8764
MISC metadata.xml 496 RMD160 83dcce07fea8707824659b0e9f84d9ea50bed6e8 SHA1 234ff53e9be6079bd54ba6b74e433dfc0ead37d0 SHA256 400cf41c4924baa4c622731d8066b62876c5f3bce7aa51f550057ba2beebe788
MD5 3acc1c195150e4b1528fc86076e4f292 metadata.xml 496
RMD160 83dcce07fea8707824659b0e9f84d9ea50bed6e8 metadata.xml 496
SHA256 400cf41c4924baa4c622731d8066b62876c5f3bce7aa51f550057ba2beebe788 metadata.xml 496
-MD5 b159f99563e9872421d6ac65f61bcef2 files/digest-wwwoffle-2.8e 235
-RMD160 234cd937525b60704e16645fa03c6a7ecbca03ce files/digest-wwwoffle-2.8e 235
-SHA256 e3e0eddd5f0ff1706e741a42325080efefa52bb8ade65db03eecda2033c96529 files/digest-wwwoffle-2.8e 235
-MD5 102c4a4c1eb23bcd1da560a1a754f67c files/digest-wwwoffle-2.9 232
-RMD160 450ced670f302827b7b23c1c2e95ee7d57da671b files/digest-wwwoffle-2.9 232
-SHA256 416572f05bfdbe9206351e861e69ed7ec558bda4b9e66dc33305d3da76ce01c7 files/digest-wwwoffle-2.9 232
MD5 102c4a4c1eb23bcd1da560a1a754f67c files/digest-wwwoffle-2.9-r1 232
RMD160 450ced670f302827b7b23c1c2e95ee7d57da671b files/digest-wwwoffle-2.9-r1 232
SHA256 416572f05bfdbe9206351e861e69ed7ec558bda4b9e66dc33305d3da76ce01c7 files/digest-wwwoffle-2.9-r1 232
+MD5 d3c25f5c62b3394d386cc183910888c6 files/digest-wwwoffle-2.9a 235
+RMD160 8a86e2e2de60661be3323e417cea6ee0374777e1 files/digest-wwwoffle-2.9a 235
+SHA256 f0a8dfabdeab4d4818d372a73911c625e22ff2d0558a9df84a4c7277df1078b6 files/digest-wwwoffle-2.9a 235
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFEUgh3sf9c6kjmR8RAt5zAJsETsKEnOz/c52aADra+rnSqtw64wCgi7q0
+KI2FaC4zu8U95Lr4J5awYpU=
+=r7FD
+-----END PGP SIGNATURE-----
diff --git a/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e b/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e
deleted file mode 100644
index 0469d5b0576c..000000000000
--- a/net-proxy/wwwoffle/files/digest-wwwoffle-2.8e
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 30828cc5a8a459f04f719bbb220003e7 wwwoffle-2.8e.tgz 1015694
-RMD160 a9243f0c2aab2c735ce355ee81d3a802e8d797dc wwwoffle-2.8e.tgz 1015694
-SHA256 3b5ed02d144ea8651524544a6621ca9cfd693189b8f661b1a44956e00978c515 wwwoffle-2.8e.tgz 1015694
diff --git a/net-proxy/wwwoffle/files/digest-wwwoffle-2.9 b/net-proxy/wwwoffle/files/digest-wwwoffle-2.9
deleted file mode 100644
index 5b6f24397ad7..000000000000
--- a/net-proxy/wwwoffle/files/digest-wwwoffle-2.9
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 e8e7f3bdf1ff0a9baa26e5aebd6ad396 wwwoffle-2.9.tgz 1074108
-RMD160 f5cbe205c3d0b5ba0cdc23bfa51f185cb8ec1f6c wwwoffle-2.9.tgz 1074108
-SHA256 ac5e779beae963cf2f3b0dd44f7ed64114a1c15aa2fb6f41ad7db9bc0f096df3 wwwoffle-2.9.tgz 1074108
diff --git a/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild b/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild
deleted file mode 100644
index 8b676bd73ca9..000000000000
--- a/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.8e.ebuild,v 1.7 2006/03/06 22:54:55 mrness Exp $
-
-inherit eutils
-
-DESCRIPTION="wwwoffle = WWW Offline Explorer, an adv. caching proxy especially suitable for nonpermanent (e.g. dialup) Internet connections"
-SRC_URI="http://www.gedanken.freeserve.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="ipv6"
-
-DEPEND="dev-lang/perl
- sys-devel/flex
- sys-libs/zlib"
-RDEPEND="sys-libs/zlib"
-
-# Unsure whether to depend on >=www-misc/htdig-3.1.6-r4 or not
-
-pkg_setup() {
- # Add a wwwoffle user
- enewgroup wwwoffle
- enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
-}
-
-src_unpack() {
- unpack ${A}
-
- sed -i -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' \
- "${S}/cache/Makefile.in"
-}
-
-src_compile() {
- # TODO confdir back to default /etc/wwwoffle
- # allows to change config file using web interface.
-
- local myconf
- myconf="`use_with ipv6`"
- econf ${myconf} || die
- emake || die
-
- if [ -f "${ROOT}/etc/wwwoffle.conf" ] ; then
- einfo "Upgrading current configuration file"
- cp "${ROOT}/etc/wwwoffle.conf" conf/wwwoffle.conf
- conf/upgrade-config.pl conf/wwwoffle.conf
-
- # Hack to stop regeneration of config file
- touch conf/conf-file
-
- einfo "Changing the default user (and group) to wwwoffle"
- sed -i -e 's/\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
- conf/wwwoffle.conf
- else
- einfo "Changing the default user (and group) to wwwoffle"
- sed -i -e 's/#\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
- conf/wwwoffle.conf.template
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
-
- # documentation fix
- # del empty doc dirs
- rmdir "${D}/usr/doc/${PN}"/{it,nl,ru}
- dodir /usr/share/doc
- mv "${D}/usr/doc/wwwoffle" "${D}/usr/share/doc/${PF}"
-
- #Updated configuration file
- #if [ -f "${ROOT}/etc/wwwoffle.conf" ]; then
- # mv "${D}/etc/wwwoffle.conf" "${D}/etc/wwwoffle.conf.updated"
- #fi
-
- # 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"
-
- chown -R wwwoffle:wwwoffle "${D}/var/spool/wwwoffle" "${D}/etc/wwwoffle"
-
- # 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"
-
- rmdir "${D}/usr/doc"
- chmod -R o-w "${D}/var/spool/wwwoffle" #some file have w permission for world!
-}
-
-pkg_preinst() {
- # Add a wwwoffle user - required here for binary packages
- enewgroup wwwoffle
- enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
-
- # TODO maybe rootjail ${ROOT}
- source /etc/init.d/functions.sh
- if [ -L "${svcdir}/started/wwwoffled" ]; then
- einfo "The wwwoffled init script is running. I'll stop it, merge the new files and
- restart the script."
- /etc/init.d/wwwoffled stop
- # Just to be sure...
- start-stop-daemon --stop --quiet --name wwwoffled
- touch "${T}/stopped"
- fi
-}
-
-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"
-
- # Need to sumbit patch upstream to allow this.
- #fowners root:wwwoffle /var/spool/wwwoffle
- #fowners wwwoffle:wwwoffle /var/spool/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."
-
- if [ -f "${ROOT}/etc/wwwoffle.conf" ]; then
- ewarn "Configuration file is /etc/wwwoffle/wwwoffle.conf now"
- ewarn "Suggest you move ${ROOT}etc/wwwoffle.conf"
- fi
-
- # if htdig - run script for full database index
- # TODO
-}
diff --git a/net-proxy/wwwoffle/wwwoffle-2.9.ebuild b/net-proxy/wwwoffle/wwwoffle-2.9.ebuild
deleted file mode 100644
index 419b2e31e0d4..000000000000
--- a/net-proxy/wwwoffle/wwwoffle-2.9.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/wwwoffle/wwwoffle-2.9.ebuild,v 1.7 2006/08/17 21:27:30 gustavoz Exp $
-
-inherit eutils
-
-DESCRIPTION="wwwoffle = WWW Offline Explorer, an adv. caching proxy especially suitable for nonpermanent (e.g. dialup) Internet connections"
-SRC_URI="http://www.gedanken.freeserve.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
-
-pkg_setup() {
- # Add a wwwoffle user
- enewgroup wwwoffle
- enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
-}
-
-src_unpack() {
- unpack ${A}
-
- epatch "${FILESDIR}/${P}-gcc41.patch"
- sed -i -e 's#$(TAR) xpf #$(TAR) --no-same-owner -xpf #' \
- "${S}/cache/Makefile.in"
-}
-
-src_compile() {
- # TODO confdir back to default /etc/wwwoffle
- # allows to change config file using web interface.
-
- econf $(use_with zlib) $(use_with gnutls) \
- $(use_with ipv6) || die "econf failed"
- emake || die "emake failed"
-
- if [ -f "${ROOT}/etc/wwwoffle.conf" ] ; then
- einfo "Upgrading current configuration file"
- cp "${ROOT}/etc/wwwoffle.conf" conf/wwwoffle.conf
- conf/upgrade-config.pl conf/wwwoffle.conf
-
- # Hack to stop regeneration of config file
- touch conf/conf-file
-
- einfo "Changing the default user (and group) to wwwoffle"
- sed -i -e 's/\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
- conf/wwwoffle.conf
- else
- einfo "Changing the default user (and group) to wwwoffle"
- sed -i -e 's/#\(run-[gu]id\)[ \t]*=[ \t]*[a-zA-Z0-9]*[ \t]*$/\1 = wwwoffle/g' \
- conf/wwwoffle.conf.template
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- # documentation fix
- # del empty doc dirs
- rmdir "${D}/usr/doc/${PN}"/{it,nl,ru}
- dodir /usr/share/doc
- mv "${D}/usr/doc/wwwoffle" "${D}/usr/share/doc/${PF}"
-
- #Updated configuration file
- #if [ -f "${ROOT}/etc/wwwoffle.conf" ]; then
- # mv "${D}/etc/wwwoffle.conf" "${D}/etc/wwwoffle.conf.updated"
- #fi
-
- # 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"
-
- chown -R wwwoffle:wwwoffle "${D}/var/spool/wwwoffle" "${D}/etc/wwwoffle"
-
- # 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"
-
- rmdir "${D}/usr/doc"
- chmod -R o-w "${D}/var/spool/wwwoffle" #some file have w permission for world!
-}
-
-pkg_preinst() {
- # Add a wwwoffle user - required here for binary packages
- enewgroup wwwoffle
- enewuser wwwoffle -1 -1 /var/spool/wwwoffle wwwoffle
-
- # TODO maybe rootjail ${ROOT}
- source /etc/init.d/functions.sh
- if [ -L "${svcdir}/started/wwwoffled" ]; then
- einfo "The wwwoffled init script is running. I'll stop it, merge the new files and
- restart the script."
- /etc/init.d/wwwoffled stop
- # Just to be sure...
- start-stop-daemon --stop --quiet --name wwwoffled
- touch "${T}/stopped"
- fi
-}
-
-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"
-
- # Need to sumbit patch upstream to allow this.
- #fowners root:wwwoffle /var/spool/wwwoffle
- #fowners wwwoffle:wwwoffle /var/spool/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."
-
- if [ -f "${ROOT}/etc/wwwoffle.conf" ]; then
- ewarn "Configuration file is /etc/wwwoffle/wwwoffle.conf now"
- ewarn "Suggest you move ${ROOT}etc/wwwoffle.conf"
- fi
-
- # if htdig - run script for full database index
- # TODO
-}