debian/0000755000000000000000000000000012144765370007177 5ustar debian/ptpd.install0000644000000000000000000000002211677653331011533 0ustar src/ptpd usr/sbin debian/control0000644000000000000000000000171312127244222010571 0ustar Source: ptpd Section: net Priority: optional Maintainer: Roland Stigge Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9) Homepage: http://sourceforge.net/projects/ptpd Package: ptpd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base Description: Precision Time Protocol daemon Implements the Precision Time Protocol (PTP) as defined by the IEEE 1588-2008 standard. PTP was developed to provide very precise time coordination of LAN connected computers. . 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. . For more information, see http://ptpd.sourceforge.net/ debian/changelog0000644000000000000000000000243612144764540011054 0ustar ptpd (2.2.2-debian1-2) unstable; urgency=low * Reupload to unstable -- Roland Stigge Wed, 15 May 2013 22:00:17 +0200 ptpd (2.2.2-debian1-1) experimental; urgency=low * New upstream release (Closes: #704655) * Added fortify build options from dpkg-buildflags * debian/control: - Standards-Version: 3.9.4 - Added Homepage - Build-Depends: debhelper (>= 9) * debian/compat: 9 -- Roland Stigge Thu, 04 Apr 2013 10:25:40 +0200 ptpd (2.1.0-debian1-2) unstable; urgency=low * Adding patch to support ld --as-needed (Closes: #607583) * debian/rules: new dh style rules * debian/control: Standards-Version: 3.9.2 -- Roland Stigge Sat, 31 Dec 2011 19:13:26 +0100 ptpd (2.1.0-debian1-1) unstable; urgency=low * New upstream release (Closes: #604862) -- Roland Stigge Sun, 12 Dec 2010 12:11:57 +0100 ptpd (2~rc1-debian1-1) unstable; urgency=low * New upstream release * New maintainer, as discussed with Andrew Straw * debian/control: - Standards-Version: 3.9.1 -- Roland Stigge Sun, 22 Aug 2010 18:39:02 +0200 ptpd (1.0.0-1) unstable; urgency=low * Initial packaging. Closes: #443533. -- Andrew Straw Sun, 17 Jan 2010 15:17:27 -0800 debian/watch0000644000000000000000000000014211434253122010211 0ustar version=3 opts=dversionmangle=s/-debian\d+$// http://sf.net/ptpd/ptpv(.+)\.tar\.gz debian uupdate debian/ptpd.init0000755000000000000000000000775611434261657011055 0ustar #!/bin/sh # # /etc/init.d script for ptpd ### BEGIN INIT INFO # Provides: ptpd # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start and stop ptpd # Description: ptpd is the Precision Time Protocol daemon (IEEE1588-2008) ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Precision Time Protocol daemon" NAME=ptpd DAEMON=/usr/sbin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # Only active on START_DAEMON [ "$START_DAEMON" = "yes" ] || exit 0 # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $PTPD_OPTS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/rules0000755000000000000000000000057512127243771010263 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_clean: make -C src clean override_dh_auto_build: dh_auto_build -- -C src \ CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \ CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \ LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" override_dh_auto_install: cp src/ptpd2.8 debian/ptpd/usr/share/man/man8/ptpd.8 dh_auto_install debian/patches/0000755000000000000000000000000012127240715010616 5ustar debian/patches/series0000644000000000000000000000005411677661407012050 0ustar adjust-daemon-name.patch ld-as-needed.patch debian/patches/ld-as-needed.patch0000644000000000000000000000124312127240362014057 0ustar Description: Fix ld --as-needed This patch fixes the order of gcc arguments to fix ld --as-needed Author: Roland Stigge Bug-Debian: http://bugs.debian.org/607583 --- ptpd-2.2.2-debian1.orig/src/Makefile +++ ptpd-2.2.2-debian1/src/Makefile @@ -43,7 +43,7 @@ CFLAGS += -DDBG_SIGUSR2_CHANGE_DEBUG CFLAGS += -DPTP_EXPERIMENTAL -LDFLAGS = -lm -lrt +LIBS+= -lm -lrt STATICLIBFLAGS = rcs SHAREDLIBFLAGS = -shared -Wl,-soname @@ -71,7 +71,7 @@ TAGFILES = GPATH GRTAGS GSYMS GTAGS csco $(PROG): $(OBJS) - $(CC) -o $@ $(OBJS) $(LDFLAGS) + $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) $(STATICLIB): $(OBJS) $(AR) $(STATICLIBFLAGS) $(STATICLIB) $(OBJS) debian/patches/adjust-daemon-name.patch0000644000000000000000000000216112127235232015306 0ustar Description: Executable name ptpd This patch adjusts the binary executable to be called ptpd instead of ptpv2d. Similarly, the man page name is adjusted. Author: Roland Stigge --- ptpd-2.2.2-debian1.orig/src/ptpd2.8 +++ ptpd-2.2.2-debian1/src/ptpd2.8 @@ -1,9 +1,9 @@ .\" -*- nroff -*" -.TH ptpd2 8 "January, 2012" "version 2.2.0" "Precision Time Protocol daemon" +.TH ptpd 8 "January, 2012" "version 2.2.0" "Precision Time Protocol daemon" .SH NAME -ptpd2 \- Precision Time Protocol daemon (1588-2008) +ptpd \- Precision Time Protocol daemon (1588-2008) .SH SYNOPSIS -.B ptpd2 +.B ptpd [?] [-B] [-c] @@ -179,7 +179,7 @@ run as master without NTP set an initial delay request value .TP .B \-L -enable running multiple ptpd2 daemons +enable running multiple ptpd daemons .TP .B \-j turn off IGMP refresh messages --- ptpd-2.2.2-debian1.orig/src/Makefile +++ ptpd-2.2.2-debian1/src/Makefile @@ -47,7 +47,7 @@ LDFLAGS = -lm -lrt STATICLIBFLAGS = rcs SHAREDLIBFLAGS = -shared -Wl,-soname -PROG = ptpd2 +PROG = ptpd STATICLIB = libptpd2.a SHAREDLIB = libptpd2.so SHAREDLIBVER = $(SHAREDLIB).$(VERSION) debian/dirs0000644000000000000000000000003411677655132010064 0ustar usr/sbin usr/share/man/man8 debian/README.Debian0000644000000000000000000000030211434251465011227 0ustar ptpd for Debian --------------- * The package doesn't include the documentation doc/* because no source code was available. Roland Stigge , Sun, 22 Aug 2010 18:40:46 +0200 debian/source/0000755000000000000000000000000011434252104010462 5ustar debian/source/format0000644000000000000000000000001411434252104011670 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000226711434253365011136 0ustar This package was debianized by Andrew Straw on 22 Sep 2007. The current Debian maintainer is Roland Stigge It was downloaded from: http://sourceforge.net/projects/ptpd Upstream Author: Kendall Correll Copyright: 2005-2010 Kendall Correll, Aidan Williams License: Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. The Debian packaging is (C) 2007, Andrew Straw (C) 2010, Roland Stigge and is licensed under the license above. debian/compat0000644000000000000000000000000212127244163010366 0ustar 9 debian/ptpd.default0000644000000000000000000000021311434255525011505 0ustar # /etc/default/ptpd # Set to "yes" to actually start ptpd automatically START_DAEMON=no # Add command line options for ptpd PTPD_OPTS="" debian/docs0000644000000000000000000000001611677651327010055 0ustar RELEASE_NOTES