1 | # $Id: Portfile,v 1.14 2005/05/25 10:10:37 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ntop |
---|
6 | version 3.2rc1 |
---|
7 | categories net |
---|
8 | maintainers mww@opendarwin.org |
---|
9 | description network traffic probe |
---|
10 | platforms darwin |
---|
11 | long_description ntop is a network traffic probe that shows the network \ |
---|
12 | usage, similar to what the popular top Unix command does. |
---|
13 | |
---|
14 | homepage http://www.ntop.org/ |
---|
15 | master_sites sourceforge |
---|
16 | extract.suffix .tgz |
---|
17 | checksums md5 bae2dee239e6a8ae6cd68dd6608a57d5 |
---|
18 | |
---|
19 | depends_build bin:gawk:gawk |
---|
20 | depends_lib port:libpcap \ |
---|
21 | port:gd \ |
---|
22 | port:libpng \ |
---|
23 | port:gdbm \ |
---|
24 | port:zlib \ |
---|
25 | port:libiconv |
---|
26 | |
---|
27 | configure.args --with-localedir=${prefix}/share/locale \ |
---|
28 | --mandir=${prefix}/share/man \ |
---|
29 | --with-zlib-root=${prefix} \ |
---|
30 | --with-ossl-root=${prefix} \ |
---|
31 | --with-libpng-root=${prefix} \ |
---|
32 | --with-pcap-root=${prefix} \ |
---|
33 | --with-gdbm-root=${prefix} \ |
---|
34 | --with-gd-root=${prefix} \ |
---|
35 | --enable-sslv3 |
---|
36 | configure.env CFLAGS=-I${prefix}/include \ |
---|
37 | CPPFLAGS=-I${prefix}/include \ |
---|
38 | LDFLAGS=-L${prefix}/lib |
---|
39 | |
---|
40 | build.type gnu |
---|
41 | |
---|
42 | platform darwin 6 { |
---|
43 | patchfiles patch-darwin6-util.c |
---|
44 | } |
---|
45 | |
---|
46 | platform darwin 8 { |
---|
47 | configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
48 | build.env MACOSX_DEPLOYMENT_TARGET=10.4 |
---|
49 | } |
---|
50 | |
---|
51 | destroot.target install install-data-as |
---|
52 | post-destroot { |
---|
53 | xinstall -m 755 -o nobody -d ${destroot}/${prefix}/var/ntop \ |
---|
54 | ${destroot}/${prefix}/var/ntop/rrd |
---|
55 | system "cd ${destroot}${prefix}/var/ntop && \ |
---|
56 | touch addressQueue.db dnsCache.db macPrefix.db \ |
---|
57 | ntop_pw.db prefsCache.db rrd/.turd" |
---|
58 | system "chown -R nobody ${destroot}${prefix}/var/ntop" |
---|
59 | } |
---|