]> git.pld-linux.org Git - packages/jpcap.git/commitdiff
initial PLD release
authorTomasz Pala <gotar@pld-linux.org>
Wed, 27 Mar 2013 01:56:05 +0000 (02:56 +0100)
committerTomasz Pala <gotar@pld-linux.org>
Wed, 27 Mar 2013 01:56:05 +0000 (02:56 +0100)
jpcap.spec [new file with mode: 0644]

diff --git a/jpcap.spec b/jpcap.spec
new file mode 100644 (file)
index 0000000..20784df
--- /dev/null
@@ -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}
This page took 0.081739 seconds and 4 git commands to generate.