[54993] trunk/dports/net/scapy/Portfile
snc at macports.org
snc at macports.org
Wed Aug 5 11:40:35 PDT 2009
Revision: 54993
http://trac.macports.org/changeset/54993
Author: snc at macports.org
Date: 2009-08-05 11:40:34 -0700 (Wed, 05 Aug 2009)
Log Message:
-----------
updated to reflect framework build, continued update from reopened ticket #18156.
Modified Paths:
--------------
trunk/dports/net/scapy/Portfile
Modified: trunk/dports/net/scapy/Portfile
===================================================================
--- trunk/dports/net/scapy/Portfile 2009-08-05 17:53:28 UTC (rev 54992)
+++ trunk/dports/net/scapy/Portfile 2009-08-05 18:40:34 UTC (rev 54993)
@@ -6,7 +6,7 @@
name scapy
version 2.0.0.10
-revision 1
+revision 2
categories net security python
platforms darwin
maintainers pmq
@@ -25,52 +25,15 @@
(VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted \
channel, ...), etc.
-homepage http://www.secdev.org/projects/scapy
-set hg_revision d9c79a8bc874
-master_sites ${homepage}/files:files \
- http://hg.secdev.org/${name}/raw-file/${hg_revision}:code
+homepage http://www.secdev.org/projects/scapy
+master_sites ${homepage}/files/
-distfiles ${name}.py:code ethertypes:files
-checksums ${name}.py \
- sha1 212aee3be0647d3402560e3bf81c523df1f780d1 \
- rmd160 6911b7f2cc8353c4e577c57c711dbdcabf4e412a \
- ethertypes \
- sha1 6ed0fe2446666876d77b8971fd8edf495a9c0be3 \
- rmd160 296b88fed911b25398b5f657cd6bb5c91e72e288
+checksums md5 6f75a492e19d188f8448c78d8e94c8d4 \
+ sha1 ac3bbfe6c731aae2dcb62d0c61c2b82f00a9e0a1 \
+ rmd160 bede1a7acf88bfc2dc7764cc3c1c76d945c9a156
-depends_lib-append port:py25-readline port:py25-pylibpcap port:py25-libdnet \
- port:py25-crypto port:py25-gnuplot port:py25-pyx port:graphviz
+depends_lib-append port:py25-readline port:py25-pylibpcap \
+ port:py25-libdnet port:py25-crypto \
+ port:py25-gnuplot port:py25-pyx \
+ port:graphviz
-extract {
- xinstall -d ${worksrcpath}
- file copy ${distpath}/${name}.py ${worksrcpath}/${name}.py
-}
-
-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
-
- # 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
- # use Preview.app to view PDF and PS files
- set call_preview "open -a Preview"
- reinplace "s|\"acroread\"|\"${call_preview}\"|" ${worksrcpath}/${name}.py
- reinplace "s|\"gv\"|\"${call_preview}\"|" ${worksrcpath}/${name}.py
-}
-
-destroot {
- xinstall -m 755 -W ${worksrcpath} scapy.py ${destroot}${prefix}/bin
- xinstall -m 644 -W ${distpath} ethertypes ${destroot}${prefix}/etc
- # 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/20090805/b3cfdc2c/attachment.html>
More information about the macports-changes
mailing list