Ticket #6920: Portfile.diff
File Portfile.diff, 2.1 KB (added by dports@…, 19 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name ntop 6 version 3. 16 version 3.2 7 7 categories net 8 8 maintainers mww@opendarwin.org 9 9 description network traffic probe … … 14 14 homepage http://www.ntop.org/ 15 15 master_sites sourceforge 16 16 extract.suffix .tgz 17 checksums md5 1c9b4097c2e464b84f2fe8f6626d2b0617 checksums md5 cd29a876b34a7dd76555e9acd8f160bb 18 18 19 depends_build bin:gawk:gawk 20 depends_lib lib:libpcap.DP:libpcap \ 21 lib:libgd.1:gd \ 22 lib:libpng3:libpng \ 23 lib:libgdbm:gdbm 24 25 worksrcdir ntop 19 depends_build port:gawk 20 depends_lib port:libpcap \ 21 port:gd2 \ 22 port:libpng \ 23 port::gdbm 26 24 27 25 platform darwin 6 { 28 26 patchfiles patch-darwin6-util.c … … 41 39 build.type gnu 42 40 43 41 destroot.target install install-data-as 42 43 variant server { 44 # Create a startupitem to start/stop the server 45 startupitem.create yes 46 startupitem.start "${prefix}/share/${name}/ntop.sh" 47 startupitem.stop "${prefix}/share/${name}/ntop.sh" 48 } 49 44 50 post-destroot { 45 51 xinstall -m 755 -o nobody -d ${destroot}/${prefix}/var/ntop \ 46 52 ${destroot}/${prefix}/var/ntop/rrd … … 48 54 touch addressQueue.db dnsCache.db macPrefix.db \ 49 55 ntop_pw.db prefsCache.db rrd/.turd" 50 56 system "chown -R nobody ${destroot}${prefix}/var/ntop" 57 58 xinstall -m 755 -d ${destroot}${prefix}/etc/ntop 59 xinstall -m 755 ${worksrcpath}/packages/FreeBSD-ports/net/ntop/files/ntop.conf.sample \ 60 ${destroot}${prefix}/etc/ntop/ntop.conf 61 reinplace "s|%%DBDIR%%/ntop|${prefix}/var/ntop|g" \ 62 ${destroot}${prefix}/etc/ntop/ntop.conf 63 reinplace "s|#--interface sis0|--interface en0|g" \ 64 ${destroot}${prefix}/etc/ntop/ntop.conf 65 66 if { [variant_isset server] } { 67 xinstall -m 755 ${portpath}/${filesdir}/ntop.sh ${destroot}${prefix}/share/ntop 68 69 reinplace "s|placeholder|echo ntop will start in 60s ; sleep 60 ; ${prefix}/bin/ntop @${prefix}/etc/ntop/ntop.conf -d|g" \ 70 ${destroot}${prefix}/share/ntop/ntop.sh 71 } 72 51 73 }