1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

- Fix to install file etter.finger.os

- Fix to problem with kevent

PR:		ports/139361
Submitted by:	Vladimir Korkodinov <viper@perm.raid.ru>
Approved by:	itetcu (mentor)
This commit is contained in:
Sylvio Cesar Teixeira 2010-01-19 21:57:44 +00:00
parent b80baec8b1
commit 0b273bfe00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248169
3 changed files with 109 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ntop
PORTVERSION= 3.3.10
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -14,10 +15,12 @@ MAINTAINER= sylvio@FreeBSD.org
COMMENT= Network monitoring tool with command line and web interfaces
BUILD_DEPENDS= rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget \
geoiplookup:${PORTSDIR}/net/GeoIP
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
event-1.4:${PORTSDIR}/devel/libevent
RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget \
${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
DBDIR?= /var/db
@ -92,8 +95,13 @@ post-extract:
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ${SH} autogen.sh --noconfig
pre-install:
@cd ${WRKSRC} && ${GMAKE} dnetter
post-install:
@${MKDIR} ${DBDIR}/ntop
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
@${INSTALL} -d ${ETCDIR}/l7-patterns
@cd ${WRKSRC}/l7-patterns/&&${COPYTREE_SHARE} . ${ETCDIR}/l7-patterns
.include <bsd.port.post.mk>

View File

@ -0,0 +1,11 @@
--- ntop.c.orig 2010-01-15 20:54:06.000000000 -0200
+++ ntop.c 2010-01-15 20:55:37.000000000 -0200
@@ -183,7 +183,7 @@
#endif
signal(SIGQUIT, SIG_IGN);
- if((childpid=fork()) < 0)
+ if((childpid=rfork(RFPROC)) < 0)
traceEvent(CONST_TRACE_ERROR, "INIT: Occurred while daemonizing (errno=%d)", errno);
else {
#ifdef DEBUG

View File

@ -1,7 +1,96 @@
bin/ntop
etc/ntop/ntop-cert.pem
etc/ntop/etter.finger.os.gz
etc/ntop/oui.txt.gz
etc/ntop/specialMAC.txt.gz
etc/ntop/l7-patterns/100bao.pat
etc/ntop/l7-patterns/aim.pat
etc/ntop/l7-patterns/aimwebcontent.pat
etc/ntop/l7-patterns/applejuice.pat
etc/ntop/l7-patterns/ares.pat
etc/ntop/l7-patterns/battlefield1942.pat
etc/ntop/l7-patterns/battlefield2.pat
etc/ntop/l7-patterns/bgp.pat
etc/ntop/l7-patterns/biff.pat
etc/ntop/l7-patterns/bittorrent.pat
etc/ntop/l7-patterns/ciscovpn.pat
etc/ntop/l7-patterns/citrix.pat
etc/ntop/l7-patterns/counterstrike-source.pat
etc/ntop/l7-patterns/cvs.pat
etc/ntop/l7-patterns/dayofdefeat-source.pat
etc/ntop/l7-patterns/dhcp.pat
etc/ntop/l7-patterns/directconnect.pat
etc/ntop/l7-patterns/dns.pat
etc/ntop/l7-patterns/doom3.pat
etc/ntop/l7-patterns/edonkey.pat
etc/ntop/l7-patterns/fasttrack.pat
etc/ntop/l7-patterns/finger.pat
etc/ntop/l7-patterns/freenet.pat
etc/ntop/l7-patterns/ftp.pat
etc/ntop/l7-patterns/gkrellm.pat
etc/ntop/l7-patterns/gnucleuslan.pat
etc/ntop/l7-patterns/gnutella.pat
etc/ntop/l7-patterns/goboogy.pat
etc/ntop/l7-patterns/gopher.pat
etc/ntop/l7-patterns/h323.pat
etc/ntop/l7-patterns/halflife2-deathmatch.pat
etc/ntop/l7-patterns/hddtemp.pat
etc/ntop/l7-patterns/hotline.pat
etc/ntop/l7-patterns/http.pat
etc/ntop/l7-patterns/ident.pat
etc/ntop/l7-patterns/imap.pat
etc/ntop/l7-patterns/ipp.pat
etc/ntop/l7-patterns/irc.pat
etc/ntop/l7-patterns/jabber.pat
etc/ntop/l7-patterns/kugoo.pat
etc/ntop/l7-patterns/live365.pat
etc/ntop/l7-patterns/lpd.pat
etc/ntop/l7-patterns/msn-filetransfer.pat
etc/ntop/l7-patterns/msnmessenger.pat
etc/ntop/l7-patterns/mute.pat
etc/ntop/l7-patterns/napster.pat
etc/ntop/l7-patterns/nbns.pat
etc/ntop/l7-patterns/ncp.pat
etc/ntop/l7-patterns/netbios.pat
etc/ntop/l7-patterns/nntp.pat
etc/ntop/l7-patterns/ntp.pat
etc/ntop/l7-patterns/openft.pat
etc/ntop/l7-patterns/poco.pat
etc/ntop/l7-patterns/pop3.pat
etc/ntop/l7-patterns/pressplay.pat
etc/ntop/l7-patterns/qq.pat
etc/ntop/l7-patterns/quake-halflife.pat
etc/ntop/l7-patterns/quake1.pat
etc/ntop/l7-patterns/rdp.pat
etc/ntop/l7-patterns/rlogin.pat
etc/ntop/l7-patterns/rtsp.pat
etc/ntop/l7-patterns/shoutcast.pat
etc/ntop/l7-patterns/sip.pat
etc/ntop/l7-patterns/skypeout.pat
etc/ntop/l7-patterns/skypetoskype.pat
etc/ntop/l7-patterns/smb.pat
etc/ntop/l7-patterns/smtp.pat
etc/ntop/l7-patterns/snmp.pat
etc/ntop/l7-patterns/socks.pat
etc/ntop/l7-patterns/soribada.pat
etc/ntop/l7-patterns/soulseek.pat
etc/ntop/l7-patterns/ssdp.pat
etc/ntop/l7-patterns/ssh.pat
etc/ntop/l7-patterns/ssl.pat
etc/ntop/l7-patterns/subspace.pat
etc/ntop/l7-patterns/telnet.pat
etc/ntop/l7-patterns/tesla.pat
etc/ntop/l7-patterns/tftp.pat
etc/ntop/l7-patterns/tls.pat
etc/ntop/l7-patterns/tsp.pat
etc/ntop/l7-patterns/validcertssl.pat
etc/ntop/l7-patterns/vnc.pat
etc/ntop/l7-patterns/whois.pat
etc/ntop/l7-patterns/x11.pat
etc/ntop/l7-patterns/xboxlive.pat
etc/ntop/l7-patterns/xunlei.pat
etc/ntop/l7-patterns/yahoo.pat
etc/ntop/l7-patterns/zmaap.pat
lib/libcpacketPlugin-%%PORTVERSION%%.so
lib/libcpacketPlugin.so
lib/libicmpPlugin-%%PORTVERSION%%.so
@ -419,6 +508,7 @@ lib/ntop/plugins/sflowPlugin.so
@dirrm %%DATADIR%%/html/statsicons
@dirrm %%DATADIR%%/html
@dirrm %%DATADIR%%
@dirrm etc/ntop/l7-patterns
@dirrm etc/ntop
@dirrm lib/ntop/plugins
@dirrm lib/ntop