- 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@xs4all.nl, software author [1]

Feature safe:	yes
This commit is contained in:
Jason Helfman 2013-04-18 23:40:38 +00:00
parent daa0cf296c
commit ab571e92ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316081
4 changed files with 60 additions and 12 deletions

View file

@ -1,18 +1,13 @@
# New ports collection makefile for: htpdate # Created by: Vsevolod Stakhov <vsevolod@highsecure.ru>
# Date created: 9 Jun 2005
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= htpdate PORTNAME= htpdate
PORTVERSION= 1.0.4 PORTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= net ipv6 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/ http://twekkel.home.xs4all.nl/htp/
MAINTAINER= ports@FreeBSD.org MAINTAINER= jgh@FreeBSD.org
COMMENT= Time synchronization over http utility COMMENT= Time synchronization over http utility
LICENSE= GPLv2 # (or later) LICENSE= GPLv2 # (or later)
@ -23,9 +18,19 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
MANCOMPRESSED= yes MANCOMPRESSED= yes
MAN8= ${PORTNAME}.8 MAN8= ${PORTNAME}.8
PLIST_FILES= bin/${PORTNAME} PLIST_FILES= bin/${PORTNAME}
PORTDOCS= Changelog README
USE_RC_SUBR= ${PORTNAME}
.include <bsd.port.options.mk>
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8.gz ${MAN8PREFIX}/man/man8 ${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> .include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (htpdate-1.0.4.tar.bz2) = 2e1a4c0cc3a2f489b73b2f15f009067eb41af5a865e3d5701ba00f5cfb70ab57 SHA256 (htpdate-1.0.5.tar.bz2) = 80a714bf5222e05d88c673099ce3b1207d88db105a5ae6c761de0b2439528d73
SIZE (htpdate-1.0.4.tar.bz2) = 16214 SIZE (htpdate-1.0.5.tar.bz2) = 16377

View file

@ -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"

View file

@ -6,4 +6,4 @@ computer synchronized.
Accuracy of htpdate is usually better than 0.5 seconds (even better with Accuracy of htpdate is usually better than 0.5 seconds (even better with
multiple servers). Htpdate can also work through http proxy. multiple servers). Htpdate can also work through http proxy.
WWW: http://www.clevervest.com/htp/ WWW: http://www.vervest.org/htp/