summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorpettai <pettai@pkgsrc.org>2010-03-10 23:37:48 +0000
committerpettai <pettai@pkgsrc.org>2010-03-10 23:37:48 +0000
commita617b7440ed84ae9b0fca8a82d2b0cdb682c43b2 (patch)
treef111a0896abd903b608d17443514b75d44aa037f /net
parentdc6c161ee368c8d3e09fe11c15777af2eea5993a (diff)
downloadpkgsrc-a617b7440ed84ae9b0fca8a82d2b0cdb682c43b2.tar.gz
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.
Diffstat (limited to 'net')
-rw-r--r--net/sysmon/DESCR3
-rw-r--r--net/sysmon/Makefile49
-rw-r--r--net/sysmon/PLIST19
-rw-r--r--net/sysmon/distinfo6
-rw-r--r--net/sysmon/patches/patch-aa33
5 files changed, 110 insertions, 0 deletions
diff --git a/net/sysmon/DESCR b/net/sysmon/DESCR
new file mode 100644
index 00000000000..b1418ae68bb
--- /dev/null
+++ b/net/sysmon/DESCR
@@ -0,0 +1,3 @@
+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.
diff --git a/net/sysmon/Makefile b/net/sysmon/Makefile
new file mode 100644
index 00000000000..5ad1ffd098e
--- /dev/null
+++ b/net/sysmon/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:37:48 pettai Exp $
+#
+
+DISTNAME= sysmon-0.92.2
+CATEGORIES= net
+MASTER_SITES= ftp://puck.nether.net/pub/jared/
+
+MAINTAINER= pettai@NetBSD.org
+HOMEPAGE= http://www.sysmon.org/
+COMMENT= Small and fast network monitoring tool
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+
+BUILD_DEFS+= IPV6_READY
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+EGDIR= ${PREFIX}/share/examples/sysmon
+SMDOC= ${PREFIX}/share/doc/sysmon
+
+CONF_FILES= ${EGDIR}/sysmon.conf.dist \
+ ${PKG_SYSCONFDIR}/sysmon.conf
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKSRC}/autoconf/Makefile.in
+SUBST_STAGE.paths= post-patch
+SUBST_SED.paths= -e 's,@destdir@,${DESTDIR},g'
+
+INSTALLATION_DIRS= share/examples/sysmon
+INSTALLATION_DIRS+= share/doc/sysmon bin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/examples/sysmon.conf.dist ${DESTDIR}${EGDIR}/sysmon.conf.dist
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/README ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/CHANGES ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${SMDOC}
+ ${INSTALL_DATA} ${WRKSRC}/docs/sysmon.conf.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/sysmon.conf.5
+ ${INSTALL_DATA} ${WRKSRC}/docs/sysmon.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/sysmon.8
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/sysmon/PLIST b/net/sysmon/PLIST
new file mode 100644
index 00000000000..80687b5a158
--- /dev/null
+++ b/net/sysmon/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:37:48 pettai Exp $
+bin/sysmon
+bin/sysmond
+man/man5/sysmon.conf.5
+man/man8/sysmon.8
+share/doc/sysmon/CHANGES
+share/doc/sysmon/Changes.html
+share/doc/sysmon/LICENSE
+share/doc/sysmon/README
+share/doc/sysmon/binaries.html
+share/doc/sysmon/config.html
+share/doc/sysmon/docs.html
+share/doc/sysmon/index.html
+share/doc/sysmon/jclient.jpg
+share/doc/sysmon/reporting.xml-spec.txt
+share/doc/sysmon/sysmon.conf.man.html
+share/doc/sysmon/sysmon.jpg
+share/doc/sysmon/sysmon.man.html
+share/examples/sysmon/sysmon.conf.dist
diff --git a/net/sysmon/distinfo b/net/sysmon/distinfo
new file mode 100644
index 00000000000..84b0b9b189d
--- /dev/null
+++ b/net/sysmon/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/10 23:37:48 pettai Exp $
+
+SHA1 (sysmon-0.92.2.tar.gz) = 6853adcc359e5132893fc347723e58829ae7132a
+RMD160 (sysmon-0.92.2.tar.gz) = 7408bfa9a20482e2f0e86dee2566b175b8ecad59
+Size (sysmon-0.92.2.tar.gz) = 495714 bytes
+SHA1 (patch-aa) = ec5ac4a213cdcd1a79f87c7a89b6c687a3b19b56
diff --git a/net/sysmon/patches/patch-aa b/net/sysmon/patches/patch-aa
new file mode 100644
index 00000000000..a1ecb5c7534
--- /dev/null
+++ b/net/sysmon/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/03/10 23:37:48 pettai Exp $
+
+--- autoconf/Makefile.in.orig 2009-12-13 14:50:15.000000000 +0100
++++ autoconf/Makefile.in 2009-12-13 14:52:57.000000000 +0100
+@@ -19,6 +19,7 @@
+ LDFLAGS = @LDFLAGS@
+ RM = /bin/rm -f
+
++destdir = @destdir@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+
+@@ -54,13 +55,13 @@
+ grep SYSM_VERS config.h | mail -s"Sysmon Registration" jared@puck.nether.net
+
+ install: all
+- @echo "installing into @bindir@"
+- -mkdir -p @bindir@
+- -mv @bindir@/sysmond @bindir@/sysmond.old
+- -mv @bindir@/sysmon @bindir@/sysmon.old
+- cp sysmon sysmond @bindir@
+- @echo "creating directory @sysconfdir@"
+- -mkdir -p @sysconfdir@
++ @echo "installing into @destdir@/@bindir@"
++ -mkdir -p @destdir@/@bindir@
++ -mv @destdir@/@bindir@/sysmond @destdir@/@bindir@/sysmond.old
++ -mv @destdir@/@bindir@/sysmon @destdir@/@bindir@/sysmon.old
++ cp sysmon sysmond @destdir@/@bindir@
++ @echo "creating directory @destdir@/@sysconfdir@"
++ -mkdir -p @destdir@/@sysconfdir@
+
+ strip:
+ -strip @PROGS@