aboutsummaryrefslogtreecommitdiff
path: root/www/zerowait-httpd
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-04-25 19:52:00 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-04-25 19:52:00 +0000
commiteb22ef9a6f209d24f10eb9ed9951c288dd5efbda (patch)
tree7bf35f737d8b51a1a7a4cbeb9f53dd6aa3d63d3c /www/zerowait-httpd
parentea234c75e733efd9dfefd10b2bb35b354bf597f5 (diff)
downloadports-eb22ef9a6f209d24f10eb9ed9951c288dd5efbda.tar.gz
ports-eb22ef9a6f209d24f10eb9ed9951c288dd5efbda.zip
Notes
Diffstat (limited to 'www/zerowait-httpd')
-rw-r--r--www/zerowait-httpd/Makefile19
-rw-r--r--www/zerowait-httpd/distinfo6
-rw-r--r--www/zerowait-httpd/files/0W-httpd.in (renamed from www/zerowait-httpd/files/0W-httpd.sh)0
-rw-r--r--www/zerowait-httpd/pkg-plist11
4 files changed, 15 insertions, 21 deletions
diff --git a/www/zerowait-httpd/Makefile b/www/zerowait-httpd/Makefile
index 654b89d61779..6006ca4fe883 100644
--- a/www/zerowait-httpd/Makefile
+++ b/www/zerowait-httpd/Makefile
@@ -6,28 +6,21 @@
#
PORTNAME= zerowait-httpd
-PORTVERSION= 0.7m
+PORTVERSION= 0.7n
CATEGORIES= www
MASTER_SITES= http://www.0w.ru/httpd/
DISTNAME= 0W-httpd-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= laszlof@vonostingroup.com
COMMENT= Lightweight and fast http server
USE_GMAKE= yes
USE_OPENSSL= yes
-USE_RC_SUBR= yes
+USE_RC_SUBR= 0W-httpd
MAKE_ARGS= CFLAGS="${CFLAGS}" CPPFLAGS=-I..
-WWW_USER?= ${WWWOWN}
-WWW_GROUP?= ${WWWGRP}
-
-pre-build:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' -e 's,%%RC_SUBR%%,${RC_SUBR},' \
- ${FILESDIR}/0W-httpd.sh > ${WRKDIR}/0W-httpd.sh
- @${SH} -c 'cd ${WRKSRC} && ./configure --prefix=${PREFIX} --owner=${WWW_USER} --group=${WWW_GROUP}'
-
-post-install:
- @${INSTALL_SCRIPT} -m 755 ${WRKDIR}/0W-httpd.sh ${PREFIX}/etc/rc.d/0W-httpd.sh
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} --owner=${WWWOWN} --group=${WWWGRP}
+PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
.include <bsd.port.mk>
diff --git a/www/zerowait-httpd/distinfo b/www/zerowait-httpd/distinfo
index da14435a0dff..e090f9bb0504 100644
--- a/www/zerowait-httpd/distinfo
+++ b/www/zerowait-httpd/distinfo
@@ -1,3 +1,3 @@
-MD5 (0W-httpd-0.7m.tar.gz) = b599bf9c6e7c784eda29f420aab45e31
-SHA256 (0W-httpd-0.7m.tar.gz) = 18881788f32dcb16434431d2245e5c48b92344028dbe9b85f1b8d6e341ca17e3
-SIZE (0W-httpd-0.7m.tar.gz) = 83930
+MD5 (0W-httpd-0.7n.tar.gz) = 4d506e21f57a4f1a3ca1b87a6a50299f
+SHA256 (0W-httpd-0.7n.tar.gz) = dd033778ee0a6f5ed570c774a816c1ffa638f7487ae0c35f39aaa81a10029a85
+SIZE (0W-httpd-0.7n.tar.gz) = 84854
diff --git a/www/zerowait-httpd/files/0W-httpd.sh b/www/zerowait-httpd/files/0W-httpd.in
index f10e657d344b..f10e657d344b 100644
--- a/www/zerowait-httpd/files/0W-httpd.sh
+++ b/www/zerowait-httpd/files/0W-httpd.in
diff --git a/www/zerowait-httpd/pkg-plist b/www/zerowait-httpd/pkg-plist
index 45378495bc79..0f93ee8c904b 100644
--- a/www/zerowait-httpd/pkg-plist
+++ b/www/zerowait-httpd/pkg-plist
@@ -1,5 +1,4 @@
-@comment $FreeBSD$
-@unexec %D/etc/rc.d/0W-httpd.sh stop
+@unexec %D/etc/rc.d/0W-httpd stop
bin/update-countries.sh
bin/convert-ranges
bin/convert-geoip
@@ -8,9 +7,11 @@ etc/0W-httpd/countries
etc/0W-httpd/countries.ips
etc/0W-httpd/countries.rus
etc/0W-httpd/httpd.conf.sample
-etc/rc.d/0W-httpd.sh
+@exec install -d -o %%WWWOWN%% -g %%WWWGRP%% %D/0W-httpd/pids
+@exec install -d -o %%WWWOWN%% -g %%WWWGRP%% %D/0W-httpd/data
+@exec install -d -o %%WWWOWN%% -g %%WWWGRP%% %D/0W-httpd/logs
@dirrm etc/0W-httpd/
@dirrm 0W-httpd/pids
@dirrm 0W-httpd/data
-@unexec rm -fr %D/0W-httpd/logs/ > /dev/null 2>&1 || true
-@dirrm 0W-httpd/
+@unexec rm -fr %D/0W-httpd/logs > /dev/null 2>&1 || true
+@dirrm 0W-httpd