Ticket #16677: Portfile

File Portfile, 1.1 KB (added by mike-savory, 16 years ago)

Second attempt at a portfile

Line 
1# $Id:
2PortSystem              1.0
3PortGroup               python25 1.0
4
5# FIXME try with Python 2.5
6name                    py25-libpcap
7version                 0.6.2
8categories              python net
9platforms               darwin
10maintainers             pmq openmaintainer
11
12description             Python module for the libpcap packet capture library
13long_description        \
14    Pylibpcap is a Python extension module that interfaces with the libpcap \
15    packet capture library. Pylibpcap enables python scripts to capture \
16    packets on the network.
17
18homepage                http://pylibpcap.sourceforge.net
19master_sites            sourceforge:pylibpcap
20
21distname                pylibpcap-${version}
22checksums               sha1 f47d6e5d72219e2162f1b16e59f3c45e496652d9 \
23                        rmd160 dbda6fec0786630c3af65d540b57507f888d1d78
24
25depends_lib             port:libpcap port:swig
26
27post-destroot {
28    set sharedir ${destroot}${prefix}/share/doc/${name}-${version}
29    xinstall -d ${sharedir}
30    xinstall -d ${sharedir}/examples
31
32    xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README ${sharedir}
33    xinstall -m 755 -W ${worksrcpath}/examples findalldevs.py sniff.py ${sharedir}/examples
34}