Ticket #9803: Portfile

File Portfile, 1.6 KB (added by pierre@…, 18 years ago)

Portfile

Line 
1# $Id: $
2
3PortSystem          1.0
4
5name                fragrouter
6categories          security net
7version             1.6
8platforms           darwin
9maintainers         pierre@queinnec.org
10description         Tool for testing network IDS implementations
11long_description    \
12    Fragrouter is a program for routing network traffic in such a way as \
13    to elude most network intrusion detection systems. \
14    The attacks implemented correspond to those listed in the Secure \
15    Networks ``Insertion, Evasion, and Denial of Service: Eluding Network \
16    Intrusion Detection'' paper of January, 1998.
17
18set debian_patch    ${name}_${version}-2.2.diff.gz
19
20# homepage disappeared some years ago...
21homepage            http://www.monkey.org/~dugsong/
22master_sites        ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles
23checksums           ${distname}${extract.suffix} md5 73fdc73f8da0b41b995420ded00533cc \
24                    ${debian_patch} md5 23f81f1fb63731acc96718241454afb0
25
26patch_sites         http://ftp.debian.org/debian/pool/main/f/fragrouter
27patchfiles          ${debian_patch}
28patch.args          -p1
29
30depends_build       port:libnet port:libpcap
31configure.env       CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
32build.env           CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
33# build.args        -DHAVE_ETHER_HOSTTON
34
35destroot {
36    xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin/
37    xinstall -m 644 -W ${worksrcpath} ${name}.8 ${destroot}${prefix}/share/man/man8/
38}
39
40# should actually replace with something like `uname -p`
41platform darwin powerpc {
42        configure.args      --host=powerpc
43}
44
45# should just work, cannot test
46platform darwin i386 {
47        configure.args      --host=i386
48}