[packages/jpcap] initial PLD release

gotar gotar at pld-linux.org
Wed Mar 27 02:57:44 CET 2013

commit c069375f02e9697705361bfd14e97486364003b7
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Wed Mar 27 02:56:05 2013 +0100

    initial PLD release

 jpcap.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
diff --git a/jpcap.spec b/jpcap.spec
new file mode 100644
index 0000000..20784df
--- /dev/null
+++ b/jpcap.spec
@@ -0,0 +1,60 @@
+Summary:	A tool for capturing and visualizing network traffic
+Name:		jpcap
+Version:	0.01.16
+Release:	1
+License:	MPL 1.1
+Group:		Development/Languages/Java
+Source0:	http://downloads.sourceforge.net/jpcap/%{name}-%{version}.tar.gz
+# Source0-md5:	2307e2956dc2d4da1e9891bf22e8f7b4
+URL:		http://jpcap.sourceforge.net/
+BuildRequires:	jpackage-utils
+BuildRequires:	jdk >= 1.2
+BuildRequires:	libpcap-devel >= 0.4
+BuildRequires:	sed >= 4.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Jpcap captures network packets and allows the visualization of traffic
+patterns in real-time. Users can define filter expressions, examine packet
+data and manipulate graphical representations of hosts and network
+Included is a jar file containing the jpcap packet capture library
+which can be used by Java developers who wish to create their own
+packet capture applications.
+Internally, jpcap provides Java-native bindings to and relies on libpcap.
+Jpcap also requires JDK1.2. JDK1.3+ is recommended.
+Install jpcap if you'd like to see what's happening on your network.
+%setup -q
+sed -e 's|-lnsl /usr/lib/libpcap.a|-lnsl -lpcap|' -i src/java/net/sourceforge/jpcap/capture/makefile
+sed -e 's|for(;ifr < last; (char\*)ifr += ifrSize) {|for(;ifr < last; ifr = (ifreq*)((char*)ifr + ifrSize)) {|' -i src/java/net/sourceforge/jpcap/capture/jpcap.c
+%{__make} clean
+export RELEASE_HOME=.
+%{__make} setup_pkgroot \
+%doc README docs
+# src/java/net/sourceforge/jpcap/{tutorial,README}
+%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}.so

---- gitweb:


More information about the pld-cvs-commit mailing list