- Update rdate to the version used in OpenBSD
this contains several improvements, including IPv6 and NTP support - Adopt port
This commit is contained in:
parent
c7984d1e89
commit
c40dd96701
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356097
@ -2,20 +2,23 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rdate
|
||||
PORTVERSION= 1.3
|
||||
PORTVERSION= 20140220
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.cons.org/freebsd-distfiles/
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= johans
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= johans@FreeBSD.org
|
||||
COMMENT= Sets the clock of the local host to the time of another host
|
||||
|
||||
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/rdate
|
||||
CFLAGS+= -DNO_UTIL -D__dead= -D'SA_LEN(x)=(x)->sa_len'
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PLIST_FILES= sbin/rdate man/man8/${PORTNAME}.8.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} -e 's,/right,,' ${WRKSRC}/rdate.8
|
||||
|
||||
post-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/rdate ${STAGEDIR}${PREFIX}/sbin/
|
||||
${INSTALL_MAN} ${WRKSRC}/rdate.8 ${STAGEDIR}${PREFIX}/man/man8/
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/rdate ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_MAN} ${WRKSRC}/rdate.8 ${STAGEDIR}${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (rdate-1.3.tar.gz) = a5990604b891bdf9dcfde866add3755546f9cc5204297907965929bb52086e94
|
||||
SIZE (rdate-1.3.tar.gz) = 2996
|
||||
SHA256 (rdate-20140220.tar.gz) = f019043fe12e6e731981e410c16d4dc916eebf570881ce74030c67c5a9b54883
|
||||
SIZE (rdate-20140220.tar.gz) = 9974
|
||||
|
@ -1,3 +1,6 @@
|
||||
rdate(8) sets the clock of the local host to the time of another host.
|
||||
|
||||
It is simpler than xntp and friends.
|
||||
OpenBSD's rdate is a much improved version of the original rdate(8)
|
||||
by Christos Zoulas. This version not only supports RFC 868,
|
||||
but also RFC 5905 (NTP, SNTP), which is now used by default.
|
||||
Both IPv4 and IPv6 are supported.
|
||||
|
Loading…
Reference in New Issue
Block a user