[linuxptp] add man page link for ptp4l.conf

Miroslav Lichvar mlichvar at fedoraproject.org
Fri Jul 19 11:33:20 UTC 2013


commit ec49018d24634ef3aa050dacd0442b82905a635d
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Fri Jul 19 11:53:47 2013 +0200

    add man page link for ptp4l.conf

 linuxptp.spec |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/linuxptp.spec b/linuxptp.spec
index 8e97d73..addd96c 100644
--- a/linuxptp.spec
+++ b/linuxptp.spec
@@ -35,7 +35,7 @@ make %{?_smp_mflags} \
 
 %install
 %makeinstall
-mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir}}
+mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir},%{_mandir}/man5}
 install -m 644 -p default.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ptp4l.conf
 install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
 
@@ -43,6 +43,8 @@ echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
 	$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
 echo 'OPTIONS="-w -i eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys
 
+echo '.so man8/ptp4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/ptp4l.conf.5
+
 %post
 %if 0%{?systemd_post:1}
 %systemd_post ptp4l.service phc2sys.service
@@ -84,6 +86,7 @@ fi
 %{_sbindir}/phc2sys
 %{_sbindir}/pmc
 %{_sbindir}/ptp4l
+%{_mandir}/man5/*.5*
 %{_mandir}/man8/*.8*
 
 %changelog


More information about the scm-commits mailing list