summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Noberasco <s4t4n@gentoo.org>2004-08-10 08:43:18 +0000
committerMichele Noberasco <s4t4n@gentoo.org>2004-08-10 08:43:18 +0000
commit3c3f7c3add2666cb412fb2c955ebb14b94a374f2 (patch)
tree37fa5b57b04a74d2f7fead69a5a173f8c898f1e0 /www-servers
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-3c3f7c3add2666cb412fb2c955ebb14b94a374f2.tar.gz
gentoo-2-3c3f7c3add2666cb412fb2c955ebb14b94a374f2.tar.bz2
gentoo-2-3c3f7c3add2666cb412fb2c955ebb14b94a374f2.zip
Begin relocation of net-www/bozohttpd to www-servers/bozohttpd
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/bozohttpd/ChangeLog19
-rw-r--r--www-servers/bozohttpd/Manifest7
-rw-r--r--www-servers/bozohttpd/bozohttpd-20040218.ebuild36
-rw-r--r--www-servers/bozohttpd/files/bozohttpd-20040218.Makefile33
-rw-r--r--www-servers/bozohttpd/files/bozohttpd-20040218.conffile11
-rw-r--r--www-servers/bozohttpd/files/bozohttpd-20040218.initscript38
-rw-r--r--www-servers/bozohttpd/files/digest-bozohttpd-200402181
-rw-r--r--www-servers/bozohttpd/metadata.xml13
8 files changed, 158 insertions, 0 deletions
diff --git a/www-servers/bozohttpd/ChangeLog b/www-servers/bozohttpd/ChangeLog
new file mode 100644
index 000000000000..e52c36bdd1be
--- /dev/null
+++ b/www-servers/bozohttpd/ChangeLog
@@ -0,0 +1,19 @@
+# ChangeLog for www-servers/bozohttpd
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/bozohttpd/ChangeLog,v 1.1 2004/08/10 08:43:18 s4t4n Exp $
+
+*bozohttpd-20040218 (10 Aug 2004)
+
+ 10 Aug 2004; Michele Noberasco <s4t4n@gentoo.org> +metadata.xml,
+ +files/bozohttpd-20040218.conffile, +files/bozohttpd-20040218.iniscript,
+ +files/bozohttpd-20040218.Makefile, +ChangeLog, +bozohttpd-20040218.ebuild:
+ Moved from net-www/bozohttpd to www-servers/bozohttpd.
+
+ 26 Jun 2004; David Holm <dholm@gentoo.org> bozohttpd-20040218.ebuild:
+ Added to ~ppc.
+
+*bozohttpd-20040218 (24 Jun 2004)
+
+ 24 Jun 2004; Michele Noberasco <s4t4n@gentoo.org> bozohttpd-20040218.ebuild:
+ Initial import. Close bug #30573
+
diff --git a/www-servers/bozohttpd/Manifest b/www-servers/bozohttpd/Manifest
new file mode 100644
index 000000000000..2ff23ab137b4
--- /dev/null
+++ b/www-servers/bozohttpd/Manifest
@@ -0,0 +1,7 @@
+MD5 76d57a9fc9110aa65a3199fa554ece6e bozohttpd-20040218.ebuild 958
+MD5 e823823b3f8db6426c5a2c54799c2ab8 ChangeLog 763
+MD5 8574132eb9ab5f7b8455a49e11860ce4 metadata.xml 401
+MD5 10a103f61bdbfd7cd72c44bd9da660b4 files/digest-bozohttpd-20040218 70
+MD5 8ba8e430cb53030e75557268c3b5d472 files/bozohttpd-20040218.conffile 221
+MD5 77cccde698590fed2f71d3002db53fe0 files/bozohttpd-20040218.initscript 952
+MD5 c099ee5b2237f0c0e202fe25980e3877 files/bozohttpd-20040218.Makefile 534
diff --git a/www-servers/bozohttpd/bozohttpd-20040218.ebuild b/www-servers/bozohttpd/bozohttpd-20040218.ebuild
new file mode 100644
index 000000000000..0e2910e81781
--- /dev/null
+++ b/www-servers/bozohttpd/bozohttpd-20040218.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/bozohttpd/bozohttpd-20040218.ebuild,v 1.1 2004/08/10 08:43:18 s4t4n Exp $
+
+DESCRIPTION="bozohttpd is a small and secure http server"
+HOMEPAGE="http://www.eterna.com.au/bozohttpd/"
+SRC_URI="http://www.eterna.com.au/bozohttpd/${P}.tar.bz2"
+KEYWORDS="~x86 ~ppc"
+LICENSE="GPL-2"
+SLOT="0"
+DEPEND=">=dev-libs/openssl-0.9.7d-r1"
+
+src_unpack()
+{
+ unpack ${A}
+
+ # We substitute the Makefile because the original works only with BSD make
+ cd ${S}
+ rm -f Makefile
+ cp ${FILESDIR}/${P}.Makefile Makefile
+}
+
+src_install ()
+{
+ dodir usr/bin
+ dodir usr/share/man
+ PREFIX="${D}/usr" einstall || die
+
+ insinto /etc/conf.d; newins ${FILESDIR}/${P}.conffile bozohttpd
+ exeinto /etc/init.d; newexe ${FILESDIR}/${P}.initscript bozohttpd
+}
+
+pkg_postinst()
+{
+ einfo "Remember to edit /etc/conf.d/bozohttpd to suit your needs."
+}
diff --git a/www-servers/bozohttpd/files/bozohttpd-20040218.Makefile b/www-servers/bozohttpd/files/bozohttpd-20040218.Makefile
new file mode 100644
index 000000000000..709eed603034
--- /dev/null
+++ b/www-servers/bozohttpd/files/bozohttpd-20040218.Makefile
@@ -0,0 +1,33 @@
+ifndef MANDIR
+ MANDIR = share/man/man8
+endif
+ifndef PREFIX
+ PREFIX = /usr/local
+endif
+ifndef CC
+ CC = gcc
+endif
+ifndef INSTALL
+ INSTALL = /bin/install
+endif
+
+SRCS = bozohttpd.c
+OBJ = bozohttpd
+
+all: bozohttpd
+
+bozohttpd:
+ $(CC) $(CFLAGS) -o $(OBJ) $(SRCS) -lssl -lcrypto
+
+clean:
+ rm -f $(OBJ)
+ rm -f *~
+
+install:: bozohttpd
+ $(INSTALL) -s -m 755 $(OBJ) $(PREFIX)/bin
+ $(INSTALL) -d $(PREFIX)/$(MANDIR)
+ $(INSTALL) -m 644 $(OBJ).8 $(PREFIX)/$(MANDIR)
+
+uninstall::
+ -rm -f $(PREFIX)/bin/$(OBJ)
+ -rm -f $(PREFIX)/$(MANDIR)/$(OBJ).8
diff --git a/www-servers/bozohttpd/files/bozohttpd-20040218.conffile b/www-servers/bozohttpd/files/bozohttpd-20040218.conffile
new file mode 100644
index 000000000000..055a52e3d2aa
--- /dev/null
+++ b/www-servers/bozohttpd/files/bozohttpd-20040218.conffile
@@ -0,0 +1,11 @@
+# Config file for /etc/init.d/bozohttpd
+
+# necessary stuff
+DATADIR=/var/www/localhost/htdocs
+BIND_ADDRESS=localhost
+LISTEN_PORT=80
+
+# optional stuff
+#USER=daemon
+#INDEX_DEFAULT=index.php
+#APPEND="-a -C .php /usr/bin/php"
diff --git a/www-servers/bozohttpd/files/bozohttpd-20040218.initscript b/www-servers/bozohttpd/files/bozohttpd-20040218.initscript
new file mode 100644
index 000000000000..6b8e03eda2dd
--- /dev/null
+++ b/www-servers/bozohttpd/files/bozohttpd-20040218.initscript
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header:
+
+#NB: Config is in /etc/conf.d/bozohttpd
+
+
+depend() {
+ need logger net
+}
+
+checkconfig() {
+ if [ -z "$DATADIR" ] || [ -z "$BIND_ADDRESS" ] || [ -z "$LISTEN_PORT" ]; then
+ eerror "You need to setup DATADIR, BIND_ADDRESS and LISTEN PORT in /etc/conf.d/bozohttpd first"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ local params=""
+
+ [ -n "$USER" ] && params="$params -U $USER"
+ [ -n "$INDEX_DEFAULT" ] && params="$params -x $INDEX_DEFAULT"
+ [ -n "$APPEND" ] && params="$params $APPEND"
+
+ ebegin "Starting bozohttpd"
+ start-stop-daemon --start --exec /usr/bin/bozohttpd -- -b -i $BIND_ADDRESS -I $LISTEN_PORT -X ${params} $DATADIR
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping bozohttpd"
+ start-stop-daemon --stop --exec /usr/bin/bozohttpd
+ eend ${?}
+}
diff --git a/www-servers/bozohttpd/files/digest-bozohttpd-20040218 b/www-servers/bozohttpd/files/digest-bozohttpd-20040218
new file mode 100644
index 000000000000..24eab6bcf915
--- /dev/null
+++ b/www-servers/bozohttpd/files/digest-bozohttpd-20040218
@@ -0,0 +1 @@
+MD5 66753d2968b1a4570901f235861841c1 bozohttpd-20040218.tar.bz2 31936
diff --git a/www-servers/bozohttpd/metadata.xml b/www-servers/bozohttpd/metadata.xml
new file mode 100644
index 000000000000..179074a802d6
--- /dev/null
+++ b/www-servers/bozohttpd/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+<maintainer>
+ <name>Michele Noberasco</name>
+ <email>s4t4n@gentoo.org</email>
+</maintainer>
+<longdescription>
+ bozohttpd is designed to be small, simple and relatively
+ featureless, hopefully increasing its security.
+</longdescription>
+</pkgmetadata>