Changeset 23775


Ignore:
Timestamp:
Apr 9, 2007, 5:39:44 PM (14 years ago)
Author:
pmq@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/scapy/Portfile

    r21672 r23775  
    66name                  scapy
    77version               1.0.5.20
     8revision              1
    89categories            net security python
    910maintainers           pmq@macports.org
     
    3940
    4041extract {
    41         xinstall -m 775 -d ${worksrcpath}
    42         file copy ${distpath}/${distname}.py ${worksrcpath}/${name}.py
     42    xinstall -m 775 -d ${worksrcpath}
     43    file copy ${distpath}/${distname}.py ${worksrcpath}/${name}.py
    4344}
    4445
    4546use_configure           no
    46 build     {}
     47
     48build {
     49    # load sensible defaults in case the user has installed other network apps
     50    reinplace "s|/etc/p0f|${prefix}/share/p0f|" ${worksrcpath}/${name}.py
     51    reinplace "s|/usr/share/nmap|${prefix}/share/nmap|" ${worksrcpath}/${name}.py
     52    # there's no queso port, not altering the default queso.conf path
     53}
    4754
    4855destroot  {
    49         xinstall -m 644 -W ${distpath} ethertypes ${destroot}${prefix}/etc
    50         xinstall -m 755 -W ${worksrcpath} scapy.py ${destroot}${prefix}/bin
     56    xinstall -m 644 -W ${distpath} ethertypes ${destroot}${prefix}/etc
     57    xinstall -m 755 -W ${worksrcpath} scapy.py ${destroot}${prefix}/bin
    5158}
Note: See TracChangeset for help on using the changeset viewer.