summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-06-08 08:19:50 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-06-08 08:23:16 -0400
commit0e0d82e2749f750546d2dc1d2fade7a26c232511 (patch)
treee15bee350f8feb54f79f826ae02abadecd105ff2 /www-servers
parentwww-servers/thttpd: version bump to 2.27.1 (diff)
downloadgentoo-0e0d82e2749f750546d2dc1d2fade7a26c232511.tar.gz
gentoo-0e0d82e2749f750546d2dc1d2fade7a26c232511.tar.bz2
gentoo-0e0d82e2749f750546d2dc1d2fade7a26c232511.zip
www-servers/thttpd: drop older stable versions 2.26.4-r3
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/thttpd/Manifest1
-rw-r--r--www-servers/thttpd/files/thttpd-fix-world-readable-log.patch59
-rw-r--r--www-servers/thttpd/thttpd-2.26.4-r3.ebuild73
3 files changed, 0 insertions, 133 deletions
diff --git a/www-servers/thttpd/Manifest b/www-servers/thttpd/Manifest
index 8a4f8a093132..a404b876e5d0 100644
--- a/www-servers/thttpd/Manifest
+++ b/www-servers/thttpd/Manifest
@@ -1,3 +1,2 @@
-DIST sthttpd-2.26.4.tar.gz 194544 SHA256 78e87979140cbda123c81b4051552242dbbffb5dec1a17e5f95ec4826b1eaddb SHA512 64d0ab4720cc0a8926bc8537d335f5238e5343cf6caad837fe09fe46bfaaaa7013b690193905b3db31a5e945141e7fb3aca52355459ff151ce56b30cfefccd87 WHIRLPOOL e38cce33dd417ce8e30426d0764797e24ebfab2060bacf2f27ee2717b2025e48e6f32245cc6a5ebfed856f8755098f1540ec7ed2005aad1aeff65454dd731c1a
DIST sthttpd-2.27.0.tar.gz 206781 SHA256 97d660a881331e93818e872ce11536f461105d70a18dfc5de5895851c4b2afdb SHA512 78945867a01de2f9019deb2d1f21cdedf675c9d67f5de672d0d0bfdc397b444ac287a91d96976dddcdca080cc944e72dd3d1f95f31a592eb839125c494799bdc WHIRLPOOL 55ab90405b3affcb260dc4cfa14008f79cc0b2fd808686078b34ae0a6be2cc4941241406d78f9c2d06360ab6a07f1bf4abc1cf814a46ebe136f031058026419f
DIST thttpd-2.27.1.tar.gz 96430 SHA256 a1ee2806432eaf5b5dd267a0523701f9f1fa00fefd499d5bec42165a41e05846 SHA512 5d42e32652eb2310c7379d2c4373ad8f54b33bd7c2b444f06d1756eb4ed296774ce3144d91bbba85c6ad604e575128dc7199b797dc8d1b4849b0249054ba5d24 WHIRLPOOL e64b132e83b459fb0ab6da6f3a15c4a603f8d4f53f123cabccc82077506a258c616c2703992b671e9193c26c452bd3b6908ebfadfb15301f1e34f8925303f625
diff --git a/www-servers/thttpd/files/thttpd-fix-world-readable-log.patch b/www-servers/thttpd/files/thttpd-fix-world-readable-log.patch
deleted file mode 100644
index 5c011bac52b5..000000000000
--- a/www-servers/thttpd/files/thttpd-fix-world-readable-log.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From d2e186dbd58d274a0dea9b59357edc8498b5388d Mon Sep 17 00:00:00 2001
-From: "Anthony G. Basile" <blueness@gentoo.org>
-Date: Tue, 26 Feb 2013 14:28:26 -0500
-Subject: [PATCH] src/thttpd.c: Fix world readable log, CVE-2013-0348.
-
-Make sure that the logfile is created or reopened as read/write
-by thttpd user only.
-
-X-gentoo-Bug: 458896
-X-gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=458896
-Reported-by: Agostino Sarubbo <ago@gentoo.org>
-Signed-off-by: Anthony G. Basile <basile@opensource.dyc.edu>
----
- src/thttpd.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/thttpd.c b/src/thttpd.c
-index 019b8c0..f33a7a7 100644
---- a/src/thttpd.c
-+++ b/src/thttpd.c
-@@ -326,6 +326,7 @@ static void
- re_open_logfile( void )
- {
- FILE* logfp;
-+ int retchmod;
-
- if ( no_log || hs == (httpd_server*) 0 )
- return;
-@@ -335,7 +336,8 @@ re_open_logfile( void )
- {
- syslog( LOG_NOTICE, "re-opening logfile" );
- logfp = fopen( logfile, "a" );
-- if ( logfp == (FILE*) 0 )
-+ retchmod = chmod( logfile, S_IRUSR|S_IWUSR );
-+ if ( logfp == (FILE*) 0 || retchmod != 0 )
- {
- syslog( LOG_CRIT, "re-opening %.80s - %m", logfile );
- return;
-@@ -355,6 +357,7 @@ main( int argc, char** argv )
- gid_t gid = 32767;
- char cwd[MAXPATHLEN+1];
- FILE* logfp;
-+ int retchmod;
- int num_ready;
- int cnum;
- connecttab* c;
-@@ -424,7 +427,8 @@ main( int argc, char** argv )
- else
- {
- logfp = fopen( logfile, "a" );
-- if ( logfp == (FILE*) 0 )
-+ retchmod = chmod( logfile, S_IRUSR|S_IWUSR );
-+ if ( logfp == (FILE*) 0 || retchmod != 0 )
- {
- syslog( LOG_CRIT, "%.80s - %m", logfile );
- perror( logfile );
---
-1.7.12.4
-
diff --git a/www-servers/thttpd/thttpd-2.26.4-r3.ebuild b/www-servers/thttpd/thttpd-2.26.4-r3.ebuild
deleted file mode 100644
index f1db74821192..000000000000
--- a/www-servers/thttpd/thttpd-2.26.4-r3.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-
-inherit eutils flag-o-matic systemd toolchain-funcs user
-
-MY_P="s${P}"
-
-DESCRIPTION="Fork of thttpd, a small, fast, multiplexing webserver"
-HOMEPAGE="http://opensource.dyc.edu/sthttpd"
-SRC_URI="http://opensource.dyc.edu/pub/sthttpd/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="BSD GPL-2"
-SLOT="0"
-KEYWORDS="amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
-IUSE=""
-
-RDEPEND=""
-DEPEND=""
-
-WEBROOT="/var/www/localhost"
-
-THTTPD_USER=thttpd
-THTTPD_GROUP=thttpd
-THTTPD_DOCROOT="${EPREFIX}${WEBROOT}/htdocs"
-
-DOCS=( README TODO )
-
-pkg_setup() {
- ebegin "Creating thttpd user and group"
- enewgroup ${THTTPD_GROUP}
- enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/thttpd-fix-world-readable-log.patch
-}
-
-src_configure() {
- econf WEBDIR=${THTTPD_DOCROOT}
-}
-
-src_install () {
- default
-
- newinitd "${FILESDIR}"/thttpd.init.1 thttpd
- newconfd "${FILESDIR}"/thttpd.confd.1 thttpd
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/thttpd.logrotate" thttpd
-
- insinto /etc/thttpd
- doins "${FILESDIR}"/thttpd.conf.sample
-
- systemd_dounit "${FILESDIR}/${PN}.service"
-
- #move htdocs to docdir, bug #429632
- docompress -x /usr/share/doc/"${PF}"/htdocs.dist
- mv "${ED}"${WEBROOT}/htdocs \
- "${ED}"/usr/share/doc/"${PF}"/htdocs.dist
- mkdir "${ED}"${WEBROOT}/htdocs
-
- keepdir ${WEBROOT}/htdocs
-
- chown root:${THTTPD_GROUP} "${ED}/usr/sbin/makeweb" \
- || die "Failed chown makeweb"
- chmod 2751 "${ED}/usr/sbin/makeweb" \
- || die "Failed chmod makeweb"
- chmod 755 "${ED}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
- || die "Failed chmod printenv"
-}