[linuxptp/f18] install unchanged default.cfg as ptp4l.conf
Miroslav Lichvar
mlichvar at fedoraproject.org
Fri Nov 9 14:30:12 UTC 2012
commit c4efab80b65b4412004ac0d27f341b0a41be40e1
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Fri Nov 9 15:04:39 2012 +0100
install unchanged default.cfg as ptp4l.conf
linuxptp.spec | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/linuxptp.spec b/linuxptp.spec
index 40a2926..3acf3fa 100644
--- a/linuxptp.spec
+++ b/linuxptp.spec
@@ -31,9 +31,6 @@ Supporting legacy APIs and other platforms is not a goal.
%prep
%setup -q -n %{name}
-# Comment everything out.
-sed 's/^[[:alnum:]]/#\0/' < default.cfg > ptp4l.conf
-
%build
make %{?_smp_mflags} \
INC="" \
@@ -43,8 +40,8 @@ make %{?_smp_mflags} \
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir}}
-install -m 644 -p ptp4l.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install -m 644 -p -t $RPM_BUILD_ROOT%{_unitdir} %{SOURCE1} %{SOURCE2}
+install -m 644 -p default.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ptp4l.conf
+install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
More information about the scm-commits
mailing list