[99133] trunk/dports/net/p0f/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Oct 27 18:17:46 PDT 2012


Revision: 99133
          http://trac.macports.org//changeset/99133
Author:   ryandesign at macports.org
Date:     2012-10-27 18:17:46 -0700 (Sat, 27 Oct 2012)
Log Message:
-----------
p0f: update to 3.06b (#34899); add universal variant and ensure we're using the right -arch flags

Modified Paths:
--------------
    trunk/dports/net/p0f/Portfile

Modified: trunk/dports/net/p0f/Portfile
===================================================================
--- trunk/dports/net/p0f/Portfile	2012-10-28 00:38:24 UTC (rev 99132)
+++ trunk/dports/net/p0f/Portfile	2012-10-28 01:17:46 UTC (rev 99133)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                p0f
-version             2.0.8
+version             3.06b
 set major           [lindex [split ${version} .] 0]
 categories          net security
 platforms           darwin
@@ -23,33 +23,44 @@
                     ${homepage}releases/old/${major}.x/
 extract.suffix      .tgz
 
-checksums           sha1    7b4d5b2f24af4b5a299979134bc7f6d7b1eaf875 \
-                    rmd160  87d5b30d2d5e156b9fdcb026160155f413ce13d3
+checksums           rmd160  040dbec1457b8817075e3777e2c45020739930f9 \
+                    sha256  d151931be2557ac45f9baa0a9384b8643979f4227c391ed395792874f2c6cde7
 
 depends_build       port:gmake
 
-worksrcdir          ${name}
+depends_lib         port:libpcap
 
-patchfiles          p0f.c.patch \
-                    p0fq.c.patch
+set datadir         ${prefix}/share/${name}
 
 post-patch  {
-    reinplace "s|/etc/p0f|${prefix}/share/p0f|g" ${worksrcpath}/config.h
+    reinplace "s|\"p0f.fp\"|\"${datadir}/p0f.fp\"|g" ${worksrcpath}/config.h
 }
 
 use_configure       no
 
-build.args          CC=${configure.cc}
+variant universal {}
 
+build.args          CC="${configure.cc} [get_canonical_archflags cc]"
+
+post-build {
+    # build tools not handled by the build.sh script separately
+    system -W ${worksrcpath}/tools "${build.cmd} [join ${build.args}]"
+}
+
 destroot {
-    xinstall -m 755 -s ${worksrcpath}/p0f ${destroot}${prefix}/bin
-    xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${prefix}/share/${name}
-    xinstall -m 644 -W ${worksrcpath} p0f.fp p0fa.fp p0fr.fp p0fo.fp \
-        ${destroot}${prefix}/share/${name}
-    xinstall -m 644 -W ${worksrcpath}/doc COPYING CREDITS ChangeLog KNOWN_BUGS \
-        README TODO ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 755 -s -W ${worksrcpath} \
+        ${name} \
+        tools/${name}-client \
+        tools/${name}-sendsyn \
+        tools/${name}-sendsyn6 \
+        ${destroot}${prefix}/bin
+    # the manpage is unavailable in version 3.05b, uncomment when provided again
+    #xinstall -m 644 ${worksrcpath}/p0f.1 ${destroot}${prefix}/share/man/man1
+    xinstall -m 755 -d ${destroot}${datadir} ${destroot}${prefix}/share/doc
+    xinstall -m 644 ${worksrcpath}/p0f.fp ${destroot}${datadir}
+    copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath}/tools README-TOOLS \
+        ${destroot}${prefix}/share/doc/${name}
 }
 
 livecheck.regex     ${name}-(\[0-9.\]+b?)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121027/c319151b/attachment.html>


More information about the macports-changes mailing list