install unchanged default.cfg as ptp4l.conf

This commit is contained in:
Miroslav Lichvar 2012-11-09 15:04:39 +01:00
parent 0ce3aa887e
commit c4efab80b6

View File

@ -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