1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

This is a port of ptpd, the Precision Time Protocol, which is an

implementation of IEEE 1588.

http://ptpd.sourceforge.net/

Submitted by:	gnn (private mail/IRC)
Approved by:	garga (mentor, implicit)
This commit is contained in:
Wesley Shields 2008-06-05 01:44:43 +00:00
parent 225f060b80
commit 0a66c5e1a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214329
8 changed files with 206 additions and 0 deletions

View File

@ -708,6 +708,7 @@
SUBDIR += pppoa
SUBDIR += ppptraf
SUBDIR += pptpclient
SUBDIR += ptpd
SUBDIR += prosearch
SUBDIR += proxy-connect
SUBDIR += proxy-suite

30
net/ptpd/Makefile Normal file
View File

@ -0,0 +1,30 @@
# New ports collection makefile for: ptpd
# Date created: 4 June 2008
# Whom: George V. Neville-Neil <gnn@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ptpd
DISTVERSION= 1rc1
CATEGORIES= net
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ptpd_${DISTVERSION}
MAINTAINER= gnn@freebsd.org
COMMENT= An implementation of the precision time protocol IEEE 1588
WRKSRC= ${WRKDIR}/ptpd/src
PLIST_FILES= bin/ptpd
USE_RC_SUBR= ptp
MAN8= ptpd.8
do-install::
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8
.include <bsd.port.mk>

3
net/ptpd/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ptpd_1rc1.tar.gz) = 2698af2aa2c14dfd9ff2319f7b827499
SHA256 (ptpd_1rc1.tar.gz) = 9290b5e28690488a39c612ffd6e5c963c8498676f71866a885ac2021a1d1d007
SIZE (ptpd_1rc1.tar.gz) = 376819

View File

@ -0,0 +1,11 @@
--- Makefile Tue Mar 27 18:14:20 2007
+++ Makefile Thu Feb 28 14:49:56 2008
@@ -1,7 +1,7 @@
# Makefile for ptpd
RM = rm -f
-CFLAGS = -Wall
+CFLAGS+= -Wall -DBSD_INTERFACE_FUNCTIONS
#CPPFLAGS = -DPTPD_DBG -DPTPD_NO_DAEMON
PROG = ptpd

View File

@ -0,0 +1,122 @@
--- /dev/null Tue Mar 4 13:24:31 2008
+++ ptpd.8 Mon Mar 3 16:58:16 2008
@@ -0,0 +1,119 @@
+.\" -*- nroff -*"
+.TH ptpd 8 "September 22, 2007" "version 1rc1" "Precision Time Protocol daemon"
+.SH NAME
+ptpd \- Precision Time Protocol daemon
+.SH SYNOPSIS
+.B ptpd
+
+[-?]
+[-c]
+[-f]
+[-d]
+[-D]
+[-x]
+[-t]
+[-a NUMBER,NUMBER]
+[-w NUMBER]
+[-b NAME]
+[-u ADDRESS]
+[-l NUMBER,NUMBER]
+[-o NUMBER]
+[-e NUMBER]
+[-y NUMBER]
+[-m NUMBER]
+[-g]
+[-p]
+[-s NUMBER]
+[-i NAME]
+[-v NUMBER]
+[-n NAME]
+[-k NUMBER,NUMBER]
+
+.SH DESCRIPTION
+Implements the Precision Time Protocol (PTP) as defined by the IEEE
+1588 standard. PTP was developed to provide very precise time
+coordination of LAN connected computers.
+.PP
+PTPd is a complete implementation of the IEEE 1588 specification for a
+standard (non-boundary) clock. PTPd has been tested with and is known
+to work properly with other IEEE 1588 implementations. The source code
+for PTPd is freely available under a BSD-style license. Thanks to
+contributions from users, PTPd is becoming an increasingly portable,
+interoperable, and stable IEEE 1588 implementation.
+.PP
+For more information, see http://ptpd.sourceforge.net/
+.SH OPTIONS
+.TP
+.B \-?
+display a short help text
+.TP
+.B \-c
+run in command line (non-daemon) mode
+.TP
+.B \-f FILE
+send output to FILE
+.TP
+.B \-d
+display stats
+.TP
+.B \-D
+display stats in .csv format
+.TP
+.B \-x
+do not reset the clock if off by more than one second
+.TP
+.B \-t
+do not adjust the system clock
+.TP
+.B \-a NUMBER,NUMBER
+specify clock servo P and I attenuations
+.TP
+.B \-w NUMBER
+specify one way delay filter stiffness
+.TP
+.B \-b NAME
+bind PTP to network interface NAME
+.TP
+.B \-u ADDRESS
+don't multicast, send messages unicast to ADDRESS
+.TP
+.B \-l NUMBER,NUMBER
+specify inbound, outbound latency in nsec
+.TP
+.B \-o NUMBER
+specify current UTC offset
+.TP
+.B \-e NUMBER
+specify epoch NUMBER
+.TP
+.B \-y NUMBER
+specify sync interval in 2^NUMBER sec
+.TP
+.B \-m NUMBER
+specify max number of foreign master records
+.TP
+.B \-g
+run as slave only
+.TP
+.B \-p
+make this a preferred clock
+.TP
+.B \-s NUMBER
+specify system clock stratum
+.TP
+.B \-i NAME
+specify system clock identifier
+.TP
+.B \-v NUMBER
+specify system clock allen variance
+.TP
+.B \-n NAME
+specify PTP subdomain name (not related to IP or DNS)
+.TP
+.B \-k NUMBER,NUMBER
+send a management message of key, record, then exit
+
+.SH AUTHOR
+Kendall Correll <kendall_c@users.sourceforge.net>. This manual page
+was written by Andrew Straw <strawman@astraw.com> for the Debian
+Project (but may be used by others).

View File

@ -0,0 +1,10 @@
--- ptpd.h Tue Mar 27 18:14:20 2007
+++ ptpd.h Thu Feb 28 14:03:43 2008
@@ -4,6 +4,7 @@
#define PTPD_H
#include "constants.h"
+#include "limits.h"
#include "dep/constants_dep.h"
#include "dep/datatypes_dep.h"
#include "datatypes.h"

25
net/ptpd/files/ptp.in Normal file
View File

@ -0,0 +1,25 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net/ptpd/files/Attic/ptp.in,v 1.1 2008-06-05 01:44:43 wxs Exp $
#
# PROVIDE: ptpd
# REQUIRE: NETWORKING DAEMON
#
# Add the following lines to /etc/rc.conf to enable ptpd
#
# ptpd_enable (bool): Set to "NO" by default
# Set it to "YES" to enable sshd
. %%RC_SUBR%%
name="ptpd"
rcvar=${name}_enable
if [ -n "${ptpd_flags}" ]; then
command="%%PREFIX%%/bin/${name} ${ptpd_flags}"
else
command="%%PREFIX%%/bin/${name}"
fi
load_rc_config $name
run_rc_command "$1"

4
net/ptpd/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
This is a port of ptpd, the Precision Time Protocol, which is an
implementation of IEEE 1588.
WWW: http://ptpd.sourceforge.net/