Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2006 11:01:17 -0300 (ART)
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97300: [net/sntop] install docs and examples and take maintainership
Message-ID:  <200605151401.k4FE1HGI072318@omega.iib.unsam.edu.ar>
Resent-Message-ID: <200605151414.k4FEE6r3091685@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         97300
>Category:       ports
>Synopsis:       [net/sntop] install docs and examples and take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 15 14:10:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Fernan Aguero
>Release:        FreeBSD 6.0-RELEASE-p4 i386
>Organization:
IIB-UNSAM
>Environment:

System: FreeBSD omega.iib.unsam.edu.ar 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #0: Wed Jan 25 12:43:39 ART 2006 fernan@omega.iib.unsam.edu.ar:/usr/obj/usr/src/sys/OMEGA i386

	
>Description:
	
	
	The man page for sntop mentions an example script 'alarm.sh'
	that is included with sntop but the port doesn't install.

	The attached path make the port install the example files
	included, and also the docs, if the user wants (PORTDOCS)
	
	Finally, I'm volunteering to maintain the port, since it's
	currently unmaintained.
	
>How-To-Repeat:
	
	
>Fix:

	



--- sntop.diff begins here ---
diff -ruN /usr/ports/net/sntop/Makefile sntop/Makefile
--- /usr/ports/net/sntop/Makefile	Thu Feb 26 23:34:27 2004
+++ sntop/Makefile	Mon May 15 10:57:49 2006
@@ -11,17 +11,29 @@
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	sntop
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	fernan@iib.unsam.edu.ar
 COMMENT=	Monitor status of network nodes using fping
 
 RUN_DEPENDS=	${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping
 
 GNU_CONFIGURE=	yes
+DOCS=		COPYING CREDITS ChangeLog INSTALL README TODO
+EXAMPLES=	alarm.sh sntoprc.EXAMPLE
 
 MAN1=		sntop.1
 
 post-install:
 	@${STRIP_CMD} ${PREFIX}/bin/sntop
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for doc in ${DOCS}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
+	@${MKDIR} ${EXAMPLESDIR}
+.for example in ${EXAMPLES}
+	${INSTALL_DATA} ${WRKSRC}/${example} ${EXAMPLESDIR}
+.endfor
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/net/sntop/pkg-plist sntop/pkg-plist
--- /usr/ports/net/sntop/pkg-plist	Sat Sep 16 01:38:19 2000
+++ sntop/pkg-plist	Mon May 15 10:56:33 2006
@@ -1,2 +1,12 @@
 bin/sntop
 etc/sntoprc.sample
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%EXAMPLESDIR%%/alarm.sh
+%%EXAMPLESDIR%%/sntoprc.EXAMPLE
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%EXAMPLESDIR%%
--- sntop.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605151401.k4FE1HGI072318>