Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 2014 11:23:37 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356097 - head/sysutils/rdate
Message-ID:  <201406011123.s51BNb2N010847@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sun Jun  1 11:23:36 2014
New Revision: 356097
URL: http://svnweb.freebsd.org/changeset/ports/356097
QAT: https://qat.redports.org/buildarchive/r356097/

Log:
  - Update rdate to the version used in OpenBSD
    this contains several improvements, including IPv6 and NTP support
  - Adopt port

Modified:
  head/sysutils/rdate/Makefile
  head/sysutils/rdate/distinfo
  head/sysutils/rdate/pkg-descr

Modified: head/sysutils/rdate/Makefile
==============================================================================
--- head/sysutils/rdate/Makefile	Sun Jun  1 11:14:59 2014	(r356096)
+++ head/sysutils/rdate/Makefile	Sun Jun  1 11:23:36 2014	(r356097)
@@ -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>

Modified: head/sysutils/rdate/distinfo
==============================================================================
--- head/sysutils/rdate/distinfo	Sun Jun  1 11:14:59 2014	(r356096)
+++ head/sysutils/rdate/distinfo	Sun Jun  1 11:23:36 2014	(r356097)
@@ -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

Modified: head/sysutils/rdate/pkg-descr
==============================================================================
--- head/sysutils/rdate/pkg-descr	Sun Jun  1 11:14:59 2014	(r356096)
+++ head/sysutils/rdate/pkg-descr	Sun Jun  1 11:23:36 2014	(r356097)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406011123.s51BNb2N010847>