diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 18:34:03 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 18:34:03 +0000 |
commit | 3c72cf5556e0580087bb0b2b0af197ce9a561af2 (patch) | |
tree | 46e397c1c4a010800abe46ab2e868fe825c80299 /www-servers | |
parent | Version bump for CAN-2004-0685, bug #59769. (diff) | |
download | historical-3c72cf5556e0580087bb0b2b0af197ce9a561af2.tar.gz historical-3c72cf5556e0580087bb0b2b0af197ce9a561af2.tar.bz2 historical-3c72cf5556e0580087bb0b2b0af197ce9a561af2.zip |
Moved from net-www/thttpd to www-servers/thttpd.
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/thttpd/ChangeLog | 27 | ||||
-rw-r--r-- | www-servers/thttpd/Manifest | 7 | ||||
-rw-r--r-- | www-servers/thttpd/files/digest-thttpd-2.25 | 1 | ||||
-rw-r--r-- | www-servers/thttpd/files/thttpd-2.25/thttpd.conf.sample | 38 | ||||
-rw-r--r-- | www-servers/thttpd/files/thttpd-2.25/thttpd.confd | 27 | ||||
-rw-r--r-- | www-servers/thttpd/files/thttpd-2.25/thttpd.init | 33 | ||||
-rw-r--r-- | www-servers/thttpd/metadata.xml | 8 | ||||
-rw-r--r-- | www-servers/thttpd/thttpd-2.25.ebuild | 52 |
8 files changed, 193 insertions, 0 deletions
diff --git a/www-servers/thttpd/ChangeLog b/www-servers/thttpd/ChangeLog new file mode 100644 index 000000000000..36c74212d970 --- /dev/null +++ b/www-servers/thttpd/ChangeLog @@ -0,0 +1,27 @@ +# ChangeLog for net-www/thttpd +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.1 2004/08/08 18:34:03 stuart Exp $ + +*thttpd-2.25 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/thttpd-2.25/thttpd.conf.sample, +files/thttpd-2.25/thttpd.confd, + +files/thttpd-2.25/thttpd.init, +thttpd-2.25.ebuild: + Moved from net-www/thttpd to www-servers/thttpd. + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> thttpd-2.25.ebuild: + virtual/glibc -> virtual/libc + + 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> thttpd-2.25.ebuild: + QA - fix use invocation + + 25 Apr 2004; David Holm <dholm@gentoo.org> thttpd-2.25.ebuild: + Added to ~ppc. + +*thttpd-2.25 (23 Apr 2004) + + 23 Apr 2004; Stuart Herbert <stuart@gentoo.org> + files/thttpd-2.25/thttpd.conf.sample, files/thttpd-2.25/thttpd.confd, + files/thttpd-2.25/thttpd.init: + Initial import; thanks to Thomas Eckert <eckert.thomas@gmx.net> in bug #36173 + diff --git a/www-servers/thttpd/Manifest b/www-servers/thttpd/Manifest new file mode 100644 index 000000000000..8228add67e7c --- /dev/null +++ b/www-servers/thttpd/Manifest @@ -0,0 +1,7 @@ +MD5 1e9eca04c604f820534eaffe8e3a5337 thttpd-2.25.ebuild 1180 +MD5 149e8f91c04b28018851baee1b7632b2 ChangeLog 759 +MD5 3d182d43f7f0341a9a42f96694f04e72 metadata.xml 224 +MD5 1e6cbba778f6846533ae1d69310e0c4e files/digest-thttpd-2.25 64 +MD5 f1fc577feaa5e57a7149ca237c26f741 files/thttpd-2.25/thttpd.confd 1150 +MD5 fcb6160c997763b34d27fed915e8eea5 files/thttpd-2.25/thttpd.init 826 +MD5 1d3e759791468812bd3c6dd786428cac files/thttpd-2.25/thttpd.conf.sample 672 diff --git a/www-servers/thttpd/files/digest-thttpd-2.25 b/www-servers/thttpd/files/digest-thttpd-2.25 new file mode 100644 index 000000000000..823600acb15d --- /dev/null +++ b/www-servers/thttpd/files/digest-thttpd-2.25 @@ -0,0 +1 @@ +MD5 a0e9cd87455d3a0ea11e5ea7e947adf6 thttpd-2.25b.tar.gz 132363 diff --git a/www-servers/thttpd/files/thttpd-2.25/thttpd.conf.sample b/www-servers/thttpd/files/thttpd-2.25/thttpd.conf.sample new file mode 100644 index 000000000000..e70173206f85 --- /dev/null +++ b/www-servers/thttpd/files/thttpd-2.25/thttpd.conf.sample @@ -0,0 +1,38 @@ +## /etc/thttpd.conf +## +## do not leave empty lines in here! +## format is: key=value +## +## run in debug-mode? +#debug +## +## what interface to bind to? +## (default is binding to any interface) +#host=www.example.org +port=8080 +user=nobody +## +## CGI: +## ? match a single char +## * matches any string excluding "/" +## ** matches any string including "/" +## separate multiple patterns with "|" +#cgipat=**.sh|**.cgi +## +## chroot: +chroot +#nochroot +## +logfile=/var/log/thttpd.log +pidfile=/var/run/thttpd.pid +## +charset=iso-8859-1 +## +## control the caching: (in secs) +#maxage 60 +## +## virtual hosting: +#vhost +## +## cache-control: send this "max-age" in all HTTP-responses: +#max-age=0 diff --git a/www-servers/thttpd/files/thttpd-2.25/thttpd.confd b/www-servers/thttpd/files/thttpd-2.25/thttpd.confd new file mode 100644 index 000000000000..453636c4b518 --- /dev/null +++ b/www-servers/thttpd/files/thttpd-2.25/thttpd.confd @@ -0,0 +1,27 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/files/thttpd-2.25/thttpd.confd,v 1.1 2004/08/08 18:34:03 stuart Exp $ + +## Config file for /etc/init.d/thttpd + +## the startup-dir of thttpd is the docroot, so we specify it here +## and the init-script does a "cd" prior to startup: +THTTPD_DOCROOT="/var/www/localhost" + +## There are 2 ways to configure thttpd: +## 1) specify all params on the cmd-line +## 2) use a config-file (and start with "-C <conf-file>") +## Note: 1) and 2) can be mixed. +## +## We choose 1) here -- if you have a more complicated setup read +## thttpd(8) for details on 2). + +THTTPD_OPTS="-p 8080 -u nobody -r -i /var/run/thttpd.pid -l /var/log/thttpd.log" + +## For a more complex setup (e.g. cgi-support) use an external configfile: +## comment the THTTPD_OPTS line above und use the one below. +#THTTPD_OPTS="-C /etc/thttpd/thttpd.conf" + +## If you know what you are doing you can add cgi-support with the line below; +## but you _should_ use the extern-configfile version! +#THTTPD_OPTS="$THTTPD_OPTS -c **.cgi|**.sh" diff --git a/www-servers/thttpd/files/thttpd-2.25/thttpd.init b/www-servers/thttpd/files/thttpd-2.25/thttpd.init new file mode 100644 index 000000000000..9adec9c797a6 --- /dev/null +++ b/www-servers/thttpd/files/thttpd-2.25/thttpd.init @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/files/thttpd-2.25/thttpd.init,v 1.1 2004/08/08 18:34:03 stuart Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting thttpd" + if [ ! -d "$THTTPD_DOCROOT" ]; then + eend 1 "THTTPD_DOCROOT not set correctly in /etc/conf.d/thttpd" + exit 1 + fi + cd $THTTPD_DOCROOT + if [ $? -ne 0 ]; then + eend $? "ERROR: cannot change to docroot \"$THTTPD_DOCROOT\"" + fi + start-stop-daemon --quiet --start --startas /usr/sbin/thttpd \ + --pidfile /var/run/thttpd.pid -- ${THTTPD_OPTS} + eend $? +} + +stop() { + local rc + + ebegin "Stopping thttpd" + start-stop-daemon --quiet --stop --pidfile /var/run/thttpd.pid + rc=$? + rm -f /var/run/thttpd.pid + eend $rc +} diff --git a/www-servers/thttpd/metadata.xml b/www-servers/thttpd/metadata.xml new file mode 100644 index 000000000000..0d59c319c3eb --- /dev/null +++ b/www-servers/thttpd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>webapps</herd> +<maintainer> + <email>web-apps@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/www-servers/thttpd/thttpd-2.25.ebuild b/www-servers/thttpd/thttpd-2.25.ebuild new file mode 100644 index 000000000000..3fcca598c47e --- /dev/null +++ b/www-servers/thttpd/thttpd-2.25.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25.ebuild,v 1.1 2004/08/08 18:34:03 stuart Exp $ + +MY_P="${P}b" + +DESCRIPTION="Small and fast multiplexing webserver." +HOMEPAGE="http://www.acme.com/software/thttpd/" +SRC_URI="http://www.acme.com/software/thttpd/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="virtual/libc" +S="${WORKDIR}/${MY_P}" + +src_compile() { + ## TODO: what to do with IPv6? + econf || die +# if use ipv6; then +# : +# fi + emake || die +} + +src_install () { + mkdir -p ${D}/usr/share/man/man1 + make prefix=${D}/usr \ + MANDIR=${D}/usr/share/man \ + WEBGROUP=nogroup \ + WEBDIR=${D}/var/www/localhost \ + "$@" install || die "installation failed :(" + + mv ${D}/usr/sbin/{,th_}htpasswd + mv ${D}/usr/share/man/man1/{,th_}htpasswd.1 + + + exeinto /etc/init.d + newexe ${FILESDIR}/${P}/thttpd.init thttpd + insinto /etc/conf.d + newins ${FILESDIR}/${P}/thttpd.confd thttpd + dodoc README + + insinto /etc/thttpd + doins ${FILESDIR}/${P}/thttpd.conf.sample +} + +pkg_postinst() { + einfo "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !" +} |