diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/iputils.spec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/packaging/iputils.spec b/packaging/iputils.spec new file mode 100644 index 0000000..82bd9b7 --- /dev/null +++ b/packaging/iputils.spec @@ -0,0 +1,57 @@ +Name: iputils +#BuildRequires: docbook_3 +#BuildRequires: iso_ent +BuildRequires: libopenssl-devel +#BuildRequires: opensp +#BuildRequires: perl-SGMLS +BuildRequires: sysfsutils-devel +BuildRequires: libcap-devel +Summary: IPv4 and IPv6 Networking Utilities +License: BSD-3-Clause ; GPL-2.0+ +Group: Productivity/Networking/Other +Version: s20101006 +Release: 0 +Url: http://www.skbuff.net/iputils +Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2 + +%description +This package contains some small network tools for IPv4 and IPv6 like +rdisc, ping6, traceroute6, tracepath, and tracepath6. + +%prep +%setup -q +mkdir linux +touch linux/autoconf.h + +%build +make %{?_smp_mflags} KERNEL_INCLUDE=$PWD \ + CCOPT='%optflags -fno-strict-aliasing -fpie -D_GNU_SOURCE' \ + LDLIBS='-pie -lcap -lresolv' \ + CAPABILITIES=1 + +%install +mkdir -p $RPM_BUILD_ROOT/%_sbindir +mkdir -p $RPM_BUILD_ROOT/%_bindir +install arping $RPM_BUILD_ROOT/%{_sbindir} +install ifenslave $RPM_BUILD_ROOT/%{_sbindir} +install clockdiff $RPM_BUILD_ROOT/%{_sbindir} +install rdisc $RPM_BUILD_ROOT/%{_sbindir}/in.rdisc +install tracepath $RPM_BUILD_ROOT/%{_sbindir} +install tracepath6 $RPM_BUILD_ROOT/%{_sbindir} +install ping $RPM_BUILD_ROOT/%{_bindir} +install ping6 $RPM_BUILD_ROOT/%{_bindir} +install ipg $RPM_BUILD_ROOT/%{_bindir} + +%files +%defattr(-,root,root) +%{_sbindir}/arping +%{_sbindir}/ifenslave +%{_sbindir}/clockdiff +%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping +%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping6 +%{_bindir}/ipg +%{_sbindir}/tracepath +%{_sbindir}/tracepath6 +%{_sbindir}/in.rdisc + +%changelog |