Przeglądaj źródła

upgrading package: p0f 2.0.8 -> 3.01b

Ralf S. Engelschall 14 lat temu
rodzic
commit
fedffe7e1b
1 zmienionych plików z 9 dodań i 16 usunięć
  1. 9 16
      p0f/p0f.spec

+ 9 - 16
p0f/p0f.spec

@@ -31,11 +31,11 @@ Distribution: OpenPKG Community
 Class:        PLUS
 Group:        Mapping
 License:      LGPL
-Version:      2.0.8
-Release:      20080101
+Version:      3.01b
+Release:      20120117
 
 #   list of sources
-Source0:      http://lcamtuf.coredump.cx/p0f/p0f-%{version}.tgz
+Source0:      http://lcamtuf.coredump.cx/p0f3/releases/p0f-%{version}.tgz
 
 #   build information
 BuildPreReq:  OpenPKG, openpkg >= 20100101, libpcap, gcc, make
@@ -57,21 +57,16 @@ PreReq:       OpenPKG, openpkg >= 20100101, libpcap
     }
 
 %prep
-    %setup -q -n p0f
+    %setup -q
 
 %build
     %{l_shtool} subst \
         -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} $libs"
+    CC="%{l_cc}" \
+    CFLAGS="%{l_cflags -O} %{l_cppflags}" \
+    LDFLAGS="%{l_ldflags}" \
+    %{l_bash} build.sh all
 
 %install
     %{l_shtool} mkdir -f -p -m 755 \
@@ -80,12 +75,10 @@ PreReq:       OpenPKG, openpkg >= 20100101, libpcap
         $RPM_BUILD_ROOT%{l_prefix}/man/cat8
     %{l_shtool} install -c -s -m 755 \
         p0f $RPM_BUILD_ROOT%{l_prefix}/sbin/
-    %{l_shtool} install -c -m 755 \
-        p0frep $RPM_BUILD_ROOT%{l_prefix}/sbin/
     %{l_shtool} install -c -m 644 \
         p0f.fp $RPM_BUILD_ROOT%{l_prefix}/share/p0f/
     %{l_shtool} install -c -m 644 \
-        doc/README $RPM_BUILD_ROOT%{l_prefix}/man/cat8/p0f.8
+        docs/README $RPM_BUILD_ROOT%{l_prefix}/man/cat8/p0f.8
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
 
 %files -f files