1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 2.75.

- Fix the location printed post install, it should be PREFIX, not LOCALBASE.

PR:		ports/109243
Submitted by:	Ulrich Spoerlein <uspoerlein@gmail.com> (maintainer)
This commit is contained in:
Alejandro Pulver 2007-02-18 18:41:03 +00:00
parent aa88ef5523
commit 42d146bf96
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185462
7 changed files with 9 additions and 86 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= symon
PORTVERSION= 2.72
PORTREVISION= 2
PORTVERSION= 2.75
CATEGORIES= sysutils
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/

View File

@ -1,3 +1,3 @@
MD5 (symon-2.72.tar.gz) = c88eeb4c7fb1c99e7d4448a8c3977bb2
SHA256 (symon-2.72.tar.gz) = b91a084ad6e8d91cd8c01a01a56a88e97e6a42f2036cdd844206ca5ff1f88bf1
SIZE (symon-2.72.tar.gz) = 82218
MD5 (symon-2.75.tar.gz) = 6b50d7ec1bf57ad1c184ac2300f5967d
SHA256 (symon-2.75.tar.gz) = ba0480020e4077895feb7426e869b426b3875a3f883b5b658e4583fcd09c79b1
SIZE (symon-2.75.tar.gz) = 92160

View File

@ -1,14 +0,0 @@
--- platform/FreeBSD/platform.h.orig Fri Oct 21 16:58:43 2005
+++ platform/FreeBSD/platform.h Fri Dec 2 12:03:04 2005
@@ -4,8 +4,10 @@
#define _CONF_FREEBSD_H
#include <sys/queue.h>
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <sys/dkstat.h>
#include <sys/resource.h>
#include <net/if.h>

View File

@ -1,18 +0,0 @@
--- platform/FreeBSD/sm_mem.c.orig Mon Mar 27 06:06:18 2006
+++ platform/FreeBSD/sm_mem.c Mon Mar 27 06:45:54 2006
@@ -131,12 +131,12 @@
}
for (i = 0; i < vmnswp_dat; i++) {
struct xswdev vmiswp_dat;
- int vmiswp_siz;
+ int vmiswp_siz = sizeof vmiswp_dat;
me_vmiswp_mib_nam[me_vmiswp_mib_len] = i;
if (sysctl(me_vmiswp_mib_nam, me_vmiswp_mib_len + 1, &vmiswp_dat, (void *)&vmiswp_siz, NULL, 0) < 0)
continue;
- me_stats[3] += (vmiswp_dat.xsw_used * DEV_BSIZE);
- me_stats[4] += (vmiswp_dat.xsw_nblks * DEV_BSIZE);
+ me_stats[3] += pagetob(vmiswp_dat.xsw_used);
+ me_stats[4] += pagetob(vmiswp_dat.xsw_nblks);
}
#endif

View File

@ -1,15 +0,0 @@
--- platform/FreeBSD/sm_pf.c.orig Fri Dec 2 12:06:20 2005
+++ platform/FreeBSD/sm_pf.c Fri Dec 2 12:06:38 2005
@@ -73,6 +73,12 @@
fatal("pf support not available");
}
+void
+gets_pf()
+{
+ fatal("pf support not available");
+}
+
int
get_pf(char *symon_buf, int maxlen, struct stream *st)
{

View File

@ -1,29 +0,0 @@
--- platform/FreeBSD/sm_io.c.orig Sat Nov 12 20:16:41 2005
+++ platform/FreeBSD/sm_io.c Sat Nov 12 20:17:10 2005
@@ -80,7 +80,7 @@
void
gets_io()
{
-#if DEVSTAT_USER_API_VER == 5
+#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
io_numdevs = devstat_getnumdevs(NULL);
#else
io_numdevs = getnumdevs();
@@ -97,7 +97,7 @@
/* clear the devinfo struct, as getdevs expects it to be all zeroes */
bzero(io_stats.dinfo, sizeof(struct devinfo));
-#if DEVSTAT_USER_API_VER == 5
+#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
devstat_getdevs(NULL, &io_stats);
#else
getdevs(&io_stats);
@@ -117,7 +117,7 @@
strlen(ds->device_name) < strlen(st->arg) &&
isdigit(st->arg[strlen(ds->device_name)]) &&
atoi(&st->arg[strlen(ds->device_name)]) == ds->unit_number) {
-#if DEVSTAT_USER_API_VER == 5
+#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
return snpack(symon_buf, maxlen, st->arg, MT_IO2,
ds->operations[DEVSTAT_READ],
ds->operations[DEVSTAT_WRITE],

View File

@ -1,15 +1,15 @@
For the system monitor symon, use the following steps
1. Copy %%LOCALBASE%%/share/examples/symon/symon.conf
to %%LOCALBASE%%/etc and edit.
1. Copy %%PREFIX%%/share/examples/symon/symon.conf
to %%PREFIX%%/etc and edit.
2. Run symon
For the data collector symux, use the following steps
1. Copy %%LOCALBASE%%/share/examples/symon/symux.conf
to %%LOCALBASE%%/etc and edit.
1. Copy %%PREFIX%%/share/examples/symon/symux.conf
to %%PREFIX%%/etc and edit.
2. Enter the directory, where symux should store its data
(e.g. /var/db/symux) and run
%%LOCALBASE%%/share/symon/c_smrrds.sh all
%%PREFIX%%/share/symon/c_smrrds.sh all
to create the RR database.
3. Run symux