Resurrect the ntp release candidate port (4.2.6p3.r8).

This commit is contained in:
Cy Schubert 2010-11-04 21:47:38 +00:00
parent bb0b03257d
commit cd9cd67649
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264098
5 changed files with 339 additions and 0 deletions

74
net/ntp-rc/Makefile Normal file
View file

@ -0,0 +1,74 @@
# New ports collection makefile for: ntp
# Date created: Di 5 Mai 1998 21:31:03 CEST
# Whom: andreas
#
# $FreeBSD$
#
PORTNAME= ntp
PORTVERSION?= 4.2.6p3.r8
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
LATEST_LINK= ${PORTNAME}
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake:111 libtool:22
MAN1= sntp.1 \
ntpd.1 \
ntpdc.1 \
ntpq.1 \
ntpsnmpd.1 \
ntp-keygen.1 \
OPTIONS= NTPSNMPD "Build and install ntpsnmpd" OFF \
RAWDCF "Enable RAWDCF option" OFF \
SSL "Enable SSL" ON
.include <bsd.port.pre.mk>
.if defined(WITH_RAWDCF)
CONFIGURE_ARGS+= --enable-RAWDCF
.endif
.if !defined(WITH_SSL)
CONFIGURE_ARGS+= --without-crypto
PLIST_SUB+= SSL="@comment "
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
.endif
CONFIGURE_ARGS+= --enable-ipv6
.if defined(WITH_NTPSNMPD)
PLIST_FILES+= bin/ntpsnmpd
BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
.else
CONFIGURE_ARGS+= --without-ntpsnmpd
.endif
pre-configure:
@cd ${WRKSRC} && ./bootstrap
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

3
net/ntp-rc/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (ntp-4.2.6p3-RC8.tar.gz) = a7ee7b47d9ad03c96849b1d44ccac6dc
SHA256 (ntp-4.2.6p3-RC8.tar.gz) = d43b3d09f7cd3d7971d1e49bf98927a98dc9de953069e9703e505b56e6b23736
SIZE (ntp-4.2.6p3-RC8.tar.gz) = 4361657

View file

@ -0,0 +1,21 @@
--- ntpd/ntp_io.c.orig 2010-06-03 20:24:51.000000000 -0700
+++ ntpd/ntp_io.c 2010-06-03 20:27:36.000000000 -0700
@@ -1414,12 +1414,18 @@
sockaddr_u *psau
)
{
+ unsigned char zerobuf[8];
+
if (IS_IPV4(psau) && !NSRCADR(psau))
return 1;
#ifdef INCLUDE_IPV6_SUPPORT
if (IS_IPV6(psau) && S_ADDR6_EQ(psau, &in6addr_any))
return 1;
+ bzero(zerobuf, sizeof(zerobuf));
+ // If the host portion is all 0, then assume it's a router's anycast address.
+ if (IS_IPV6(psau) && memcmp((char*)(&((struct sockaddr_in6*)psau)->sin6_addr) + 8, zerobuf, 8) == 0)
+ return 1;
#endif
return 0;

16
net/ntp-rc/pkg-descr Normal file
View file

@ -0,0 +1,16 @@
The Network Time Protocol (NTP) is used to synchronize the time of a
computer client or server to another server or reference time source,
such as a radio or satellite receiver or modem.
It provides client accuracies typically within a millisecond on LANs
and up to a few tens of milliseconds on WANs relative to a primary
server synchronized to Coordinated Universal Time (UTC) via a Global
Positioning Service (GPS) receiver, for example.
Typical NTP configurations utilize multiple redundant servers and diverse
network paths, in order to achieve high accuracy and reliability.
Some configurations include cryptographic authentication to prevent
accidental or malicious protocol attacks.
WWW: http://www.ntp.org/

225
net/ntp-rc/pkg-plist Normal file
View file

@ -0,0 +1,225 @@
%%SSL%%bin/ntp-keygen
bin/ntp-wait
bin/ntpd
bin/ntpdate
bin/ntpdc
bin/ntpq
bin/ntptime
bin/ntptrace
bin/sntp
bin/tickadj
%%PORTDOCS%%%%DOCSDIR%%/accopt.html
%%PORTDOCS%%%%DOCSDIR%%/assoc.html
%%PORTDOCS%%%%DOCSDIR%%/audio.html
%%PORTDOCS%%%%DOCSDIR%%/authopt.html
%%PORTDOCS%%%%DOCSDIR%%/bugs.html
%%PORTDOCS%%%%DOCSDIR%%/build.html
%%PORTDOCS%%%%DOCSDIR%%/clockopt.html
%%PORTDOCS%%%%DOCSDIR%%/comdex.html
%%PORTDOCS%%%%DOCSDIR%%/config.html
%%PORTDOCS%%%%DOCSDIR%%/confopt.html
%%PORTDOCS%%%%DOCSDIR%%/copyright.html
%%PORTDOCS%%%%DOCSDIR%%/debug.html
%%PORTDOCS%%%%DOCSDIR%%/decode.html
%%PORTDOCS%%%%DOCSDIR%%/description_files/description.jpg
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver1.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver10.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver11.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver12.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver16.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver18.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver19.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver2.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver20.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver22.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver26.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver27.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver28.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver29.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver3.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver30.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver31.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver32.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver33.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver34.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver35.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver36.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver37.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver38.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver39.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver4.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver40.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver42.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver43.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver44.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver5.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver6.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver7.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver8.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/driver9.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/icons/home.gif
%%PORTDOCS%%%%DOCSDIR%%/drivers/icons/mail2.gif
%%PORTDOCS%%%%DOCSDIR%%/drivers/mx4200data.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/oncore-shmem.html
%%PORTDOCS%%%%DOCSDIR%%/drivers/scripts/footer.txt
%%PORTDOCS%%%%DOCSDIR%%/drivers/scripts/style.css
%%PORTDOCS%%%%DOCSDIR%%/drivers/tf582_4.html
%%PORTDOCS%%%%DOCSDIR%%/extern.html
%%PORTDOCS%%%%DOCSDIR%%/gadget.html
%%PORTDOCS%%%%DOCSDIR%%/hints.html
%%PORTDOCS%%%%DOCSDIR%%/hints/a-ux
%%PORTDOCS%%%%DOCSDIR%%/hints/aix
%%PORTDOCS%%%%DOCSDIR%%/hints/bsdi
%%PORTDOCS%%%%DOCSDIR%%/hints/changes
%%PORTDOCS%%%%DOCSDIR%%/hints/decosf1
%%PORTDOCS%%%%DOCSDIR%%/hints/decosf2
%%PORTDOCS%%%%DOCSDIR%%/hints/freebsd
%%PORTDOCS%%%%DOCSDIR%%/hints/hpux
%%PORTDOCS%%%%DOCSDIR%%/hints/linux
%%PORTDOCS%%%%DOCSDIR%%/hints/mpeix
%%PORTDOCS%%%%DOCSDIR%%/hints/notes-xntp-v3
%%PORTDOCS%%%%DOCSDIR%%/hints/parse
%%PORTDOCS%%%%DOCSDIR%%/hints/refclocks
%%PORTDOCS%%%%DOCSDIR%%/hints/rs6000
%%PORTDOCS%%%%DOCSDIR%%/hints/sco.html
%%PORTDOCS%%%%DOCSDIR%%/hints/sgi
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris-dosynctodr.html
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris.html
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris.xtra.4023118
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris.xtra.4095849
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris.xtra.S99ntpd
%%PORTDOCS%%%%DOCSDIR%%/hints/solaris.xtra.patchfreq
%%PORTDOCS%%%%DOCSDIR%%/hints/sun4
%%PORTDOCS%%%%DOCSDIR%%/hints/svr4-dell
%%PORTDOCS%%%%DOCSDIR%%/hints/svr4_package
%%PORTDOCS%%%%DOCSDIR%%/hints/todo
%%PORTDOCS%%%%DOCSDIR%%/hints/vxworks.html
%%PORTDOCS%%%%DOCSDIR%%/hints/winnt.html
%%PORTDOCS%%%%DOCSDIR%%/howto.html
%%PORTDOCS%%%%DOCSDIR%%/icons/home.gif
%%PORTDOCS%%%%DOCSDIR%%/icons/mail2.gif
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/kern.html
%%PORTDOCS%%%%DOCSDIR%%/kernpps.html
%%PORTDOCS%%%%DOCSDIR%%/keygen.html
%%PORTDOCS%%%%DOCSDIR%%/manyopt.html
%%PORTDOCS%%%%DOCSDIR%%/miscopt.html
%%PORTDOCS%%%%DOCSDIR%%/monopt.html
%%PORTDOCS%%%%DOCSDIR%%/msyslog.html
%%PORTDOCS%%%%DOCSDIR%%/ntp_conf.html
%%PORTDOCS%%%%DOCSDIR%%/ntpd.html
%%PORTDOCS%%%%DOCSDIR%%/ntpdate.html
%%PORTDOCS%%%%DOCSDIR%%/ntpdc.html
%%PORTDOCS%%%%DOCSDIR%%/ntpdsim.html
%%PORTDOCS%%%%DOCSDIR%%/ntpdsim_new.html
%%PORTDOCS%%%%DOCSDIR%%/ntpq.html
%%PORTDOCS%%%%DOCSDIR%%/ntptime.html
%%PORTDOCS%%%%DOCSDIR%%/ntptrace.html
%%PORTDOCS%%%%DOCSDIR%%/parsedata.html
%%PORTDOCS%%%%DOCSDIR%%/parsenew.html
%%PORTDOCS%%%%DOCSDIR%%/pic/9400n.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/alice11.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice13.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice15.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice23.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice31.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice32.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice35.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice38.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice44.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice47.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice51.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/alice61.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/barnstable.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/beaver.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/boom3.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/boom3a.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/boom4.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/broad.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/bustardfly.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/c51.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/description.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/dogsnake.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/driver29.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/driver43_1.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/driver43_2.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/fg6021.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/fg6039.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/flatheads.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/freq1211.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/gadget.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/gps167.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/hornraba.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/igclock.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/neoclock4x.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/offset1211.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/oncore_evalbig.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/oncore_remoteant.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/oncore_utplusbig.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/oz2.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/panda.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pd_om006.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pd_om011.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/peer.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo1a.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo3a.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo4.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo5.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo6.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo7.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pogo8.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/pzf509.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/pzf511.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/rabbit.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/radio2.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/sheepb.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/stack1a.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/thunderbolt.jpg
%%PORTDOCS%%%%DOCSDIR%%/pic/tonea.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/tribeb.gif
%%PORTDOCS%%%%DOCSDIR%%/pic/wingdorothy.gif
%%PORTDOCS%%%%DOCSDIR%%/pps.html
%%PORTDOCS%%%%DOCSDIR%%/prefer.html
%%PORTDOCS%%%%DOCSDIR%%/quick.html
%%PORTDOCS%%%%DOCSDIR%%/rate.html
%%PORTDOCS%%%%DOCSDIR%%/rdebug.html
%%PORTDOCS%%%%DOCSDIR%%/refclock.html
%%PORTDOCS%%%%DOCSDIR%%/release.html
%%PORTDOCS%%%%DOCSDIR%%/scripts/accopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/audio.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/authopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/clockopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/command.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/config.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/confopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/external.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/footer.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/install.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/manual.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/misc.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/miscopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/monopt.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/refclock.txt
%%PORTDOCS%%%%DOCSDIR%%/scripts/style.css
%%PORTDOCS%%%%DOCSDIR%%/sitemap.html
%%PORTDOCS%%%%DOCSDIR%%/sntp.html
%%PORTDOCS%%%%DOCSDIR%%/tickadj.html
%%PORTDOCS%%%%DOCSDIR%%/xleave.html
%%EXAMPLESDIR%%/README
%%EXAMPLESDIR%%/baldwin.conf
%%EXAMPLESDIR%%/beauregard.conf
%%EXAMPLESDIR%%/grundoon.conf
%%EXAMPLESDIR%%/malarky.conf
%%EXAMPLESDIR%%/pogo.conf
%%EXAMPLESDIR%%/rackety.conf
%%PORTDOCS%%@dirrm %%DOCSDIR%%/scripts
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pic
%%PORTDOCS%%@dirrm %%DOCSDIR%%/icons
%%PORTDOCS%%@dirrm %%DOCSDIR%%/hints
%%PORTDOCS%%@dirrm %%DOCSDIR%%/drivers/scripts
%%PORTDOCS%%@dirrm %%DOCSDIR%%/drivers/icons
%%PORTDOCS%%@dirrm %%DOCSDIR%%/drivers
%%PORTDOCS%%@dirrm %%DOCSDIR%%/description_files
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%EXAMPLESDIR%%