SHA256
1
0
forked from pool/netsniff-ng
Pascal Bleser 2012-03-29 11:40:21 +00:00 committed by Git OBS Bridge
parent cd2f8e02f2
commit 180175285a
5 changed files with 50 additions and 94 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b1730a62464b81ee6958a157eb106c127609750f853328428fd274cda2fb872e
size 218934

3
netsniff-ng-0.5.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64b06725a19d2103aeefa1b60d166657ed3008f8a94691a6ec883708348de227
size 3575834

View File

@ -1,57 +0,0 @@
--- src/definitions.mk.orig 2010-10-11 20:41:24.000000000 +0200
+++ src/definitions.mk 2010-10-11 20:49:04.000000000 +0200
@@ -2,12 +2,9 @@
# Makefile definitions for netsniff-ng
#
-LD_NORM = echo "LD $(target)"; \
- gcc
-CC_NORM = echo "CC $<"; \
- gcc
-CC_DEBUG = echo "DBG $<"; \
- gcc
+LD_NORM = gcc
+CC_NORM = gcc
+CC_DEBUG = gcc
LIBS = -lpthread -lrt
MAKEFLAGS += --no-print-directory
@@ -21,10 +18,12 @@
$(if $(1:$(2)=),,$(if $(2:$(1)=),,T))
endef
+OPTFLAGS=-O2
+
ifneq ($(or $(call eq,$(MAKECMDGOALS),"all"), $(call eq,$(MAKECMDGOALS),"")),)
LD = $(LD_NORM) -o
CC = $(CC_NORM) -c
- CFLAGS = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common \
+ CFLAGS = -fomit-frame-pointer -fno-strict-aliasing -fno-common \
-fno-delete-null-pointer-checks -pedantic -std=gnu99
CFLAGS += -Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror-implicit-function-declaration -Wno-format-security \
@@ -50,5 +49,7 @@
-Wcomments -Wendif-labels
endif
+CFLAGS += $(OPTFLAGS)
+
.PHONY: all
--- src/Makefile.orig 2010-10-11 20:40:53.000000000 +0200
+++ src/Makefile 2010-10-11 20:41:21.000000000 +0200
@@ -20,12 +20,12 @@
#-----------------------------------------------------------------------------
build: $(lib-objs) $(core-objs)
- @$(LD) $(target) $(core-objs) $(lib-objs) $(LIBS)
+ $(LD) $(target) $(core-objs) $(lib-objs) $(LIBS)
#-----------------------------------------------------------------------------
%.o: %.c
- @$(CC) $(CFLAGS) $(INCLUDE) $<
+ $(CC) $(CFLAGS) $(INCLUDE) $<
#-----------------------------------------------------------------------------

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 29 10:43:00 UTC 2012 - pascal.bleser@opensuse.org
- update to 0.5.6: see changelog
-------------------------------------------------------------------
Sat Sep 24 21:06:07 UTC 2011 - andreas.stieger@gmx.de

View File

@ -1,18 +1,30 @@
# vim: set ts=4 sw=4 et:
# norootforbuild
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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: netsniff-ng
Version: 0.5.5.0
Version: 0.5.6
Release: 0
Summary: High Performance Network Sniffer for Packet Inspection
# http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
Source: netsniff-ng-%{version}.tar.bz2
Patch1: netsniff-ng-optflags.patch
Source: http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
URL: http://code.google.com/p/netsniff-ng/
Group: Productivity/Networking/Diagnostic
License: GNU General Public License version 2 or later (GPL v2 or later)
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel
BuildRequires: ncurses-devel
BuildRequires: libGeoIP-devel
BuildRequires: flex bison
BuildRequires: cmake gcc make glibc-devel
BuildRequires: autoconf automake libtool
%description
@ -25,44 +37,40 @@ network debugging, measurement of performance throughput, or network statistics
creation of incoming packets on central network nodes like routers or
firewalls.
Authors:
--------
Daniel Borkmann <danborkmann@googlemail.com>
Emmanuel Roullit <emmanuel.roullit@googlemail.com>
%prep
%setup -q -n "%{name}"
%patch1
%setup -q
%build
%__make -C src \
OPTFLAGS="%{optflags} -Wall" \
LD_NORM="%__cc" \
CC_NORM="%__cc" \
CC_DEBUG="%__cc" \
all
%__install -d build
pushd build
cmake \
-DCMAKE_INSTALL_PREFIX="%{_usr}" \
../src/
%__make %{?_smp_mflags}
popd
%install
%__make -C src \
OPTFLAGS="%{optflags} -Wall" \
LD_NORM="%__cc" \
CC_NORM="%__cc" \
CC_DEBUG="%__cc" \
DESTDIR="%{buildroot}" \
install
%__chmod 0644 "%{buildroot}%{_mandir}"/*/*
pushd build
%__make DESTDIR="%{buildroot}" install
popd
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG CODING COPYING CREDITS HACKING README TODO
%doc AUTHORS COPYING MAINTAINER PROJECTS README REPORTING-BUGS
%doc THANKS Documentation
%config %{_sysconfdir}/netsniff-ng
%{_sbindir}/ashunt
%{_sbindir}/bpfc
%{_sbindir}/ifpps
%{_sbindir}/netsniff-ng
%doc %{_mandir}/man8/netsniff-ng.8%{ext_man}
%{_sbindir}/trafgen
%doc %{_mandir}/man8/ashunt.8*
%doc %{_mandir}/man8/bpfc.8*
%doc %{_mandir}/man8/ifpps.8*
%doc %{_mandir}/man8/netsniff-ng.8*
%doc %{_mandir}/man8/trafgen.8*
%changelog