summaryrefslogtreecommitdiff
path: root/net/ptpd
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2008-06-05 01:44:43 +0000
committerWesley Shields <wxs@FreeBSD.org>2008-06-05 01:44:43 +0000
commit0a66c5e1a5cf654817bcf2f172ff13fd3b762304 (patch)
tree1c05a9a3ac242cd2ea8a562d000d2adf23e44727 /net/ptpd
parentFix a few typos in ports/archivers. (diff)
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)
Notes
Notes: svn path=/head/; revision=214329
Diffstat (limited to 'net/ptpd')
-rw-r--r--net/ptpd/Makefile30
-rw-r--r--net/ptpd/distinfo3
-rw-r--r--net/ptpd/files/patch-src-Makefile11
-rw-r--r--net/ptpd/files/patch-src-ptpd.8122
-rw-r--r--net/ptpd/files/patch-src-ptpd.h10
-rw-r--r--net/ptpd/files/ptp.in25
-rw-r--r--net/ptpd/pkg-descr4
7 files changed, 205 insertions, 0 deletions
diff --git a/net/ptpd/Makefile b/net/ptpd/Makefile
new file mode 100644
index 000000000000..0e62c988a4aa
--- /dev/null
+++ b/net/ptpd/Makefile
@@ -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>
diff --git a/net/ptpd/distinfo b/net/ptpd/distinfo
new file mode 100644
index 000000000000..b8dbc426602b
--- /dev/null
+++ b/net/ptpd/distinfo
@@ -0,0 +1,3 @@
+MD5 (ptpd_1rc1.tar.gz) = 2698af2aa2c14dfd9ff2319f7b827499
+SHA256 (ptpd_1rc1.tar.gz) = 9290b5e28690488a39c612ffd6e5c963c8498676f71866a885ac2021a1d1d007
+SIZE (ptpd_1rc1.tar.gz) = 376819
diff --git a/net/ptpd/files/patch-src-Makefile b/net/ptpd/files/patch-src-Makefile
new file mode 100644
index 000000000000..89f079b30b10
--- /dev/null
+++ b/net/ptpd/files/patch-src-Makefile
@@ -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
diff --git a/net/ptpd/files/patch-src-ptpd.8 b/net/ptpd/files/patch-src-ptpd.8
new file mode 100644
index 000000000000..9e4d225f6f46
--- /dev/null
+++ b/net/ptpd/files/patch-src-ptpd.8
@@ -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).
diff --git a/net/ptpd/files/patch-src-ptpd.h b/net/ptpd/files/patch-src-ptpd.h
new file mode 100644
index 000000000000..49e874fa67a7
--- /dev/null
+++ b/net/ptpd/files/patch-src-ptpd.h
@@ -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"
diff --git a/net/ptpd/files/ptp.in b/net/ptpd/files/ptp.in
new file mode 100644
index 000000000000..42ab5b381b6c
--- /dev/null
+++ b/net/ptpd/files/ptp.in
@@ -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"
diff --git a/net/ptpd/pkg-descr b/net/ptpd/pkg-descr
new file mode 100644
index 000000000000..b30e9eb3baa6
--- /dev/null
+++ b/net/ptpd/pkg-descr
@@ -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/