diff options
author | sem <sem@FreeBSD.org> | 2005-03-20 23:34:32 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-03-20 23:34:32 +0800 |
commit | 795b4e70f2e095f767b3837ebd6be63e27115087 (patch) | |
tree | b7ef85c6a1223aa69fcff06e0a56e160886433d0 /www | |
parent | 091086a863d19c9624e1699564061851597ee0f4 (diff) | |
download | freebsd-ports-gnome-795b4e70f2e095f767b3837ebd6be63e27115087.tar.gz freebsd-ports-gnome-795b4e70f2e095f767b3837ebd6be63e27115087.tar.zst freebsd-ports-gnome-795b4e70f2e095f767b3837ebd6be63e27115087.zip |
Zerowait httpd is a light and fast http server that uses modern mechanisms
such as kqueues and sendfile.
PR: ports/79053
Submitted by: Vsevolod Stakhov <vsevolod@highsecure.ru>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/zerowait-httpd/Makefile | 30 | ||||
-rw-r--r-- | www/zerowait-httpd/distinfo | 2 | ||||
-rw-r--r-- | www/zerowait-httpd/files/0W-httpd.sh | 28 | ||||
-rw-r--r-- | www/zerowait-httpd/files/patch-Makefile | 30 | ||||
-rw-r--r-- | www/zerowait-httpd/files/patch-settings.h | 28 | ||||
-rw-r--r-- | www/zerowait-httpd/pkg-descr | 5 | ||||
-rw-r--r-- | www/zerowait-httpd/pkg-plist | 13 |
8 files changed, 137 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 52675385619a..6c7da2af4a8d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -764,6 +764,7 @@ SUBDIR += xitami SUBDIR += xpath2rss SUBDIR += yaws + SUBDIR += zerowait-httpd SUBDIR += znavigator SUBDIR += zope SUBDIR += zope-FileSystemSite diff --git a/www/zerowait-httpd/Makefile b/www/zerowait-httpd/Makefile new file mode 100644 index 000000000000..527564729ab3 --- /dev/null +++ b/www/zerowait-httpd/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: 0W-httpd +# Date created: 17 March 2005 +# Whom: Vsevolod Stakhov +# +# $FreeBSD$ +# + +PORTNAME= zerowait-httpd +PORTVERSION= 0.7l +CATEGORIES= www +MASTER_SITES= http://www.0w.ru/httpd/ +DISTNAME= 0W-httpd-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} + +MAINTAINER= vsevolod@highsecure.ru +COMMENT= Lightweight and fast http server + +USE_GMAKE= yes +USE_REINPLACE= yes + +WRKSRC= ${WRKDIR}/${DISTNAME}/src +MAKE_ARGS= CFLAGS="${CFLAGS}" CPPFLAGS=-I.. + +post-patch: + @${REINPLACE_CMD} -e "s,/var/0W,${PREFIX}," ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s,/var/0W,${PREFIX}," ${WRKSRC}/common/settings.h + +post-install: + @${INSTALL_SCRIPT} -m 755 ${FILESDIR}/0W-httpd.sh ${PREFIX}/etc/rc.d/0W-httpd.sh + +.include <bsd.port.mk> diff --git a/www/zerowait-httpd/distinfo b/www/zerowait-httpd/distinfo new file mode 100644 index 000000000000..0855be2b81e5 --- /dev/null +++ b/www/zerowait-httpd/distinfo @@ -0,0 +1,2 @@ +Size (0W-httpd-0.7l.tar.gz) = 86107 +MD5 (0W-httpd-0.7l.tar.gz) = f3c94bf665c71ae286cb99f50921af92 diff --git a/www/zerowait-httpd/files/0W-httpd.sh b/www/zerowait-httpd/files/0W-httpd.sh new file mode 100644 index 000000000000..c4317a1c954e --- /dev/null +++ b/www/zerowait-httpd/files/0W-httpd.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: 0W-httpd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these 0Whttpd_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +0Whttpd_enable=${0Whttpd_enable-"NO"} + +. %%RC_SUBR%% + +name="0Whttpd" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/0W-httpd" +args="-c %%PREFIX%%/etc/0W-httpd/httpd.conf" + +load_rc_config $name + +start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command}" + +run_rc_command "$1" diff --git a/www/zerowait-httpd/files/patch-Makefile b/www/zerowait-httpd/files/patch-Makefile new file mode 100644 index 000000000000..b0b5686b3ae8 --- /dev/null +++ b/www/zerowait-httpd/files/patch-Makefile @@ -0,0 +1,30 @@ +--- Makefile.orig Wed Oct 6 21:21:53 2004 ++++ Makefile Sun Mar 20 17:31:49 2005 +@@ -2,6 +2,6 @@ + +-ROOT=/var/0W +-PRIV=nobody:nobody ++ROOT=/var/0W ++PRIV=www:www + + SUBDIRS=common httpd + +@@ -14,7 +14,14 @@ + + install: + set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done +- test -d $(ROOT) || (mkdir $(ROOT) && cp -R ../bin ../conf ../data ../logs $(ROOT)) +- test ../bin/0W-httpd -ef $(ROOT)/bin/0W-httpd || cp ../bin/0W-httpd $(ROOT)/bin/0W-httpd +- chown -R $(PRIV) $(ROOT)/bin/0W-httpd $(ROOT)/logs $(ROOT)/data +- chmod +s $(ROOT)/bin/0W-httpd ++ test -d $(ROOT)/0W-httpd || (mkdir $(ROOT)/0W-httpd) ++ cp -R ../data ../logs $(ROOT)/0W-httpd ++ test ../bin/0W-httpd -ef $(ROOT)/sbin/0W-httpd || cp ../bin/0W-httpd $(ROOT)/sbin/0W-httpd ++ test -d $(ROOT)/etc/0W-httpd || (mkdir $(ROOT)/etc/0W-httpd && cd ../conf/ && \ ++ cp countries $(ROOT)/etc/0W-httpd/countries.sample && \ ++ cp crontab $(ROOT)/etc/0W-httpd/crontab.sample && \ ++ cp httpd.conf $(ROOT)/etc/0W-httpd/httpd.conf.sample && \ ++ cp httpd.txt $(ROOT)/etc/0W-httpd/httpd.txt.sample && \ ++ cp ip2country $(ROOT)/etc/0W-httpd/ip2country.sample ) ++ chown -R $(PRIV) $(ROOT)/sbin/0W-httpd $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/data ++ chmod +s $(ROOT)/sbin/0W-httpd diff --git a/www/zerowait-httpd/files/patch-settings.h b/www/zerowait-httpd/files/patch-settings.h new file mode 100644 index 000000000000..5e6eba787303 --- /dev/null +++ b/www/zerowait-httpd/files/patch-settings.h @@ -0,0 +1,28 @@ +--- common/settings.h.orig Thu Mar 17 20:22:31 2005 ++++ common/settings.h Thu Mar 17 20:25:53 2005 +@@ -39,16 +39,16 @@ + #define BLOCK_SIZE 4096 + #define BUFFER_SIZE 4088 + +-#define ROOT "/var/0W" +-#define CONF ROOT "/conf" +-#define DATA ROOT "/data" +-#define CMD ROOT "/cmd" +-#define LOGS ROOT "/logs" ++#define ROOT "/var/0W/0W-httpd/" ++#define CONF ROOT "/var/0W/etc/0W-httpd/" ++#define DATA ROOT "/var/0W/0W-httpd/data" ++#define CMD ROOT "/var/0W/0W-httpd/cmd" ++#define LOGS ROOT "/var/0W/0W-httpd/logs/" + #define TMP ROOT "/tmp" +-#define PIDS DATA "/pids" +-#define TMPL DATA "/templates" +-#define WWW ROOT "/www" +-#define HTML WWW "/data" ++#define PIDS DATA "/var/0W/0W-httpd/pids" ++#define TMPL DATA "/var/0W/0W-httpd/templates" ++#define WWW ROOT "/var/0W/0W-httpd/www" ++#define HTML WWW "/var/0W/0W-httpd/data" + + #define ADMIN_EMAIL "counter@rax.ru" + #define SITE_URL "http://www.rax.ru" diff --git a/www/zerowait-httpd/pkg-descr b/www/zerowait-httpd/pkg-descr new file mode 100644 index 000000000000..5701ffa3b3ae --- /dev/null +++ b/www/zerowait-httpd/pkg-descr @@ -0,0 +1,5 @@ +0W-httpd is lightweight http server, that supports different +enchancements, such as kqueue and sendfile for operations. +0W-httpd runs as a single process. + +WWW: http://www.0w.ru/httpd/ diff --git a/www/zerowait-httpd/pkg-plist b/www/zerowait-httpd/pkg-plist new file mode 100644 index 000000000000..eaf3623c64c8 --- /dev/null +++ b/www/zerowait-httpd/pkg-plist @@ -0,0 +1,13 @@ +sbin/0W-httpd +etc/0W-httpd/countries.sample +etc/0W-httpd/crontab.sample +etc/0W-httpd/httpd.conf.sample +etc/0W-httpd/httpd.txt.sample +etc/0W-httpd/ip2country.sample +etc/rc.d/0W-httpd.sh +@dirrm etc/0W-httpd/ +@dirrm 0W-httpd/data/pids +@dirrm 0W-httpd/data/httpd +@dirrm 0W-httpd/data +@unexec rm -fr %D/0W-httpd/logs/ +@dirrm 0W-httpd/ |