diff --git a/_service b/_service
new file mode 100644
index 0000000..175ba18
--- /dev/null
+++ b/_service
@@ -0,0 +1,17 @@
+
+
+ git://git.code.sf.net/p/linuxptp/code
+ git
+ v3.1
+ enable
+ linuxptp
+ @PARENT_TAG@+git@TAG_OFFSET@.g%h
+ v([^+]*\+git[1-9].*)|v([^+]*)\+git0.*
+ \1\2
+
+
+ *.tar
+ xz
+
+
+
diff --git a/_servicedata b/_servicedata
new file mode 100644
index 0000000..361ce1d
--- /dev/null
+++ b/_servicedata
@@ -0,0 +1,4 @@
+
+
+ git://git.code.sf.net/p/linuxptp/code
+ 38ad3264f8726691c3fd0c97d0b34c8eee80c11b
\ No newline at end of file
diff --git a/linuxptp-2.0.tgz b/linuxptp-2.0.tgz
deleted file mode 100644
index 4420037..0000000
--- a/linuxptp-2.0.tgz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0a24d9401e87d4af023d201e234d91127d82c350daad93432106284aa9459c7d
-size 184942
diff --git a/linuxptp-3.1.tar.xz b/linuxptp-3.1.tar.xz
new file mode 100644
index 0000000..da47a69
--- /dev/null
+++ b/linuxptp-3.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c8fec4132eee3add41ee4904096344a4643c3de0fa7579cf4d6e951fd4cba7d
+size 160220
diff --git a/linuxptp.changes b/linuxptp.changes
index acda9e9..781c188 100644
--- a/linuxptp.changes
+++ b/linuxptp.changes
@@ -1,3 +1,66 @@
+-------------------------------------------------------------------
+Tue Nov 10 21:35:12 UTC 2020 - jbohac@suse.com
+
+- Update to version 3.1:
+ * ts2phc: nmea: Drop time of day readings older than five seconds.
+ * ts2phc: nmea: Update the leap seconds table on demand.
+ * ts2phc: nmea: Add a configuration option for the current leap seconds file.
+ * ts2phc: nmea: Add error messages for leap second lookup failures.
+ * ts2phc: nmea: Correct UTC to TAI conversion.
+ * posix_clock_open: derive PHC index from device name if possible
+ * phc_ctl: display all capability information
+ * ts2phc: Ignore pulses with invalid time stamps.
+ * ts2phc: Fix memory leak.
+ * ts2phc: Use proper close method on the error path.
+ * port: Support slave event monitoring of delay timing data.
+ * monitor: Add support for slave delay timing data TLV.
+ * pmc: Show slave receive timing data TLVs attached to signaling messages.
+ * port: Support slave event monitoring of Sync timing data.
+ * clock: Create a slave event monitor.
+ * Introduce a module for slave event monitoring.
+ * Reject path trace TLVs with excessive elements.
+ * Let the free running port state reflect the synchronization uncertain flag.
+ * pmc: Support getting and setting the local synchronization uncertain flag.
+ * Implement the synchronization uncertain flag.
+ * Add support for write phase mode.
+ * Decouple servo state from automotive profile.
+ * ts2phc: Support using a GPS radio as the master clock.
+ * Introduce a leap second table.
+ * ts2phc: Support using a PHC as the master clock.
+ * Introduce the ts2phc program.
+ * pmc: Allow multiple local subscribers.
+ * pmc: Subscribe to port state push notification events when requested.
+ * clock: reset master/local rr when best clock id changes
+ * unicast: Enable sharing master tables between ports.
+ * Accept external PHC devices from the command line.
+ * phc2sys: Fix frequency estimation when synchronizing a PHC to the system clock.
+ * Correct the signature of the legacy system offset measurement method.
+ * ptp4l: Add configuration option for socket priority
+ * sk: Recognize HWTSTAMP_FILTER_SOME
+ * Improve G.8275.[12] example configs.
+ * rtnl: add team activebackup support
+ * Ignore signaling messages on target port mismatch.
+ * Avoid fault when receiving zero length packets
+ * phc2sys: Fix crash when trying to synchronize unadjustable clock.
+ * Added support for opening POSIX clock devices
+ * Allow ignoring source port identity in end to end mode.
+ * port: correction of port name used port_open
+ * Add example configuration for Automotive Profile.
+ * Add ignore_source_id config option.
+ * Add inhibit_announce config option.
+ * Add BMCA config option.
+ * port: Add configurable option to set asCapable.
+ * timemaster: Allow ptp4l-specific sections in [ptp4l.conf].
+ * unicast: Process timeouts equal to current time.
+ * snmp4lptp: added snmp4lptp.8
+ * Add possibility to set clockIdentity
+ * Introduce the maxStepsRemoved attribute
+ * config: Add hardware time stamp filter setting mode
+ * snmp4lptp: Added function for data collection from ptp4l program.
+ * snmp4lptp: Added communication to ptp4l via the UDS port.
+ * snmp4lptp: Add snmp sub agent for linuxptp
+- re-introduce the _service file
+
-------------------------------------------------------------------
Wed Jul 24 12:04:35 UTC 2019 - matthias.gerstner@suse.com
@@ -29,6 +92,18 @@ Mon Nov 26 12:43:06 UTC 2018 - Martin Pluskal
* Support for bonded interfaces
- No longer use _service
+-------------------------------------------------------------------
+Tue Apr 3 12:27:38 UTC 2018 - jbohac@suse.com
+
+Update to version 1.9+git1.gd14f11f:
+ * Expand and rationalize time stamping options.
+ * Introduce peer to peer one step.
+ * pmc: add long options and configuration file
+ * port: Implement the NetSync Monitor protocol.
+ * Introduce an option to ignore the transport specific field.
+ * clock: add option to specify initial path delay.
+ * sk: turn warnings about unexpected RX filter into debug messages.
+
-------------------------------------------------------------------
Thu Feb 8 12:08:37 UTC 2018 - jbohac@suse.com
diff --git a/linuxptp.spec b/linuxptp.spec
index 1ce9bcd..e2808af 100644
--- a/linuxptp.spec
+++ b/linuxptp.spec
@@ -1,7 +1,7 @@
#
# spec file for package linuxptp
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -21,13 +21,13 @@
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: linuxptp
-Version: 2.0
+Version: 3.1
Release: 0
Summary: Precision Time Protocol v2 daemon
License: GPL-2.0-or-later
Group: Productivity/Networking/Other
URL: http://linuxptp.sourceforge.net/
-Source0: http://sourceforge.net/projects/linuxptp/files/v%{version}/linuxptp-%{version}.tgz
+Source0: %{name}-%{version}.tar.xz
Source1: ptp4l.service
Source2: sysconfig.ptp4l
Source4: linuxptp-howto.txt
@@ -94,12 +94,15 @@ install -Dpm 644 %{SOURCE6} %{buildroot}%{_fillupdir}/sysconfig.phc2sys
%{_sbindir}/ptp4l
%{_sbindir}/nsm
%{_sbindir}/timemaster
+%{_sbindir}/ts2phc
%{_mandir}/man8/hwstamp_ctl.8%{?ext_man}
+%{_mandir}/man8/nsm.8%{?ext_man}
%{_mandir}/man8/phc2sys.8%{?ext_man}
%{_mandir}/man8/phc_ctl.8%{?ext_man}
%{_mandir}/man8/pmc.8%{?ext_man}
%{_mandir}/man8/ptp4l.8%{?ext_man}
%{_mandir}/man8/timemaster.8%{?ext_man}
+%{_mandir}/man8/ts2phc.8%{?ext_man}
%{_fillupdir}/sysconfig.ptp4l
%{_fillupdir}/sysconfig.phc2sys