aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2012-06-21 14:07:16 +0800
committervanilla <vanilla@FreeBSD.org>2012-06-21 14:07:16 +0800
commitfe1987c784ea4f6afcf0f342efe14597dc14716d (patch)
treecda5cd975ddea88211e8f24b020ef74ef85297f6 /www
parentffdf14b779ef8e88c37c5de176559f8ae26b4a43 (diff)
downloadfreebsd-ports-gnome-fe1987c784ea4f6afcf0f342efe14597dc14716d.tar.gz
freebsd-ports-gnome-fe1987c784ea4f6afcf0f342efe14597dc14716d.tar.zst
freebsd-ports-gnome-fe1987c784ea4f6afcf0f342efe14597dc14716d.zip
Upgrade to 3.0.5.
Approved by: maintainer
Diffstat (limited to 'www')
-rw-r--r--www/trafficserver/Makefile2
-rw-r--r--www/trafficserver/distinfo4
-rw-r--r--www/trafficserver/files/trafficserver.in31
3 files changed, 29 insertions, 8 deletions
diff --git a/www/trafficserver/Makefile b/www/trafficserver/Makefile
index 01aa098b70ce..be753a4d499d 100644
--- a/www/trafficserver/Makefile
+++ b/www/trafficserver/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= trafficserver
-PORTVERSION= 3.0.4
+PORTVERSION= 3.0.5
CATEGORIES= www
MASTER_SITES= APACHE/${PORTNAME}
diff --git a/www/trafficserver/distinfo b/www/trafficserver/distinfo
index f9a29396ebd7..eb647b23846f 100644
--- a/www/trafficserver/distinfo
+++ b/www/trafficserver/distinfo
@@ -1,2 +1,2 @@
-SHA256 (trafficserver-3.0.4.tar.bz2) = e5fd5493ce7122684649daf946225c5baf1021c84f7641642bb494cbd64a341e
-SIZE (trafficserver-3.0.4.tar.bz2) = 2426892
+SHA256 (trafficserver-3.0.5.tar.bz2) = e42c0dc1b3fa736b183fd1cf4f706bd48ea524dbdf4606d76058621d096b187c
+SIZE (trafficserver-3.0.5.tar.bz2) = 2422477
diff --git a/www/trafficserver/files/trafficserver.in b/www/trafficserver/files/trafficserver.in
index 477d7b5443c2..daa2ede69867 100644
--- a/www/trafficserver/files/trafficserver.in
+++ b/www/trafficserver/files/trafficserver.in
@@ -9,13 +9,34 @@
. /etc/rc.subr
+rcvar=trafficserver_enable
name="trafficserver"
-pidfile="/var/run/${name}.pid"
-command="/usr/sbin/daemon -p ${pidfile} %%PREFIX%%/bin/traffic_server"
-procname="%%PREFIX%%/bin/traffic_server"
+trafficserver_enable=${trafficserver_enable:-"NO"}
+trafficserver_tm_pidfile=${trafficserver_tm_pidfile:-"/usr/local/var/trafficserver/manager.lock"}
+trafficserver_ts_pidfile=${trafficserver_ts_pidfile:-"/usr/local/var/trafficserver/server.lock"}
+pidfile="/var/run/traffic_cop.lock"
+stop_cmd="trafficserver_stop"
+command=/usr/sbin/daemon
+command_args="-p ${pidfile} %%PREFIX%%/bin/traffic_cop"
+procname="%%PREFIX%%/bin/traffic_cop"
-load_rc_config "$name"
+trafficserver_stop()
+{
+ if [ -f ${pidfile} ]; then
+ kill `cat ${pidfile}`
+ rm -f ${pidfile}
+ fi
+
+ if [ -f ${trafficserver_tm_pidfile} ]; then
+ kill `cat ${trafficserver_tm_pidfile}`
+ rm -f ${trafficserver_tm_pidfile}
+ fi
-: ${trafficserver_enable="NO"}
+ if [ -f ${trafficserver_ts_pidfile} ]; then
+ kill `cat ${trafficserver_ts_pidfile}`
+ rm -f ${trafficserver_ts_pidfile}
+ fi
+}
+load_rc_config "$name"
run_rc_command "$1"