[packages/iputils] - build and package ninfod (maybe it should be in subpackage with init script)

qboosh qboosh at pld-linux.org
Thu Nov 15 21:06:04 CET 2012


commit 0d65c7aa3cb3ab150e18b70153fd2c5f4d906789
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 15 21:06:00 2012 +0100

    - build and package ninfod (maybe it should be in subpackage with init script)

 iputils.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/iputils.spec b/iputils.spec
index 744d4b5..f65a146 100644
--- a/iputils.spec
+++ b/iputils.spec
@@ -103,6 +103,11 @@ pakiety ARP z użyciem podanego adresu źródłowego.
 	CC="%{__cc}" \
 	CCOPT="%{rpmcflags} %{rpmcppflags} -D_GNU_SOURCE -DHAVE_SIN6_SCOPEID=1"
 
+cd ninfod
+%configure
+%{__make}
+cd ..
+
 %if %{with doc}
 %{__make} html
 %{__make} man
@@ -119,6 +124,10 @@ install arping $RPM_BUILD_ROOT/sbin
 
 install ping ping6 $RPM_BUILD_ROOT/bin
 
+install ninfod/ninfod $RPM_BUILD_ROOT%{_sbindir}
+# TODO: PLDify, subpackage?
+#install ninfod/ninfod.sh $RPM_BUILD_ROOT/etc/rc.d/init.d
+
 %if %{with doc}
 install doc/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
 echo ".so tracepath.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tracepath6.8
@@ -139,6 +148,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc RELNOTES %{?with_doc:doc/*.html}
 %attr(4754,root,adm) %{_sbindir}/clockdiff
+%attr(755,root,root) %{_sbindir}/ninfod
 %attr(755,root,root) %{_sbindir}/rarpd
 %attr(755,root,root) %{_sbindir}/rdisc
 %attr(755,root,root) %{_sbindir}/tracepath
@@ -146,6 +156,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(4754,root,adm) %{_sbindir}/traceroute6
 %if %{with doc}
 %{_mandir}/man8/clockdiff.8*
+%{_mandir}/man8/ninfod.8*
 %{_mandir}/man8/rarpd.8*
 %{_mandir}/man8/rdisc.8*
 %{_mandir}/man8/tracepath.8*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iputils.git/commitdiff/0d65c7aa3cb3ab150e18b70153fd2c5f4d906789



More information about the pld-cvs-commit mailing list