# $Id: Portfile 69772 2010-07-16 07:17:24Z ryandesign@macports.org $

PortSystem              1.0

#PortGroup               python25 1.0
set python.bin	${prefix}/bin/python2.5

name                    py25-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:python25 port:libdnet

# libdnet is not universal
universal_variant       no

pre-destroot {
	worksrcdir	${worksrcdir}/python
}
destroot.cmd		${python.bin} ./setup.py install
destroot.destdir	--prefix=${prefix} --root=${destroot}
