libnet/libnet-1.0.spec

Name: libnet
Summary: Routines to help with network packet construction and handling
Version: 1.0.2
Release: 2
License: GPL
Group: Development/Libraries
URL: http://www.packetfactory.net/projects/libnet/
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 (Traceroute and ping were easily rewritten using libnet and libpcap).

CentOS 7 x86_64

The build could not start because the following file is missing: libnet-1.0.2a.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: libnet-1.0.2a.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define real_name libnet
%define real_version 1.0.2a

Summary: Routines to help with network packet construction and handling
Name: libnet
Version: 1.0.2
Release: 2%{?dist}
License: GPL
Group: Development/Libraries
URL: http://www.packetfactory.net/projects/libnet/

Source: http://www.packetfactory.net/libnet/dist/libnet-%{real_version}.tar.gz
Patch0: libnet-1.0.2a-gcc33.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%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
(Traceroute and ping were easily rewritten using libnet and libpcap).

%prep
%setup -n Libnet-%{real_version}
%patch0 -b .gcc33

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall \
	BIN_PREFIX="%{buildroot}%{_bindir}" \
	INC_PREFIX="%{buildroot}%{_includedir}/" \
	LIB_PREFIX="%{buildroot}%{_libdir}" \
	MAN_PREFIX="%{buildroot}%{_mandir}/man3"
%{__install} -Dp -m0755 libnet-config %{buildroot}%{_bindir}/libnet-config

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc doc/*
%doc %{_mandir}/man3/*.3*
%{_bindir}/libnet-config
%{_libdir}/libnet.a
%{_includedir}/libnet.h
%{_includedir}/libnet/
#%{_libdir}/libpwrite

%changelog
* Fri Nov 21 2003 Dag Wieers <dag@wieers.com> - 1.0.2-2
- Patch to build with gcc-3.3.

* Thu Jun 05 2003 Dag Wieers <dag@wieers.com> - 1.0.2-1
- Updated to release 1.0.2. (using DAR)

* Mon Dec 16 2002 Dag Wieers <dag@wieers.com> - 1.0.2-0
- Updated to 1.0.2a (1.1.0 does not work with some apps)

* Thu Aug 02 2001 Dag Wieers <dag@wieers.com> - 1.0.1
- Initial package.