source: trunk/dports/net/ntop/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                    ntop
7version                 5.0.1
8revision                2
9categories              net
10maintainers             nomaintainer
11# COPYING is GPL 3 but the source files say GPL 2 or later
12license                 GPL-2+
13
14description             network traffic probe
15platforms               darwin
16long_description        ntop is a network traffic probe that shows the network \
17                                usage, similar to what the popular top Unix command does.
18
19homepage                http://www.ntop.org/
20master_sites            sourceforge:project/ntop/ntop/Stable/
21
22checksums               rmd160  6ca48ded21538e7af895b25da935a3069378de70 \
23                        sha256  7e8e84cb14d2173beaca4d4cb991a14d84a4bef84ec37b2276bc363f45c52ef8
24
25depends_build           port:gawk \
26                        port:automake \
27                        port:autoconf \
28                        port:libtool \
29                        port:libevent
30
31depends_lib             port:libpcap \
32                        port:gd2 \
33                        port:libpng \
34                        port:gdbm \
35                        port:libgeoip \
36                        port:rrdtool \
37                        port:python27
38
39post-extract {
40        move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
41}
42
43patchfiles              patch-Makefile.am.diff \
44                        patch-autogen.sh.diff \
45                        patch-configure.ac.diff \
46                        patch-plugins-Makefile.am.diff
47
48post-patch {
49        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/autogen.sh
50}
51
52configure.env           LOCALEDIR=${prefix}/share/locale \
53                        PYTHON=${prefix}/bin/python2.7-config
54
55configure.cmd           ${worksrcpath}/autogen.sh
56
57configure.args          --with-rrd-home=${prefix} \
58                        --without-ssl
59
60startupitem.create      yes
61startupitem.executable  ${prefix}/bin/ntop @${prefix}/etc/ntop/ntop.conf
62
63destroot.keepdirs ${destroot}${prefix}/var/ntop/rrd
64
65post-destroot   {
66        xinstall -m 755 -o nobody -d ${destroot}${prefix}/var/ntop \
67                ${destroot}${prefix}/var/ntop/rrd
68
69        xinstall -m 755 -d ${destroot}${prefix}/etc/ntop
70        xinstall -m 755 \
71                ${worksrcpath}/packages/FreeBSD-ports/net/ntop/files/ntop.conf.sample \
72                ${destroot}${prefix}/etc/ntop
73        reinplace "s|%%DBDIR%%/ntop|${prefix}/var/ntop|g" \
74                ${destroot}${prefix}/etc/ntop/ntop.conf.sample
75        reinplace "s|#--interface sis0|--interface en0|g" \
76                ${destroot}${prefix}/etc/ntop/ntop.conf.sample
77}
78
79post-activate {
80        foreach f {addressQueue.db dnsCache.db macPrefix.db ntop_pw.db prefsCache.db} {
81                if {![file exists ${prefix}/var/ntop/${f}]} {
82                        touch ${prefix}/var/ntop/${f}
83                        file attributes ${prefix}/var/ntop/${f} -owner nobody
84                }
85        }
86        if {![file exists ${prefix}/etc/ntop/ntop.conf]} {
87                copy ${prefix}/etc/ntop/ntop.conf.sample ${prefix}/etc/ntop/ntop.conf
88        }
89}
90
91universal_variant               no
92
93livecheck.regex         /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.