# $Id: Portfile 76383 2011-02-21 20:50:36Z adfernandes@macports.org $ PortSystem 1.0 #PortGroup python27 1.0 set python.bin ${prefix}/bin/python2.7 set python.prefix ${frameworks_dir}/Python.framework/Versions/2.7 name py27-libdnet version 1.12 categories python net maintainers nzbox.com:msavory platforms darwin description A python module for the libdnet low-level networking library. long_description \ Libdnet provides a simplified, portable interface to several low-level \ networking routines, including: network address manipulation, kernel \ arp(4) cache and route(4) table lookup and manipulation, network \ firewalling (IP filter, ipfw, ipchains, pf, ...), network interface \ lookup and manipulation, raw IP packet and Ethernet frame transmission. homepage http://code.google.com/p/libdnet/ master_sites googlecode extract.suffix .tgz distname libdnet-${version} dist_subdir libdnet checksums md5 9253ef6de1b5e28e9c9a62b882e44cc9 \ sha1 71302be302e84fc19b559e811951b5d600d976f8 \ rmd160 4b849f07c3513522fda65af067928b7e6d504aab depends_lib port:python27 port:libdnet # libdnet is not universal universal_variant no pre-destroot { worksrcdir ${worksrcdir}/python } destroot.cmd ${python.bin} ./setup.py install destroot.destdir --prefix=${python.prefix} --root=${destroot} livecheck.regex "libdnet-(\\d+(?:\\.\\d+)*)${extract.suffix}"