diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:37:46 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:37:46 +0000 |
commit | ba3738baf46ea5bb06953d8c92bee6b8f7e95048 (patch) | |
tree | bd1d7ddda6e17084c61bed85ef0c67c8c2f25742 /www-servers/mini_httpd | |
parent | Moved from net-www/lighttpd to www-servers/lighttpd (diff) | |
download | historical-ba3738baf46ea5bb06953d8c92bee6b8f7e95048.tar.gz historical-ba3738baf46ea5bb06953d8c92bee6b8f7e95048.tar.bz2 historical-ba3738baf46ea5bb06953d8c92bee6b8f7e95048.zip |
Moved from net-www/mini_httpd to www-servers/mini_httpd.
Diffstat (limited to 'www-servers/mini_httpd')
-rw-r--r-- | www-servers/mini_httpd/ChangeLog | 41 | ||||
-rw-r--r-- | www-servers/mini_httpd/Manifest | 11 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/digest-mini_httpd-1.17_beta1 | 1 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/digest-mini_httpd-1.19 | 1 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/mini_httpd.conf.sample | 47 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/mini_httpd.conf.sample-1.19 | 47 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/mini_httpd.confd | 26 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/mini_httpd.confd-1.19 | 28 | ||||
-rw-r--r-- | www-servers/mini_httpd/files/mini_httpd.init | 33 | ||||
-rw-r--r-- | www-servers/mini_httpd/metadata.xml | 5 | ||||
-rw-r--r-- | www-servers/mini_httpd/mini_httpd-1.17_beta1.ebuild | 65 | ||||
-rw-r--r-- | www-servers/mini_httpd/mini_httpd-1.19.ebuild | 62 |
12 files changed, 367 insertions, 0 deletions
diff --git a/www-servers/mini_httpd/ChangeLog b/www-servers/mini_httpd/ChangeLog new file mode 100644 index 000000000000..37111f8672ad --- /dev/null +++ b/www-servers/mini_httpd/ChangeLog @@ -0,0 +1,41 @@ +# ChangeLog for net-www/mini_httpd +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/ChangeLog,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +*mini_httpd-1.19 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/mini_httpd.conf.sample, +files/mini_httpd.conf.sample-1.19, + +files/mini_httpd.confd, +files/mini_httpd.confd-1.19, + +files/mini_httpd.init, +mini_httpd-1.17_beta1.ebuild, + +mini_httpd-1.19.ebuild: + Moved from net-www/mini_httpd to www-servers/mini_httpd. + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> + mini_httpd-1.17_beta1.ebuild, mini_httpd-1.19.ebuild: + virtual/glibc -> virtual/libc + + 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> + mini_httpd-1.17_beta1.ebuild, mini_httpd-1.19.ebuild: + QA - fix use invocation + + 23 Apr 2004; Stuart Herbert <stuart@gentoo.org> + files/mini_httpd.conf.sample-1.19: + Replaced overwritten config sample file with correct version. Fixes bug #40228 + +*mini_httpd-1.19 (29 Dec 2003) + + 29 Dec 2003; Martin Holzer <mholzer@gentoo.org> mini_httpd-1.19.ebuild, + files/mini_httpd.confd-1.19: + Version bumped. Closes 36174 + +*mini_httpd-1.18 (02 Nov 2003) + + 02 Nov 2003; Martin Holzer <mholzer@gentoo.org> mini_httpd-1.18.ebuild, + files/mini_httpd.conf.sample-1.18, files/mini_httpd.confd-1.18: + Version bumped. Submitted in #32455. + +*mini_httpd-1.17_beta1 (03 Mar 2003) + + 03 Mar 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Thomas Eckert <eckert.thomas@gmx.net> #9749. diff --git a/www-servers/mini_httpd/Manifest b/www-servers/mini_httpd/Manifest new file mode 100644 index 000000000000..919d49cc5c74 --- /dev/null +++ b/www-servers/mini_httpd/Manifest @@ -0,0 +1,11 @@ +MD5 115a7357663e06c99f90609731e068f8 mini_httpd-1.17_beta1.ebuild 1979 +MD5 75175ff32c3258df900c014249b78e3a ChangeLog 1217 +MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 +MD5 bc9895cca4fc1622d60aeae8deb02369 mini_httpd-1.19.ebuild 1862 +MD5 4999dd0e1f1fef19fee9d91e030157e7 files/mini_httpd.conf.sample 860 +MD5 4999dd0e1f1fef19fee9d91e030157e7 files/mini_httpd.conf.sample-1.19 860 +MD5 c000548ba0f55ece3df464f3512f7baa files/digest-mini_httpd-1.19 66 +MD5 188c9ab6523ffd9f8ee5341077d659b0 files/mini_httpd.confd 1129 +MD5 0a7617c2c08ec920ece4d2b412af270c files/digest-mini_httpd-1.17_beta1 71 +MD5 aba8435c08317b3b83a7bef4d79384c2 files/mini_httpd.confd-1.19 1276 +MD5 234fcee94fadbbf917acd0ad7515030d files/mini_httpd.init 860 diff --git a/www-servers/mini_httpd/files/digest-mini_httpd-1.17_beta1 b/www-servers/mini_httpd/files/digest-mini_httpd-1.17_beta1 new file mode 100644 index 000000000000..39afe2eb18b6 --- /dev/null +++ b/www-servers/mini_httpd/files/digest-mini_httpd-1.17_beta1 @@ -0,0 +1 @@ +MD5 ec4374b4c91b6e787f8ba2fed615e60f mini_httpd-1.17beta1.tar.gz 40172 diff --git a/www-servers/mini_httpd/files/digest-mini_httpd-1.19 b/www-servers/mini_httpd/files/digest-mini_httpd-1.19 new file mode 100644 index 000000000000..612bfc886982 --- /dev/null +++ b/www-servers/mini_httpd/files/digest-mini_httpd-1.19 @@ -0,0 +1 @@ +MD5 792a529dfe974355aad8ba6c80e54e7a mini_httpd-1.19.tar.gz 42142 diff --git a/www-servers/mini_httpd/files/mini_httpd.conf.sample b/www-servers/mini_httpd/files/mini_httpd.conf.sample new file mode 100644 index 000000000000..092f7a546b48 --- /dev/null +++ b/www-servers/mini_httpd/files/mini_httpd.conf.sample @@ -0,0 +1,47 @@ +## /etc/mini_httpd.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/mini_httpd.log +pidfile=/var/run/mini_httpd.pid +## +charset=iso-8859-1 +## +## control the caching: (in secs) +#maxage 60 +## +## useless setting (just modifies the http-header) +## (see mini_httpd(8) and http://www.w3.org/P3P/ for more info) +#p3p +## +## virtual hosting: +#vhost +## +## cache-control: send this "max-age" in all HTTP-responses: +#max-age=0 +## +## ssl: +#nossl +#ssl +#certfile=/tmp/mini_httpd.pem diff --git a/www-servers/mini_httpd/files/mini_httpd.conf.sample-1.19 b/www-servers/mini_httpd/files/mini_httpd.conf.sample-1.19 new file mode 100644 index 000000000000..092f7a546b48 --- /dev/null +++ b/www-servers/mini_httpd/files/mini_httpd.conf.sample-1.19 @@ -0,0 +1,47 @@ +## /etc/mini_httpd.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/mini_httpd.log +pidfile=/var/run/mini_httpd.pid +## +charset=iso-8859-1 +## +## control the caching: (in secs) +#maxage 60 +## +## useless setting (just modifies the http-header) +## (see mini_httpd(8) and http://www.w3.org/P3P/ for more info) +#p3p +## +## virtual hosting: +#vhost +## +## cache-control: send this "max-age" in all HTTP-responses: +#max-age=0 +## +## ssl: +#nossl +#ssl +#certfile=/tmp/mini_httpd.pem diff --git a/www-servers/mini_httpd/files/mini_httpd.confd b/www-servers/mini_httpd/files/mini_httpd.confd new file mode 100644 index 000000000000..f570bc460830 --- /dev/null +++ b/www-servers/mini_httpd/files/mini_httpd.confd @@ -0,0 +1,26 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/files/mini_httpd.confd,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +## Config file for /etc/init.d/mini_httpd + +## the startup-dir of mini_httpd is the docroot, so we specify it here +## and the init-script does a "cd" prior to startup: +#MINI_HTTPD_DOCROOT="/home/httpd/htdocs" + +## There are 2 ways to configure mini_httpd: +## 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 +## mini_httpd(8) for details on 2). + +MINI_HTTPD_OPTS="-p 8080 -u nobody -r -i /var/run/mini_httpd.pid -l /var/log/mini_httpd.log" + +## to add cgi-support you should switch over to a config-file, a sample can +## be found in your DOCDESTTREE (/usr/share/doc/mini_httpd-xxxx) named +## mini_httpd.conf.sample.gz +## copy the sample to /etc/mini_httpd.conf and replace the MINI_HTTPD_OPTS-line +## above by: +##MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf" diff --git a/www-servers/mini_httpd/files/mini_httpd.confd-1.19 b/www-servers/mini_httpd/files/mini_httpd.confd-1.19 new file mode 100644 index 000000000000..31312e2ea963 --- /dev/null +++ b/www-servers/mini_httpd/files/mini_httpd.confd-1.19 @@ -0,0 +1,28 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/files/mini_httpd.confd-1.19,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +## Config file for /etc/init.d/mini_httpd + +## the startup-dir of mini_httpd is the docroot, so we specify it here +## and the init-script does a "cd" prior to startup: +#MINI_HTTPD_DOCROOT="/var/www/localhost" + +## There are 2 ways to configure mini_httpd: +## 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 +## mini_httpd(8) for details on 2). + +MINI_HTTPD_OPTS="-p 8080 -u nobody -r -i /var/run/mini_httpd.pid -l /var/log/mini_httpd.log" + +## to add cgi-support you should switch over to a config-file, a sample can +## be found in your DOCDESTTREE (/usr/share/doc/mini_httpd-xxxx) named +## mini_httpd.conf.sample.gz +## copy the sample to /etc/mini_httpd.conf and replace the MINI_HTTPD_OPTS-line +## above by: +##MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf" +## poor-mans cgi-pattern (only use if you know what you are doing -- you have been warned) +#MINI_HTTPD_OPTS="$MINI_HTTPD_OPS -c **.cgi|**.sh" diff --git a/www-servers/mini_httpd/files/mini_httpd.init b/www-servers/mini_httpd/files/mini_httpd.init new file mode 100644 index 000000000000..f32c883d024e --- /dev/null +++ b/www-servers/mini_httpd/files/mini_httpd.init @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/files/mini_httpd.init,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting mini_httpd" + if [ ! -d "$MINI_HTTPD_DOCROOT" ]; then + eend 1 "MINI_HTTPD_DOCROOT not set correctly in /etc/conf.d/mini_httpd" + exit 1 + fi + cd $MINI_HTTPD_DOCROOT + if [ $? -ne 0 ]; then + eend $? "ERROR: cannot change to docroot \"$MINI_HTTPD_DOCROOT\"" + fi + start-stop-daemon --quiet --start --startas /usr/sbin/mini_httpd \ + --pidfile /var/run/mini_httpd.pid -- ${MINI_HTTPD_OPTS} + eend $? +} + +stop() { + local rc + + ebegin "Stopping mini_httpd" + start-stop-daemon --quiet --stop --pidfile /var/run/mini_httpd.pid + rc=$? + rm -f /var/run/mini_httpd.pid + eend $rc +} diff --git a/www-servers/mini_httpd/metadata.xml b/www-servers/mini_httpd/metadata.xml new file mode 100644 index 000000000000..95c06f0095bb --- /dev/null +++ b/www-servers/mini_httpd/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>web-apps</herd> +</pkgmetadata> diff --git a/www-servers/mini_httpd/mini_httpd-1.17_beta1.ebuild b/www-servers/mini_httpd/mini_httpd-1.17_beta1.ebuild new file mode 100644 index 000000000000..46d0ca2550bb --- /dev/null +++ b/www-servers/mini_httpd/mini_httpd-1.17_beta1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/mini_httpd-1.17_beta1.ebuild,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +MY_P=${P/_beta/beta} +DESCRIPTION="Small forking webserver with optional ssl and ipv6 support" +HOMEPAGE="http://www.acme.com/software/mini_httpd/" +SRC_URI="http://www.acme.com/software/mini_httpd/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="x86" +IUSE="ssl ipv6" + +DEPEND="virtual/libc + ssl? ( dev-libs/openssl )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + ## we need to hack a bit to have the correct install-dir -- no autoconf :( + mv Makefile Makefile.org + cat Makefile.org | sed -e "s@/usr/local/sbin@${D}/usr/sbin@; \ + s@/usr/local/man@${D}/usr/share/man@; \ + s@-mkdir -p \${BINDIR}@& \${MANDIR}/man8 \${MANDIR}/man1@" > \ + Makefile || die "error rewriting Makefile" + rm -f Makefile.org + + ## for ssl-support we need another Makefile-patch: + if use ssl; then + mv Makefile Makefile.org + cat Makefile.org | sed -e "s@^#\(SSL_TREE.*=\)\(.*$\)@\1 /usr@; \ + s@^#\(SSL_DEFS.*$\)@\1@; \ + s@^#\(SSL_INC.*$\)@\1@; \ + s@^#\(SSL_LIBS.*$\)@\1@" > \ + Makefile || die "error rewriting Makefile" + rm -f Makefile.org + fi + + ## ipv6-support: normally this is auto-detected at compile time ... so we + ## need to force a bit ;) + if ! use ipv6; then + mv mini_httpd.c mini_httpd.c.org + cat mini_httpd.c.org | sed -e 's@#define USE_IPV6@#undef USE_IPV6@' > \ + mini_httpd.c || die "error rewriting mini_httpd.c" + rm -f mini_httpd.c.org + fi + emake || die +} + +src_install() { + make install || die + mv ${D}/usr/sbin/{,mini_}htpasswd + mv ${D}/usr/share/man/man1/{,mini_}htpasswd.1 + + exeinto /etc/init.d + newexe ${FILESDIR}/mini_httpd.init mini_httpd + insinto /etc/conf.d + newins ${FILESDIR}/mini_httpd.confd mini_httpd + dodoc README ${FILESDIR}/mini_httpd.conf.sample +} + +pkg_postinst() { + ewarn "Adjust MINI_HTTPD_DOCROOT in /etc/conf.d/mini_httpd !" +} diff --git a/www-servers/mini_httpd/mini_httpd-1.19.ebuild b/www-servers/mini_httpd/mini_httpd-1.19.ebuild new file mode 100644 index 000000000000..97bdbf13106a --- /dev/null +++ b/www-servers/mini_httpd/mini_httpd-1.19.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/mini_httpd/mini_httpd-1.19.ebuild,v 1.1 2004/08/08 17:37:46 stuart Exp $ + +DESCRIPTION="Small forking webserver with optional ssl and ipv6 support" +HOMEPAGE="http://www.acme.com/software/mini_httpd/" +SRC_URI="http://www.acme.com/software/mini_httpd/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="ssl ipv6" + +DEPEND="virtual/libc + ssl? ( dev-libs/openssl )" + +S=${WORKDIR}/${P} + +src_compile() { + ## we need to hack a bit to have the correct install-dir -- no autoconf :( + mv Makefile Makefile.org + cat Makefile.org | sed -e "s@/usr/local/sbin@${D}/usr/sbin@; \ + s@/usr/local/man@${D}/usr/share/man@; \ + s@-mkdir -p \${BINDIR}@& \${MANDIR}/man8 \${MANDIR}/man1@" > \ + Makefile || die "error rewriting Makefile" + rm -f Makefile.org + + ## for ssl-support we need another Makefile-patch: + if use ssl; then + mv Makefile Makefile.org + cat Makefile.org | sed -e "s@^#\(SSL_TREE.*=\)\(.*$\)@\1 /usr@; \ + s@^#\(SSL_DEFS.*$\)@\1@; \ + s@^#\(SSL_INC.*$\)@\1@; \ + s@^#\(SSL_LIBS.*$\)@\1@" > \ + Makefile || die "error rewriting Makefile" + rm -f Makefile.org + fi + + ## ipv6-support: normally this is auto-detected at compile time ... so we + ## need to force a bit ;) + if ! use ipv6; then + sed -i 's@#define USE_IPV6@#undef USE_IPV6@' mini_httpd.c + fi + emake || die +} + +src_install() { + make install || die + mv ${D}/usr/sbin/{,mini_}htpasswd + mv ${D}/usr/share/man/man1/{,mini_}htpasswd.1 + + exeinto /etc/init.d + newexe ${FILESDIR}/mini_httpd.init mini_httpd + insinto /etc/conf.d + newins ${FILESDIR}/mini_httpd.confd-${PV} mini_httpd + dodoc README + newdoc ${FILESDIR}/mini_httpd.conf.sample-${PV} mini_httpd.conf.sample +} + +pkg_postinst() { + ewarn "Adjust MINI_HTTPD_DOCROOT in /etc/conf.d/mini_httpd !" +} |