2007-11-06 04:43:27 +01:00
|
|
|
#
|
2011-10-28 19:42:28 +02:00
|
|
|
# spec file for package ptpd
|
2007-11-06 04:43:27 +01:00
|
|
|
#
|
2011-10-28 19:42:28 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-11-06 04:43:27 +01:00
|
|
|
#
|
2008-11-17 17:52:07 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-11-06 04:43:27 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-11-17 17:52:07 +01:00
|
|
|
|
2007-11-06 04:43:27 +01:00
|
|
|
Name: ptpd
|
|
|
|
Summary: Implements the Precision Time protocol as defined by IEEE 1588 standard
|
2011-10-28 19:42:28 +02:00
|
|
|
Version: 1.1.0
|
|
|
|
Release: 0
|
2011-12-06 18:53:47 +01:00
|
|
|
License: BSD-3-Clause
|
2007-11-06 04:43:27 +01:00
|
|
|
Group: System/Daemons
|
2011-10-28 19:42:28 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2007-11-09 00:40:01 +01:00
|
|
|
Source1: conf.ptpd.init
|
|
|
|
Source2: conf.sysconfig.ptpd
|
2007-11-06 04:43:27 +01:00
|
|
|
Url: http://ptpd.sourceforge.net/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The PTP daemon (PTPd) 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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
PTPd can run on most 32-bit little- or big-endian processors. It does
|
|
|
|
not require an FPU, so it is great for embedded processors. PTPd
|
|
|
|
currently runs on Linux, uClinux, FreeBSD, and NetBSD. It should also
|
|
|
|
be easy to port to other platforms.
|
|
|
|
|
|
|
|
PTPd is free. Everyone is invited to use and contribute to PTPd.
|
|
|
|
|
|
|
|
%prep
|
2008-11-17 17:52:07 +01:00
|
|
|
%setup -q
|
2007-11-06 04:43:27 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" make
|
|
|
|
|
|
|
|
%install
|
2007-11-09 00:40:01 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}
|
|
|
|
install -m 755 src/ptpd $RPM_BUILD_ROOT%{_sbindir}/ptpd
|
|
|
|
#
|
|
|
|
# boot scripts
|
|
|
|
#
|
|
|
|
install -m 755 %{S:1} $RPM_BUILD_ROOT%{_initrddir}/ptpd
|
|
|
|
ln -s ../..%{_initrddir}/ptpd $RPM_BUILD_ROOT%{_sbindir}/rcptpd
|
|
|
|
#
|
|
|
|
# configuration
|
|
|
|
#
|
|
|
|
install -m 644 %{S:2} ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.ptpd
|
|
|
|
#
|
|
|
|
# documentation
|
|
|
|
#
|
2011-10-28 19:42:28 +02:00
|
|
|
cp -r README COPYRIGHT doc RELEASE_NOTES tools ${RPM_BUILD_ROOT}/%{_docdir}
|
|
|
|
find ${RPM_BUILD_ROOT}/%{_docdir} -type f -print0 | xargs -0 chmod 644
|
2007-11-06 04:43:27 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_initrddir}/*
|
|
|
|
/var/adm/fillup-templates/*
|
2011-10-28 19:42:28 +02:00
|
|
|
%{_docdir}
|
2007-11-06 04:43:27 +01:00
|
|
|
|
2007-11-09 00:40:01 +01:00
|
|
|
%preun
|
|
|
|
%{stop_on_removal} ptpd
|
|
|
|
|
2007-11-06 04:43:27 +01:00
|
|
|
%post
|
|
|
|
%{fillup_only -n ptpd}
|
2007-11-09 00:40:01 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update ptpd
|
|
|
|
%{insserv_cleanup}
|
2008-11-17 17:52:07 +01:00
|
|
|
|
2007-11-06 04:43:27 +01:00
|
|
|
%changelog
|