svn commit: r316081 - in head/net/htpdate: . files
Jason Helfman
jgh at FreeBSD.org
Thu Apr 18 23:40:39 UTC 2013
Author: jgh
Date: Thu Apr 18 23:40:38 2013
New Revision: 316081
URL: http://svnweb.freebsd.org/changeset/ports/316081
Log:
- update to 1.0.5 [1]
- adjust MASTER_SITES and project site (pkg-descr) [1]
- while here add documentation support and rc service script
- take maintainership
Suggested by: eddy.vervest at xs4all.nl, software author [1]
Feature safe: yes
Added:
head/net/htpdate/files/
head/net/htpdate/files/htpdate.in (contents, props changed)
Modified:
head/net/htpdate/Makefile (contents, props changed)
head/net/htpdate/distinfo (contents, props changed)
head/net/htpdate/pkg-descr (contents, props changed)
Modified: head/net/htpdate/Makefile
==============================================================================
--- head/net/htpdate/Makefile Thu Apr 18 23:25:49 2013 (r316080)
+++ head/net/htpdate/Makefile Thu Apr 18 23:40:38 2013 (r316081)
@@ -1,18 +1,13 @@
-# New ports collection makefile for: htpdate
-# Date created: 9 Jun 2005
-# Whom: Vsevolod Stakhov <vsevolod at highsecure.ru>
-#
+# Created by: Vsevolod Stakhov <vsevolod at highsecure.ru>
# $FreeBSD$
-#
PORTNAME= htpdate
-PORTVERSION= 1.0.4
-PORTREVISION= 1
+PORTVERSION= 1.0.5
CATEGORIES= net ipv6
-MASTER_SITES= http://www.clevervest.com/htp/archive/c/ \
+MASTER_SITES= http://www.vervest.org/htp/archive/c/ \
http://twekkel.home.xs4all.nl/htp/
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= jgh at FreeBSD.org
COMMENT= Time synchronization over http utility
LICENSE= GPLv2 # (or later)
@@ -23,9 +18,19 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
MANCOMPRESSED= yes
MAN8= ${PORTNAME}.8
PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= Changelog README
+USE_RC_SUBR= ${PORTNAME}
+
+.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8.gz ${MAN8PREFIX}/man/man8
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.mk>
Modified: head/net/htpdate/distinfo
==============================================================================
--- head/net/htpdate/distinfo Thu Apr 18 23:25:49 2013 (r316080)
+++ head/net/htpdate/distinfo Thu Apr 18 23:40:38 2013 (r316081)
@@ -1,2 +1,2 @@
-SHA256 (htpdate-1.0.4.tar.bz2) = 2e1a4c0cc3a2f489b73b2f15f009067eb41af5a865e3d5701ba00f5cfb70ab57
-SIZE (htpdate-1.0.4.tar.bz2) = 16214
+SHA256 (htpdate-1.0.5.tar.bz2) = 80a714bf5222e05d88c673099ce3b1207d88db105a5ae6c761de0b2439528d73
+SIZE (htpdate-1.0.5.tar.bz2) = 16377
Added: head/net/htpdate/files/htpdate.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/htpdate/files/htpdate.in Thu Apr 18 23:40:38 2013 (r316081)
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+# PROVIDE: htpdate
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+# Add the following line to /etc/rc.conf to enable htpdate:
+#
+# htpdate_enable="YES"
+
+
+. /etc/rc.subr
+
+load_rc_config htpdate
+
+htpdate_enable="${htpdate_enable:-"NO"}"
+htpdate_servers="${htpdate_servers:-"www.freebsd.org www.linux.com"}"
+
+name=htpdate
+rcvar=htpdate_enable
+servers=${htpdate_servers}
+pidfile=/var/run/htpdate.pid
+
+command="/usr/local/bin/htpdate"
+command_args="-l -s -D $servers"
+stop_cmd=htpdate_stop
+
+htpdate_stop ()
+{
+ if [ -f ${pidfile} ]; then
+ echo "Stopping htpdate."
+ kill `cat ${pidfile}`
+ else
+ echo "htpdate is not running."
+ fi
+
+ rm -f ${pidfile}
+}
+
+run_rc_command "$1"
Modified: head/net/htpdate/pkg-descr
==============================================================================
--- head/net/htpdate/pkg-descr Thu Apr 18 23:25:49 2013 (r316080)
+++ head/net/htpdate/pkg-descr Thu Apr 18 23:40:38 2013 (r316081)
@@ -6,4 +6,4 @@ computer synchronized.
Accuracy of htpdate is usually better than 0.5 seconds (even better with
multiple servers). Htpdate can also work through http proxy.
-WWW: http://www.clevervest.com/htp/
+WWW: http://www.vervest.org/htp/
More information about the svn-ports-all
mailing list