SHA256
1
0
forked from pool/bittwist
bittwist/bittwist.spec

66 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package bittwist
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: bittwist
Version: 2.0
Release: 0
Summary: A simple yet powerful libpcap-based Ethernet packet generator
License: GPL-2.0
Group: Productivity/Networking/Diagnostic
Url: http://bittwist.sourceforge.net/
Source: http://downloads.sourceforge.net/%{name}/Linux/Bit-Twist%%20%{version}/%{name}-linux-%{version}.tar.gz
Patch0: bittwist-makefile.diff
BuildRequires: libpcap-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bit-Twist is a simple yet powerful libpcap-based Ethernet packet generator.
It is designed to complement tcpdump, which by itself has done a great job
at capturing network traffic.
With Bit-Twist, you can now regenerate your captured traffic onto a live
network!
Packets are generated from tcpdump trace file (.pcap file).
Bit-Twist also comes with a comprehensive trace file editor to allow you to
change the contents of a trace file.
Generally, packet generator is useful in simulating networking traffic or
scenario, testing firewall, IDS, and IPS, and troubleshooting various network
problems.
%prep
%setup -q -n %{name}-linux-%{version}
%patch0 -p1
perl -i -pe 's/\r\n/\n/gs' AUTHORS BUGS CHANGES COPYING README VERSION
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%make_install
%files
%defattr(-,root,root)
%doc AUTHORS BUGS CHANGES COPYING README VERSION
%{_bindir}/bittwist
%{_bindir}/bittwiste
%{_mandir}/man1/bittwist.1%{ext_man}
%{_mandir}/man1/bittwiste.1%{ext_man}
%changelog