aboutsummaryrefslogtreecommitdiffstats
path: root/www/varnish
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2006-11-22 21:33:15 +0800
committerdes <des@FreeBSD.org>2006-11-22 21:33:15 +0800
commit3440a96eb97fad8e478134631683a4a375708af6 (patch)
tree01afa040c032113cf756af77f0cf150c088c02cf /www/varnish
parentc0dcbaf85e36706c9b4892fd1300a4ee9f604e83 (diff)
downloadfreebsd-ports-gnome-3440a96eb97fad8e478134631683a4a375708af6.tar.gz
freebsd-ports-gnome-3440a96eb97fad8e478134631683a4a375708af6.tar.zst
freebsd-ports-gnome-3440a96eb97fad8e478134631683a4a375708af6.zip
Add startup script.
PR: ports/105743 Submitted by: Sten Spans <sten@blinkenlights.nl>
Diffstat (limited to 'www/varnish')
-rw-r--r--www/varnish/Makefile3
-rw-r--r--www/varnish/files/varnishd.in32
2 files changed, 34 insertions, 1 deletions
diff --git a/www/varnish/Makefile b/www/varnish/Makefile
index a2db765a1f7a..eed626056724 100644
--- a/www/varnish/Makefile
+++ b/www/varnish/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/varnish/files/varnishd.in b/www/varnish/files/varnishd.in
new file mode 100644
index 000000000000..5d325d882d21
--- /dev/null
+++ b/www/varnish/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"