From c4efab80b65b4412004ac0d27f341b0a41be40e1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 9 Nov 2012 15:04:39 +0100 Subject: [PATCH] install unchanged default.cfg as ptp4l.conf --- linuxptp.spec | 7 ++----- 1 file 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