Name: libnet Version: 1.1.6 Release: 2mamba Summary: High-level API to construct and inject network packets Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://sourceforge.net/projects/libnet-dev Source: http://downloads.sourceforge.net/project/libnet-dev/libnet-%{version}.tar.gz Patch0: %{name}-1.1.4-cross_configure_endianess.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END %description Libnet is a high-level API (toolkit) allowing the application programmer to construct and inject network packets. It provides a portable and simplified interface for low-level network packet shaping, handling and injection. Libnet hides much of the tedium of packet creation from the application programmer such as multiplexing, buffer management, arcane packet header information, byte-ordering, OS-dependent issues, and much more. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. Using libnet, quick and simple packet assembly applications can be whipped up with little effort. With a bit more time, more complex programs can be written. %package devel Summary: High-level API to construct and inject network packets Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Libnet is a high-level API (toolkit) allowing the application programmer to construct and inject network packets. It provides a portable and simplified interface for low-level network packet shaping, handling and injection. Libnet hides much of the tedium of packet creation from the application programmer such as multiplexing, buffer management, arcane packet header information, byte-ordering, OS-dependent issues, and much more. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. Using libnet, quick and simple packet assembly applications can be whipped up with little effort. With a bit more time, more complex programs can be written. This package contains the static library and headers for development. %debug_package %prep %setup -q #%patch0 -p1 %build %configure \ %if "%{_host}" != "%{_build}" ac_libnet_have_pf_packet=yes \ ac_cv_lbl_unaligned_fail=no \ ac_cv_libnet_endianess=lil %endif %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -d -m755 %{buildroot}%{_mandir}/man3/ install -m644 doc/man/man3/libnet-functions.h.3 \ %{buildroot}%{_mandir}/man3/libnet.3 install -D -m755 libnet-config %{buildroot}%{_bindir}/libnet-config %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libnet.so.* %doc doc/COPYING %files devel %defattr(-,root,root) %{_bindir}/libnet-config %{_includedir}/libnet.h %{_includedir}/libnet/libnet-asn1.h %{_includedir}/libnet/libnet-functions.h %{_includedir}/libnet/libnet-headers.h %{_includedir}/libnet/libnet-macros.h %{_includedir}/libnet/libnet-structures.h %{_includedir}/libnet/libnet-types.h %{_libdir}/libnet.so %{_libdir}/libnet.la %{_libdir}/libnet.a %{_mandir}/man3/libnet.3* %{_mandir}/man3/libnet*.h.3* %doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION %doc doc/PACKET_BUILDING doc/PORTED doc/RAWSOCKET_NON_SEQUITUR doc/TODO %doc doc/html/*.html doc/html/doxygen.png %changelog * Sat May 01 2021 Silvan Calarco 1.1.6-2mamba - rebuilt in /usr * Sat Dec 01 2012 Automatic Build System 1.1.6-1mamba - update to 1.1.6 * Tue May 25 2010 Silvan Calarco 1.1.4-1mamba - update to 1.1.4 - switched to maintained libnet-dev project from sourceforge - added libnet binary package with shared library * Fri Jun 13 2008 Silvan Calarco 1.1.2.1-2mamba - source renamed from libnet-devel to libnet * Fri Jul 08 2005 Silvan Calarco 1.1.2.1-1qilnx - update to version 1.1.2.1 by autospec * Mon Feb 02 2004 Davide Madrisan 1.1.1-1qilnx - first build