FreeBSD Bugzilla – Attachment 52155 Details for
Bug 79053
New port: www/zerowait-httpd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 5.87 KB, created by
Vsevolod Stakhov
on 2005-03-20 15:30:02 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Vsevolod Stakhov
Created:
2005-03-20 15:30:02 UTC
Size:
5.87 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># zerowait-httpd ># zerowait-httpd/Makefile ># zerowait-httpd/files ># zerowait-httpd/files/patch-Makefile ># zerowait-httpd/files/patch-settings.h ># zerowait-httpd/files/0W-httpd.sh ># zerowait-httpd/distinfo ># zerowait-httpd/pkg-descr ># zerowait-httpd/pkg-plist ># >echo c - zerowait-httpd >mkdir -p zerowait-httpd > /dev/null 2>&1 >echo x - zerowait-httpd/Makefile >sed 's/^X//' >zerowait-httpd/Makefile << 'END-of-zerowait-httpd/Makefile' >X# New ports collection makefile for: 0W-httpd >X# Date created: 17 March 2005 >X# Whom: Vsevolod Stakhov >X# >X# $FreeBSD$ >X# >X >XPORTNAME= zerowait-httpd >XPORTVERSION= 0.7l >XCATEGORIES= www >XMASTER_SITES= http://www.0w.ru/httpd/ >XDISTNAME= 0W-httpd-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} >X >XMAINTAINER= vsevolod@highsecure.ru >XCOMMENT= Lightweight and fast http server >X >XUSE_GMAKE= yes >XUSE_REINPLACE= yes >X >XWRKSRC= ${WRKDIR}/${DISTNAME}/src >XMAKE_ARGS= CFLAGS="${CFLAGS}" CPPFLAGS=-I.. >X >Xpost-patch: >X @${REINPLACE_CMD} -e "s,/var/0W,${PREFIX}," ${WRKSRC}/Makefile >X @${REINPLACE_CMD} -e "s,/var/0W,${PREFIX}," ${WRKSRC}/common/settings.h >X >Xpost-install: >X @${INSTALL_SCRIPT} -m 755 ${FILESDIR}/0W-httpd.sh ${PREFIX}/etc/rc.d/0W-httpd.sh >X >X.include <bsd.port.mk> >END-of-zerowait-httpd/Makefile >echo c - zerowait-httpd/files >mkdir -p zerowait-httpd/files > /dev/null 2>&1 >echo x - zerowait-httpd/files/patch-Makefile >sed 's/^X//' >zerowait-httpd/files/patch-Makefile << 'END-of-zerowait-httpd/files/patch-Makefile' >X--- Makefile.orig Wed Oct 6 21:21:53 2004 >X+++ Makefile Sun Mar 20 17:31:49 2005 >X@@ -2,6 +2,6 @@ >X >X-ROOT=/var/0W >X-PRIV=nobody:nobody >X+ROOT=/var/0W >X+PRIV=www:www >X >X SUBDIRS=common httpd >X >X@@ -14,7 +14,14 @@ >X >X install: >X set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done >X- test -d $(ROOT) || (mkdir $(ROOT) && cp -R ../bin ../conf ../data ../logs $(ROOT)) >X- test ../bin/0W-httpd -ef $(ROOT)/bin/0W-httpd || cp ../bin/0W-httpd $(ROOT)/bin/0W-httpd >X- chown -R $(PRIV) $(ROOT)/bin/0W-httpd $(ROOT)/logs $(ROOT)/data >X- chmod +s $(ROOT)/bin/0W-httpd >X+ test -d $(ROOT)/0W-httpd || (mkdir $(ROOT)/0W-httpd) >X+ cp -R ../data ../logs $(ROOT)/0W-httpd >X+ test ../bin/0W-httpd -ef $(ROOT)/sbin/0W-httpd || cp ../bin/0W-httpd $(ROOT)/sbin/0W-httpd >X+ test -d $(ROOT)/etc/0W-httpd || (mkdir $(ROOT)/etc/0W-httpd && cd ../conf/ && \ >X+ cp countries $(ROOT)/etc/0W-httpd/countries.sample && \ >X+ cp crontab $(ROOT)/etc/0W-httpd/crontab.sample && \ >X+ cp httpd.conf $(ROOT)/etc/0W-httpd/httpd.conf.sample && \ >X+ cp httpd.txt $(ROOT)/etc/0W-httpd/httpd.txt.sample && \ >X+ cp ip2country $(ROOT)/etc/0W-httpd/ip2country.sample ) >X+ chown -R $(PRIV) $(ROOT)/sbin/0W-httpd $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/data >X+ chmod +s $(ROOT)/sbin/0W-httpd >END-of-zerowait-httpd/files/patch-Makefile >echo x - zerowait-httpd/files/patch-settings.h >sed 's/^X//' >zerowait-httpd/files/patch-settings.h << 'END-of-zerowait-httpd/files/patch-settings.h' >X--- common/settings.h.orig Thu Mar 17 20:22:31 2005 >X+++ common/settings.h Thu Mar 17 20:25:53 2005 >X@@ -39,16 +39,16 @@ >X #define BLOCK_SIZE 4096 >X #define BUFFER_SIZE 4088 >X >X-#define ROOT "/var/0W" >X-#define CONF ROOT "/conf" >X-#define DATA ROOT "/data" >X-#define CMD ROOT "/cmd" >X-#define LOGS ROOT "/logs" >X+#define ROOT "/var/0W/0W-httpd/" >X+#define CONF ROOT "/var/0W/etc/0W-httpd/" >X+#define DATA ROOT "/var/0W/0W-httpd/data" >X+#define CMD ROOT "/var/0W/0W-httpd/cmd" >X+#define LOGS ROOT "/var/0W/0W-httpd/logs/" >X #define TMP ROOT "/tmp" >X-#define PIDS DATA "/pids" >X-#define TMPL DATA "/templates" >X-#define WWW ROOT "/www" >X-#define HTML WWW "/data" >X+#define PIDS DATA "/var/0W/0W-httpd/pids" >X+#define TMPL DATA "/var/0W/0W-httpd/templates" >X+#define WWW ROOT "/var/0W/0W-httpd/www" >X+#define HTML WWW "/var/0W/0W-httpd/data" >X >X #define ADMIN_EMAIL "counter@rax.ru" >X #define SITE_URL "http://www.rax.ru" >END-of-zerowait-httpd/files/patch-settings.h >echo x - zerowait-httpd/files/0W-httpd.sh >sed 's/^X//' >zerowait-httpd/files/0W-httpd.sh << 'END-of-zerowait-httpd/files/0W-httpd.sh' >X#!/bin/sh >X# $FreeBSD$ >X >X# PROVIDE: 0W-httpd >X# REQUIRE: DAEMON >X# BEFORE: LOGIN >X# KEYWORD: shutdown >X >X# Define these 0Whttpd_* variables in one of these files: >X# /etc/rc.conf >X# /etc/rc.conf.local >X# >X# DO NOT CHANGE THESE DEFAULT VALUES HERE >X# >X0Whttpd_enable=${0Whttpd_enable-"NO"} >X >X. %%RC_SUBR%% >X >Xname="0Whttpd" >Xrcvar=`set_rcvar` >Xcommand="%%PREFIX%%/sbin/0W-httpd" >Xargs="-c %%PREFIX%%/etc/0W-httpd/httpd.conf" >X >Xload_rc_config $name >X >Xstart_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command}" >X >Xrun_rc_command "$1" >END-of-zerowait-httpd/files/0W-httpd.sh >echo x - zerowait-httpd/distinfo >sed 's/^X//' >zerowait-httpd/distinfo << 'END-of-zerowait-httpd/distinfo' >XSize (0W-httpd-0.7l.tar.gz) = 86107 >XMD5 (0W-httpd-0.7l.tar.gz) = f3c94bf665c71ae286cb99f50921af92 >END-of-zerowait-httpd/distinfo >echo x - zerowait-httpd/pkg-descr >sed 's/^X//' >zerowait-httpd/pkg-descr << 'END-of-zerowait-httpd/pkg-descr' >X0W-httpd is lightweight http server, that supports different >Xenchancements, such as kqueue and sendfile for operations. >X0W-httpd runs as a single process. >X >XWWW: http://www.0w.ru/httpd/ >END-of-zerowait-httpd/pkg-descr >echo x - zerowait-httpd/pkg-plist >sed 's/^X//' >zerowait-httpd/pkg-plist << 'END-of-zerowait-httpd/pkg-plist' >Xsbin/0W-httpd >Xetc/0W-httpd/countries.sample >Xetc/0W-httpd/crontab.sample >Xetc/0W-httpd/httpd.conf.sample >Xetc/0W-httpd/httpd.txt.sample >Xetc/0W-httpd/ip2country.sample >Xetc/rc.d/0W-httpd.sh >X >X@dirrm etc/0W-httpd/ >X@dirrm 0W-httpd/data/pids >X@dirrm 0W-httpd/data/httpd >X@dirrm 0W-httpd/data >X@unexec rm -fr %D/0W-httpd/logs/ >X@dirrm 0W-httpd/ >END-of-zerowait-httpd/pkg-plist >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 79053
: 52155