ports/97300: [net/sntop] install docs and examples and take maintainership

Fernan Aguero fernan at iib.unsam.edu.ar
Mon May 15 14:14:26 UTC 2006


>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 at 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 at FreeBSD.org
+MAINTAINER=	fernan at 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%%
+ at dirrm %%EXAMPLESDIR%%
--- sntop.diff ends here ---

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



More information about the freebsd-ports-bugs mailing list