# # spec file for package ptpd (Version 1) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: ptpd Summary: Implements the Precision Time protocol as defined by IEEE 1588 standard Version: 1 Release: 2 License: BSD 3-Clause Group: System/Daemons Source0: %{name}_%{version}rc1.tar.bz2 Patch0: system_v_init.patch Patch1: append_to_cflags.patch 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. Authors: -------- Kendall Correll %prep %setup -q -n ptpd %patch0 -p1 %patch1 %build cd src CFLAGS="$RPM_OPT_FLAGS" make %install install -m 755 -D src/ptpd ${RPM_BUILD_ROOT}/%{_sbindir}/ptpd install -d ${RPM_BUILD_ROOT}/%{_initrddir} install -m 755 etc/init.d/ptpd ${RPM_BUILD_ROOT}/%{_initrddir}/ptpd install -d ${RPM_BUILD_ROOT}/var/adm/fillup-templates install -m 644 etc/sysconfig/ptpd ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.ptpd install -D README ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}/README cp -r COPYRIGHT doc RELEASE_NOTES tools ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}/. %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-, root, root) %{_sbindir}/* %{_initrddir}/* /var/adm/fillup-templates/* %{_defaultdocdir}/%{name} %post %{fillup_only -n ptpd} %changelog * Fri Nov 02 2007 - dbahi@suse.de - patch makefile to allow env CFLAGS - adjusted sysconfig to use %%fill_only * Fri Nov 02 2007 - dbahi@suse.de - added system v init script and sysconfig file suitable for use with yast /etc/sysconfig editor * Tue Oct 23 2007 - dbahi@suse.de - initial package creation