Page MenuHomeFreeBSD

D21431.1794537347.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D21431.1794537347.diff

Index: net/htpdate/Makefile
===================================================================
--- net/htpdate/Makefile
+++ net/htpdate/Makefile
@@ -3,6 +3,7 @@
PORTNAME= htpdate
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.vervest.org/htp/archive/c/ \
http://twekkel.home.xs4all.nl/htp/
Index: net/htpdate/files/htpdate.in
===================================================================
--- net/htpdate/files/htpdate.in
+++ net/htpdate/files/htpdate.in
@@ -16,29 +16,23 @@
load_rc_config htpdate
-htpdate_enable="${htpdate_enable:-"NO"}"
-htpdate_servers="${htpdate_servers:-"www.example.com"}"
-htpdate_flags="${htpdate_flags:-"-l -s -D"}"
+: "${htpdate_enable:="NO"}"
+: "${htpdate_servers:="www.example.com"}"
+: "${htpdate_flags:="-l -s -D"}"
name=htpdate
rcvar=htpdate_enable
-servers=${htpdate_servers}
-pidfile=/var/run/htpdate.pid
-command="/usr/local/bin/htpdate"
-command_args="${htpdate_flags} $servers"
-stop_cmd=htpdate_stop
+start_precmd="htpdate_prestart"
+command="%%PREFIX%%/bin/htpdate"
+command_args="${htpdate_servers}"
-htpdate_stop ()
-{
- if [ -f ${pidfile} ]; then
- echo "Stopping htpdate."
- kill `cat ${pidfile}`
- else
- echo "htpdate is not running."
- fi
+htpdate_prestart() {
+ local _pidfile="/var/run/htpdate.pid"
- rm -f ${pidfile}
+ if [ -z "$(check_process "${procname}")" ]; then
+ rm -f -- "${_pidfile}"
+ fi
}
run_rc_command "$1"

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 13, 2:35 AM (11 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41688336
Default Alt Text
D21431.1794537347.diff (1 KB)

Event Timeline