# $Id: Portfile 61835 2009-12-21 21:51:37Z ecronin@macports.org $

PortSystem              1.0

#PortGroup               python26 1.0
set python.bin	${prefix}/bin/python2.6
set python.prefix  ${frameworks_dir}/Python.framework/Versions/2.6

name                    py26-libdnet
version                 1.11
revision                1
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://libdnet.sourceforge.net
master_sites            sourceforge:libdnet
distname                libdnet-${version}

depends_lib	      port:libdnet

checksums		md5 04c394ed8e1e7fc455456e79e908916d \
			sha1 e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf \
			rmd160 9a940cdd96af4b513a048f3a389e3f7eb0bb7011


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