install unchanged default.cfg as ptp4l.conf
This commit is contained in:
parent
0ce3aa887e
commit
c4efab80b6
@ -31,9 +31,6 @@ Supporting legacy APIs and other platforms is not a goal.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
|
|
||||||
# Comment everything out.
|
|
||||||
sed 's/^[[:alnum:]]/#\0/' < default.cfg > ptp4l.conf
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} \
|
make %{?_smp_mflags} \
|
||||||
INC="" \
|
INC="" \
|
||||||
@ -43,8 +40,8 @@ make %{?_smp_mflags} \
|
|||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir}}
|
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir}}
|
||||||
install -m 644 -p ptp4l.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
install -m 644 -p default.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ptp4l.conf
|
||||||
install -m 644 -p -t $RPM_BUILD_ROOT%{_unitdir} %{SOURCE1} %{SOURCE2}
|
install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
|
||||||
|
|
||||||
echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
|
echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
|
||||||
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
|
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
|
||||||
|
Loading…
Reference in New Issue
Block a user