[23775] trunk/dports/net/scapy/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 9 10:39:45 PDT 2007


Revision: 23775
          http://trac.macosforge.org/projects/macports/changeset/23775
Author:   pmq at macports.org
Date:     2007-04-09 10:39:44 -0700 (Mon, 09 Apr 2007)

Log Message:
-----------
Load sensible defaults out-of-the-box, use MacPorts-provided nmap and p0f files if they happen to be there.

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

Modified: trunk/dports/net/scapy/Portfile
===================================================================
--- trunk/dports/net/scapy/Portfile	2007-04-09 16:36:59 UTC (rev 23774)
+++ trunk/dports/net/scapy/Portfile	2007-04-09 17:39:44 UTC (rev 23775)
@@ -5,6 +5,7 @@
 
 name		      scapy
 version		      1.0.5.20
+revision	      1
 categories	      net security python
 maintainers	      pmq at macports.org
 
@@ -38,14 +39,20 @@
 		      port:py-crypto port:py-gnuplot port:py-pyx port:graphviz
 
 extract {
-        xinstall -m 775 -d ${worksrcpath}
-        file copy ${distpath}/${distname}.py ${worksrcpath}/${name}.py
+    xinstall -m 775 -d ${worksrcpath}
+    file copy ${distpath}/${distname}.py ${worksrcpath}/${name}.py
 }
 
 use_configure		no
-build     {}
 
+build {
+    # load sensible defaults in case the user has installed other network apps
+    reinplace "s|/etc/p0f|${prefix}/share/p0f|" ${worksrcpath}/${name}.py
+    reinplace "s|/usr/share/nmap|${prefix}/share/nmap|" ${worksrcpath}/${name}.py
+    # there's no queso port, not altering the default queso.conf path
+}
+
 destroot  {
-        xinstall -m 644 -W ${distpath} ethertypes ${destroot}${prefix}/etc
-        xinstall -m 755 -W ${worksrcpath} scapy.py ${destroot}${prefix}/bin
+    xinstall -m 644 -W ${distpath} ethertypes ${destroot}${prefix}/etc
+    xinstall -m 755 -W ${worksrcpath} scapy.py ${destroot}${prefix}/bin
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070409/9b48d67a/attachment.html


More information about the macports-changes mailing list