aboutsummaryrefslogtreecommitdiff
path: root/www/varnish2
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2006-11-22 13:33:15 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2006-11-22 13:33:15 +0000
commit295a56c990abde89d22dfb21ea21233a774355d9 (patch)
tree94f8af50d0981fd276cf1ca43fa38860cb22236f /www/varnish2
parent0143d3c183b5956276d30f65eb3a9b29a4fc6ebf (diff)
downloadports-295a56c990abde89d22dfb21ea21233a774355d9.tar.gz
ports-295a56c990abde89d22dfb21ea21233a774355d9.zip
Notes
Diffstat (limited to 'www/varnish2')
-rw-r--r--www/varnish2/Makefile3
-rw-r--r--www/varnish2/files/varnishd.in32
2 files changed, 34 insertions, 1 deletions
diff --git a/www/varnish2/Makefile b/www/varnish2/Makefile
index a2db765a1f7a..eed626056724 100644
--- a/www/varnish2/Makefile
+++ b/www/varnish2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= varnish
PORTVERSION= 1.0.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -23,6 +23,7 @@ USE_LDCONFIG= yes
MAN1= varnishd.1 varnishhist.1 varnishlog.1 varnishncsa.1 \
varnishstat.1 varnishtop.1
MAN7= vcl.7
+USE_RC_SUBR+= varnishd
.include <bsd.port.pre.mk>
diff --git a/www/varnish2/files/varnishd.in b/www/varnish2/files/varnishd.in
new file mode 100644
index 000000000000..5d325d882d21
--- /dev/null
+++ b/www/varnish2/files/varnishd.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+# PROVIDE: varnishd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable varnishd:
+#
+#varnishd_enable="YES"
+#
+# See varnishd(1) for flags.
+#
+
+. %%RC_SUBR%%
+
+name=varnishd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/varnishd
+
+# set defaults
+
+varnishd_enable=${varnishd_enable:-"NO"}
+varnishd_flags=${varnishd_flags:-""}
+
+load_rc_config ${name}
+
+run_rc_command "$1"