[23903] trunk/dports/net/scapy

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 12 11:55:36 PDT 2007


Revision: 23903
          http://trac.macosforge.org/projects/macports/changeset/23903
Author:   pmq at macports.org
Date:     2007-04-12 11:55:36 -0700 (Thu, 12 Apr 2007)

Log Message:
-----------
Version bump to 1.1.1.

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

Removed Paths:
-------------
    trunk/dports/net/scapy/files/

Modified: trunk/dports/net/scapy/Portfile
===================================================================
--- trunk/dports/net/scapy/Portfile	2007-04-12 18:52:34 UTC (rev 23902)
+++ trunk/dports/net/scapy/Portfile	2007-04-12 18:55:36 UTC (rev 23903)
@@ -4,8 +4,7 @@
 PortGroup	      python24 1.0
 
 name		      scapy
-version		      1.0.5.20
-revision	      1
+version		      1.1.1
 categories	      net security python
 maintainers	      pmq at macports.org
 
@@ -24,35 +23,41 @@
         channel, ...), etc.
 
 homepage	      http://www.secdev.org/projects/scapy
-master_sites	      ${homepage}/all ${homepage}/files
+master_sites	      ${homepage}/files
 
-distfiles	      ${distname}.py ethertypes
-checksums	      ${distname}.py \
-		          sha1 49f48ba46fc4bb80d14d272a2d33cc70dee03ad8 \
-                      	  rmd160 5925b64f1f3cff1dbd11a00e37957952023c94cd \
-        	      ethertypes \
+distfiles	      ${distfiles} ethertypes
+checksums	      ${distname}.tar.gz \
+		          sha1 870da8e6e2a8786b03a0055fc2cc1d1317f308e4 \
+                      	  rmd160 20bdb1ea59a05f452a515e438e230e1d85b81016 \
+		      ethertypes \
 		          sha1 6ed0fe2446666876d77b8971fd8edf495a9c0be3 \
-                       	  rmd160 296b88fed911b25398b5f657cd6bb5c91e72e288
-patchfiles	      patch-scapy.py.diff
+			  rmd160 296b88fed911b25398b5f657cd6bb5c91e72e288
 
 depends_lib-append    port:py-readline port:py-pylibpcap port:py-libdnet \
 		      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
-}
+extract.only	      ${distname}${extract.suffix}
+use_configure	      no
 
-use_configure		no
+build {
+    # force using the MacPorts-provided Python, with the correct version
+    reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/${name}.py
 
-build {
     # load sensible defaults in case the user has installed other network apps
+    reinplace "s|/etc/ethertypes|${prefix}/etc/ethertypes|" ${worksrcpath}/${name}.py
     reinplace "s|/etc/p0f|${prefix}/share/p0f|" ${worksrcpath}/${name}.py
     reinplace "s|/usr/share/nmap|${prefix}/share/nmap|" ${worksrcpath}/${name}.py
+    reinplace "s|/usr/share/wireshark/wireshark|${prefix}/share/wireshark|" \
+        ${worksrcpath}/${name}.py
     # there's no queso port, not altering the default queso.conf path
 }
 
 destroot  {
+    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
+    xinstall -m 644 -W ${worksrcpath} scapy.1 ${destroot}${prefix}/share/man/man1
+
+    # changelog.txt seems obsolete
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 AUTHORS COPYING README changelog ${destroot}${prefix}/share/doc/${name}
 }

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


More information about the macports-changes mailing list