- Generate default config during build
OBS-URL: https://build.opensuse.org/package/show/network:time/ptpd?expand=0&rev=17
This commit is contained in:
parent
38a133ac1f
commit
d315a54d01
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 8 13:30:11 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Generate default config during build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 25 08:08:17 UTC 2018 - mpluskal@suse.com
|
Thu Jan 25 08:08:17 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
16
ptpd.spec
16
ptpd.spec
@ -29,7 +29,6 @@ Group: System/Daemons
|
|||||||
URL: https://github.com/ptpd/ptpd
|
URL: https://github.com/ptpd/ptpd
|
||||||
Source0: https://github.com/ptpd/ptpd/archive/ptpd-%{version}.tar.gz
|
Source0: https://github.com/ptpd/ptpd/archive/ptpd-%{version}.tar.gz
|
||||||
Source1: ptpd2.service
|
Source1: ptpd2.service
|
||||||
Source2: ptpd2.conf
|
|
||||||
Source3: conf.sysconfig.ptpd
|
Source3: conf.sysconfig.ptpd
|
||||||
# PATCH-FIX-UPSTREAM ptpd2-net-snmp_U64.patch gh#ptpd/ptpd#25
|
# PATCH-FIX-UPSTREAM ptpd2-net-snmp_U64.patch gh#ptpd/ptpd#25
|
||||||
Patch0: ptpd2-net-snmp_U64.patch
|
Patch0: ptpd2-net-snmp_U64.patch
|
||||||
@ -73,10 +72,14 @@ autoreconf -fiv
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
install -D -p -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}2.service
|
install -Dpm 0644 %{SOURCE1} \
|
||||||
|
%{buildroot}/%{_unitdir}/%{name}2.service
|
||||||
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}2
|
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}2
|
||||||
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}2.conf
|
# Generate default config
|
||||||
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.ptpd2
|
install -d %{buildroot}%{_sysconfdir}
|
||||||
|
./src/ptpd2 --default-config > %{buildroot}%{_sysconfdir}/%{name}2.conf
|
||||||
|
install -Dpm 0644 %{SOURCE3} \
|
||||||
|
%{buildroot}%{_fillupdir}/sysconfig.ptpd2
|
||||||
# have to create the below, else ptpd will not log drift
|
# have to create the below, else ptpd will not log drift
|
||||||
install -d %{buildroot}%{_localstatedir}/log
|
install -d %{buildroot}%{_localstatedir}/log
|
||||||
touch %{buildroot}%{_localstatedir}/log/ptpd2_kernelclock.drift
|
touch %{buildroot}%{_localstatedir}/log/ptpd2_kernelclock.drift
|
||||||
@ -95,8 +98,9 @@ touch %{buildroot}%{_localstatedir}/log/ptpd2_kernelclock.drift
|
|||||||
%service_del_postun %{name}2.service
|
%service_del_postun %{name}2.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYRIGHT ChangeLog README
|
%license COPYRIGHT
|
||||||
%config %{_sysconfdir}/%{name}2.conf
|
%doc ChangeLog README
|
||||||
|
%config(noreplace) %{_sysconfdir}/%{name}2.conf
|
||||||
%{_sbindir}/ptpd2
|
%{_sbindir}/ptpd2
|
||||||
%{_sbindir}/rcptpd2
|
%{_sbindir}/rcptpd2
|
||||||
%{_mandir}/man5/ptpd2.conf.5%{ext_man}
|
%{_mandir}/man5/ptpd2.conf.5%{ext_man}
|
||||||
|
Loading…
Reference in New Issue
Block a user