Bug 47402

Summary: New Port: net/sysmon
Product: Ports & Packages Reporter: Manuel Kreutz <mk>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Manuel Kreutz 2003-01-23 14:20:01 UTC
NEW port: Sysmon Monitoring System. WWW: http://www.sysmon.org

        Sysmon is a network monitoring tool designed to provide high performance
        and accurate network monitoring. Currently supported protocols include
        SMTP, IMAP, HTTP, TCP, UDP, NNTP, and PING tests.

Fix: 

# This archive contains:
#
#	sysmon
#	sysmon/Makefile
#	sysmon/pkg-comment
#	sysmon/pkg-descr
#	sysmon/distinfo
#	sysmon/pkg-plist
#
echo c - sysmon
mkdir -p sysmon > /dev/null 2>&1
echo x - sysmon/Makefile
sed 's/^X//' >sysmon/Makefile << 'END-of-sysmon/Makefile'
X# New ports collection makefile for: sysmon
X# Date created: 23 January 2003
X# Whom: Manuel Kreutz <mk@nomtec.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sysmon
XPORTVERSION=	0.91.14
XCATEGORIES=	net
XMASTER_SITES=	ftp://puck.nether.net/pub/jared/
X
XMAINTAINER=mk@nomtec.net
X
Xdo-install:
X	@${INSTALL_DATA} \
X		${WRKSRC}/examples/sysmon.conf.dist ${PREFIX}/local/etc/sysmon.conf.example
X
X	@${INSTALL_MAN} ${WRKSRC}/docs/sysmon.man ${PREFIX}/man/man8/sysmon.8
X	@${INSTALL_MAN} ${WRKSRC}/docs/sysmon.conf.man ${PREFIX}/man/man8/sysmon.conf.8
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/Changes.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/binaries.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/config.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/docs.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/index.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/jclient.jpg ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/net-example.png ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/sysmon.conf.man.html ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/sysmon.jpg ${PREFIX}/share/doc/sysmon
X	@${INSTALL_DATA} ${WRKSRC}/docs/sysmon.man.html ${PREFIX}/share/doc/sysmon
X.endif
X
X.include <bsd.port.mk>
END-of-sysmon/Makefile
echo x - sysmon/pkg-comment
sed 's/^X//' >sysmon/pkg-comment << 'END-of-sysmon/pkg-comment'
XA network tool designed for high performance and accurate monitoring
END-of-sysmon/pkg-comment
echo x - sysmon/pkg-descr
sed 's/^X//' >sysmon/pkg-descr << 'END-of-sysmon/pkg-descr'
XSysmon is a network monitoring tool designed to provide high
Xperformance and accurate network monitoring.
X
XThis tool is available in the public domain for anyone to use
Xit that is interested. It provides better performance and
Xchecking capabilities than other tools such as Rover, Nocmon
X(not this: Nocmonitor),Whatsup, Big Brother, and other such tools.
X
XCurrently supported protocols include SMTP, IMAP, HTTP,TCP,
XUDP, NNTP, and PING tests.
X
XWWW: http://www.sysmon.org/
END-of-sysmon/pkg-descr
echo x - sysmon/distinfo
sed 's/^X//' >sysmon/distinfo << 'END-of-sysmon/distinfo'
XMD5 (sysmon-0.91.14.tar.gz) = 38ddb1219a4f95c8cf6bb4de805d4af6
END-of-sysmon/distinfo
echo x - sysmon/pkg-plist
sed 's/^X//' >sysmon/pkg-plist << 'END-of-sysmon/pkg-plist'
Xbin/sysmond
Xbin/sysmond.old
Xbin/sysmon
Xbin/sysmon.old
Xetc/sysmon.conf.example
X/usr/share/doc/sysmon
X/usr/share/doc/sysmon/Changes.html
X/usr/share/doc/sysmon/binaries.html
X/usr/share/doc/sysmon/config.html
X/usr/share/doc/sysmon/docs.html
X/usr/share/doc/sysmon/index.html
X/usr/share/doc/sysmon/jclient.jpg
X/usr/share/doc/sysmon/net-example.png
X/usr/share/doc/sysmon/sysmon.conf.man.html
X/usr/share/doc/sysmon/sysmon.jpg
X/usr/share/doc/sysmon/sysmon.man.html
X@unexec rm -f %D/bin/sysmond %D/bin/sysmond.old %D/bin/sysmon %D/bin/sysmon.old
X@dirrm share/doc/sysmon
END-of-sysmon/pkg-plist
exit
Comment 1 corecode@corecode.ath.cx 2003-01-23 23:42:30 UTC
Lately Manuel Kreutz told:

> sed 's/^X//' >sysmon/Makefile << 'END-of-sysmon/Makefile'
[...]
> X	@${INSTALL_MAN} ${WRKSRC}/docs/sysmon.man ${PREFIX}/man/man8/sysmon.8
> X	@${INSTALL_MAN} ${WRKSRC}/docs/sysmon.conf.man ${PREFIX}/man/man8/sysmon.conf.8

use ${MANPREFIX}?

> X.if !defined(NOPORTDOCS)
> X	@${MKDIR} ${PREFIX}/share/doc/sysmon

${DOCSDIR}?

> X	@${INSTALL_DATA} ${WRKSRC}/docs/Changes.html ${PREFIX}/share/doc/sysmon
[...]
> X	@${INSTALL_DATA} ${WRKSRC}/docs/sysmon.man.html ${PREFIX}/share/doc/sysmon

use:
@for f in ${WRKSRC}/docs/*; do ${INSTALL_DATA} $$f ${DOCSDIR}
or:
.for f in <listoffiles>
	${INSTALL_DATA} $f ${DOCSDIR}
.endfor
?

> sed 's/^X//' >sysmon/pkg-plist << 'END-of-sysmon/pkg-plist'
> Xbin/sysmond
> Xbin/sysmond.old

wot?

> Xbin/sysmon
> Xbin/sysmon.old

dito

[...]
> X@unexec rm -f %D/bin/sysmond %D/bin/sysmond.old %D/bin/sysmon %D/bin/sysmon.old

what's that?


cheers
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Comment 2 Oliver Lehmann freebsd_committer freebsd_triage 2003-07-25 23:08:47 UTC
State Changed
From-To: open->closed

Committed a slightly modified version, Thanks!