| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name netwox |
|---|
| 6 | version 5.30.0 |
|---|
| 7 | set NetWVers 530 |
|---|
| 8 | categories net |
|---|
| 9 | platforms darwin |
|---|
| 10 | maintainers jmpp openmaintainer |
|---|
| 11 | |
|---|
| 12 | description Toolbox with several features to test an Ethernet/IP network. |
|---|
| 13 | long_description Netwox is a toolbox containing 197 tools implemented from \ |
|---|
| 14 | the Network Library netwib. They help to find and solve \ |
|---|
| 15 | network problems with common techniques such as sniffing and \ |
|---|
| 16 | spoffing, analazing DNS, FTP, HTTP, IRC, NNTP, SMTP, SNMP, \ |
|---|
| 17 | SYSLOG, TELNET and TFTP traffic, scans, ping and traceroute, \ |
|---|
| 18 | client/servers implementations, etc. |
|---|
| 19 | |
|---|
| 20 | homepage http://www.laurentconstantin.com/ |
|---|
| 21 | master_sites ${homepage}common/netw/${name}/download/v5/ \ |
|---|
| 22 | http://www.mirrors.wiretapped.net/security/packet-construction/${name} |
|---|
| 23 | extract.suffix .tgz |
|---|
| 24 | distfiles ${distname}-src${extract.suffix} \ |
|---|
| 25 | ${distname}-doc_html${extract.suffix} |
|---|
| 26 | checksums ${distname}-src${extract.suffix} md5 4fb5e2d21ce6fac6f6442f3d9556e3e6 \ |
|---|
| 27 | ${distname}-doc_html${extract.suffix} md5 7d1899ebdf45862d4e230371048d860b |
|---|
| 28 | |
|---|
| 29 | depends_lib lib:libnetwib${NetWVers}:netwib |
|---|
| 30 | |
|---|
| 31 | worksrcdir ${distname}-src/src |
|---|
| 32 | |
|---|
| 33 | pre-configure { |
|---|
| 34 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config.dat |
|---|
| 35 | reinplace "s|\\(NETWOXDEF_PROGCC_INC=\\)\"\"|\\1-I${prefix}/include|g" ${worksrcpath}/config.dat |
|---|
| 36 | reinplace "s|\\(NETWOXDEF_PROGCC_LIB=\\)\"\"|\\1-L${prefix}/lib|g" ${worksrcpath}/config.dat |
|---|
| 37 | reinplace "s|man|share/man|g" ${worksrcpath}/config.dat |
|---|
| 38 | reinplace "s|share/man1|man1|g" ${worksrcpath}/config.dat |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | configure.pre_args {} |
|---|
| 42 | configure.cmd ./genemake |
|---|
| 43 | |
|---|
| 44 | post-destroot { |
|---|
| 45 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
|---|
| 46 | file copy ${workpath}/${distname}-doc_html ${destroot}${prefix}/share/doc/${name}/html |
|---|
| 47 | xinstall -m 644 -v -W ${worksrcpath}/../doc/ changelog.txt credits.txt \ |
|---|
| 48 | guidestyle.txt todo.txt toollist.txt ${destroot}${prefix}/share/doc/${name}/ |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | post-activate { |
|---|
| 52 | ui_msg "\nFull html documentation is installed as part of the port at:\n |
|---|
| 53 | ${prefix}/share/doc/${name}/html/\n" |
|---|
| 54 | } |
|---|