[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)
+
+%description
+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
+communications.
+
+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.
+
+%prep
+%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
+
+%build
+MAKE_HOME=`pwd`/make
+CLASSPATH=`pwd`/src/java:`pwd`/thirdParty/jars/junit.jar:`pwd`/thirdParty/jars/fooware_CommandLine-1.0.jar:`pwd`/thirdParty/jars/dev-classes_net.ultrametrics-0.03.jar
+OSTYPE=linux
+export OSTYPE MAKE_HOME CLASSPATH
+%{__make} clean
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+export RELEASE_HOME=.
+%{__make} setup_pkgroot \
+	PKG_ROOT=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README docs
+# src/java/net/sourceforge/jpcap/{tutorial,README}
+%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_libdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jpcap.git/commitdiff/c069375f02e9697705361bfd14e97486364003b7



More information about the pld-cvs-commit mailing list