mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- 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:
parent
daa0cf296c
commit
ab571e92ec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316081
@ -1,18 +1,13 @@
|
||||
# New ports collection makefile for: htpdate
|
||||
# Date created: 9 Jun 2005
|
||||
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
||||
#
|
||||
# Created by: Vsevolod Stakhov <vsevolod@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@FreeBSD.org
|
||||
MAINTAINER= jgh@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>
|
||||
|
@ -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
|
||||
|
43
net/htpdate/files/htpdate.in
Normal file
43
net/htpdate/files/htpdate.in
Normal 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"
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user