diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-04-02 14:18:06 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-04-02 14:18:06 +0000 |
commit | 18393e44806090ba2ebdbc7cab2edfc3ff54f671 (patch) | |
tree | 3e404c55c7cecd677dc266f639860fa0902dcbdb /www/hydra | |
parent | games/tetris -> games/bsdtris (diff) |
add hydra 0.1.3
A high performance multi-threaded web server
Notes
Notes:
svn path=/head/; revision=77992
Diffstat (limited to 'www/hydra')
-rw-r--r-- | www/hydra/Makefile | 36 | ||||
-rw-r--r-- | www/hydra/distinfo | 1 | ||||
-rw-r--r-- | www/hydra/files/patch-defines.h | 11 | ||||
-rw-r--r-- | www/hydra/files/patch-hydra.conf | 20 | ||||
-rw-r--r-- | www/hydra/pkg-descr | 9 | ||||
-rw-r--r-- | www/hydra/pkg-plist | 6 |
6 files changed, 83 insertions, 0 deletions
diff --git a/www/hydra/Makefile b/www/hydra/Makefile new file mode 100644 index 000000000000..6d00f1bb4837 --- /dev/null +++ b/www/hydra/Makefile @@ -0,0 +1,36 @@ +# ex:ts=8 +# Ports collection makefile for: hydra +# Date created: Apr 2, 2003 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= hydra +PORTVERSION= 0.1.3 +CATEGORIES= www +MASTER_SITES= ftp://ftp.hellug.gr/pub/software/hydra/ \ + http://hydra.hellug.gr/download/ \ + ftp://ftp.planetmirror.com/pub/hydra/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= A high performance multi-threaded web server + +LIB_DEPENDS= gnutls.8:${PORTSDIR}/security/gnutls + +USE_REINPLACE= yes +GNU_CONFIGURE= yes + +post-patch: + @${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure +.for file in src/defines.h examples/hydra.conf + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file} +.endfor + +post-install: + @${MKDIR} ${PREFIX}/etc/hydra +.for file in hydra.conf mime.types + ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra +.endfor + +.include <bsd.port.mk> diff --git a/www/hydra/distinfo b/www/hydra/distinfo new file mode 100644 index 000000000000..7e0aeb46d2c7 --- /dev/null +++ b/www/hydra/distinfo @@ -0,0 +1 @@ +MD5 (hydra-0.1.3.tar.gz) = 20c378932301851f38affc3da31208e0 diff --git a/www/hydra/files/patch-defines.h b/www/hydra/files/patch-defines.h new file mode 100644 index 000000000000..71598c2bd715 --- /dev/null +++ b/www/hydra/files/patch-defines.h @@ -0,0 +1,11 @@ +--- src/defines.h.orig Wed Apr 2 22:01:06 2003 ++++ src/defines.h Wed Apr 2 22:02:48 2003 +@@ -27,7 +27,7 @@ + /***** Change this, or use -c on the command line to specify it *****/ + + #ifndef SERVER_ROOT +-#define SERVER_ROOT "/etc/hydra" ++#define SERVER_ROOT "%%PREFIX%%/etc/hydra" + #endif + + /***** Change this via the CGIPath configuration value in hydra.conf *****/ diff --git a/www/hydra/files/patch-hydra.conf b/www/hydra/files/patch-hydra.conf new file mode 100644 index 000000000000..8f9706b5662b --- /dev/null +++ b/www/hydra/files/patch-hydra.conf @@ -0,0 +1,20 @@ +--- examples/hydra.conf.orig Wed Apr 2 22:05:45 2003 ++++ examples/hydra.conf Wed Apr 2 22:08:18 2003 +@@ -163,7 +163,7 @@ + # DirectoryIndex are commented out, accessing a directory will give + # an error (though accessing files in the directory are still ok). + +-DirectoryMaker /usr/lib/hydra/boa_indexer ++DirectoryMaker %%PREFIX%%/bin/boa_indexer + + # DirectoryCache: If DirectoryIndex doesn't exist, and DirectoryMaker + # has been commented out, the the on-the-fly indexing of Hydra can be used +@@ -199,7 +199,7 @@ + # Set to /dev/null if you do not want to load a mime types file. + # Do *not* comment out (better use AddType!) + +-MimeTypes /etc/mime.types ++MimeTypes %%PREFIX%%/etc/hydra/mime.types + + # DefaultType: MIME type used if the file extension is unknown, or there + # is no file extension. diff --git a/www/hydra/pkg-descr b/www/hydra/pkg-descr new file mode 100644 index 000000000000..4562163fd697 --- /dev/null +++ b/www/hydra/pkg-descr @@ -0,0 +1,9 @@ +Hydra is a high performance multi-threaded web server. Unlike traditional +multi-threaded web servers, Hydra uses a constant, but configurable, pool +of threads and each thread can handle several connections by multiplexing +the connections. This may remind you of a non-blocking server, and this is +true, but Hydra does not have the killing limitation of a non-blocking +server, the confinement to one CPU. Hydra will take advantage of every +available CPU in a system. + +WWW: http://hydra.hellug.gr/ diff --git a/www/hydra/pkg-plist b/www/hydra/pkg-plist new file mode 100644 index 000000000000..8c2f92106481 --- /dev/null +++ b/www/hydra/pkg-plist @@ -0,0 +1,6 @@ +bin/hydra +bin/boa_indexer +bin/webindex.pl +etc/hydra/hydra.conf +etc/hydra/mime.types +@dirrm etc/hydra |