aboutsummaryrefslogtreecommitdiff
path: root/net/sntop
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-05-16 16:04:06 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-05-16 16:04:06 +0000
commitba83c18e437c05db901741d8e60715d7bfc69414 (patch)
treef1892b6b86d80d8cdab4ae8921e4cd4a264d5ff0 /net/sntop
parent79d280e478e3e073b7f3fe6c0db24bb34656c9e3 (diff)
downloadports-ba83c18e437c05db901741d8e60715d7bfc69414.tar.gz
ports-ba83c18e437c05db901741d8e60715d7bfc69414.zip
- Install DOCS and EXAMPLES [1]
- Pass maintainership to submitter [1] - Move pkg-message -> files/pkg-message-in and use SUB_FILES PR: ports/97300 Submitted by: Fernan Aguero <fernan at iib.unsam.edu.ar>
Notes
Notes: svn path=/head/; revision=162583
Diffstat (limited to 'net/sntop')
-rw-r--r--net/sntop/Makefile17
-rw-r--r--net/sntop/files/pkg-message.in (renamed from net/sntop/pkg-message)2
-rw-r--r--net/sntop/pkg-plist3
3 files changed, 19 insertions, 3 deletions
diff --git a/net/sntop/Makefile b/net/sntop/Makefile
index a1263975f201..394adce75100 100644
--- a/net/sntop/Makefile
+++ b/net/sntop/Makefile
@@ -9,19 +9,32 @@ PORTNAME= sntop
PORTVERSION= 1.4.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= sntop
+MASTER_SITE_SUBDIR= ${PORTNAME}
-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
+PORTDOCS= COPYING CREDITS ChangeLog INSTALL README TODO
+EXAMPLES= alarm.sh sntoprc.EXAMPLE
+SUB_FILES= pkg-message
MAN1= sntop.1
post-install:
@${STRIP_CMD} ${PREFIX}/bin/sntop
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${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 --git a/net/sntop/pkg-message b/net/sntop/files/pkg-message.in
index ebef148000bc..5038ba649305 100644
--- a/net/sntop/pkg-message
+++ b/net/sntop/files/pkg-message.in
@@ -1,7 +1,7 @@
********************************************************************
A sample configuration file (sntoprc.sample) has been placed in
-$(PREFIX)/etc.
+%%PREFIX%%/etc.
You must edit this file and do one of the following:
for a per-user config: move to ~/.sntoprc
diff --git a/net/sntop/pkg-plist b/net/sntop/pkg-plist
index 4702c4e53d24..d30c6cf40f19 100644
--- a/net/sntop/pkg-plist
+++ b/net/sntop/pkg-plist
@@ -1,2 +1,5 @@
bin/sntop
etc/sntoprc.sample
+%%EXAMPLESDIR%%/alarm.sh
+%%EXAMPLESDIR%%/sntoprc.EXAMPLE
+@dirrm %%EXAMPLESDIR%%