summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/tcpdump.manifest5
-rw-r--r--packaging/tcpdump.spec40
-rw-r--r--setsignal.c4
3 files changed, 49 insertions, 0 deletions
diff --git a/packaging/tcpdump.manifest b/packaging/tcpdump.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/tcpdump.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/tcpdump.spec b/packaging/tcpdump.spec
new file mode 100644
index 0000000..58aac60
--- /dev/null
+++ b/packaging/tcpdump.spec
@@ -0,0 +1,40 @@
+Name: tcpdump
+Version: 4.9.2
+Release: 1
+License: BSD-3-Clause
+Summary: A Packet Sniffer
+Url: http://www.tcpdump.org/
+Group: Productivity/Networking/Diagnostic
+Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
+Source1001: tcpdump.manifest
+BuildRequires: libpcap-devel
+#BuildRequires: libsmi-devel
+BuildRequires: openssl-devel
+
+%description
+This program can "read" all or only certain packets going over the
+ethernet. It can be used to debug specific network problems.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS="%{optflags} -Wall -DGUESS_TSO -fstack-protector -fno-strict-aliasing -fPIE"
+export LDFLAGS="-pie"
+
+%configure \
+ --enable-ipv6
+make
+
+%install
+%make_install
+
+%files
+%manifest %{name}.manifest
+%defattr(-,network_fw,network_fw)
+%doc LICENSE README *.awk
+%doc %{_mandir}/man?/*
+%{_sbindir}/*
+
+%changelog
diff --git a/setsignal.c b/setsignal.c
index 4d93ceb..81005a0 100644
--- a/setsignal.c
+++ b/setsignal.c
@@ -34,6 +34,10 @@
#include "os-proto.h"
#endif
+#ifdef HAVE_SIGSET
+void *sigset(int signum, void (*handler)(int));
+#endif
+
#include "setsignal.h"
/*