|
|
@@ -34,7 +34,7 @@ Class: EVAL
|
|
|
Group: Network
|
|
|
License: LGPL
|
|
|
Version: 2.0.5
|
|
|
-Release: 20040914
|
|
|
+Release: 20041007
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://lcamtuf.coredump.cx/p0f/p0f-%{version}.tgz
|
|
|
@@ -72,10 +72,14 @@ AutoReqProv: no
|
|
|
-e 's;"p0f.fp";"%{l_prefix}/share/p0f/p0f.fp";g' \
|
|
|
config.h
|
|
|
platform=`uname -s`
|
|
|
+ libs="-lpcap"
|
|
|
+ case "%{l_platform -t}" in
|
|
|
+ *-sunos5* ) libs="$libs -lsocket -lnsl" ;;
|
|
|
+ esac
|
|
|
%{l_make} %{l_mflags -O} -f mk/$platform \
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O} %{l_cppflags}" \
|
|
|
- LIBS="%{l_ldflags} -lpcap"
|
|
|
+ LIBS="%{l_ldflags} $libs"
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|