summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2018-11-07 10:02:00 +0000
committerMichael Landin <mich@FreeBSD.org>2018-11-07 10:02:00 +0000
commit266495ae1ca8e417c22d01644daa28cb0c4938ce (patch)
treea39159b9a38ea4f0d595338865768f482db55c44
parent- Update WWW (diff)
- fix build on 12.x (remove obsolete network support / IFM_FDDI)
- add LICENSE - update patch format to make portlint happy - bump port revision Reported by: pkg-fallout@
Notes
Notes: svn path=/head/; revision=484392
-rw-r--r--net/slurm/Makefile3
-rw-r--r--net/slurm/files/patch-os.h4
-rw-r--r--net/slurm/files/patch-src_if__media.c27
3 files changed, 30 insertions, 4 deletions
diff --git a/net/slurm/Makefile b/net/slurm/Makefile
index f1f9392a559b..2f48e9da675b 100644
--- a/net/slurm/Makefile
+++ b/net/slurm/Makefile
@@ -3,6 +3,7 @@
PORTNAME= slurm
PORTVERSION= 0.3.3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.wormulon.net/files/slurm/ \
http://www.raisdorf.net/files/slurm/
@@ -10,6 +11,8 @@ MASTER_SITES= http://www.wormulon.net/files/slurm/ \
MAINTAINER= mich@FreeBSD.org
COMMENT= Generic network load monitor
+LICENSE= GPLv2+
+
LDFLAGS+= -lncurses
GNU_CONFIGURE= yes
diff --git a/net/slurm/files/patch-os.h b/net/slurm/files/patch-os.h
index 17396edb46cf..57783fd0e15d 100644
--- a/net/slurm/files/patch-os.h
+++ b/net/slurm/files/patch-os.h
@@ -1,5 +1,5 @@
---- os.h.orig 2009-09-25 02:57:02.000000000 +0200
-+++ os.h 2009-09-25 03:06:20.000000000 +0200
+--- os.h.orig 2004-10-12 19:55:58 UTC
++++ os.h
@@ -92,10 +92,6 @@
#include <net/if_media.h>
#include <net/if_mib.h>
diff --git a/net/slurm/files/patch-src_if__media.c b/net/slurm/files/patch-src_if__media.c
index d7da6b15e515..f64c4f8a1581 100644
--- a/net/slurm/files/patch-src_if__media.c
+++ b/net/slurm/files/patch-src_if__media.c
@@ -1,6 +1,6 @@
---- src/if_media.c.orig
+--- src/if_media.c.orig 2004-09-27 13:08:59 UTC
+++ src/if_media.c
-@@ -95,8 +95,13 @@
+@@ -95,8 +95,13 @@ int get_if_speed (char *ifstring)
*
*/
@@ -14,3 +14,26 @@
#ifdef MEDIADEBUG
printf(" all: %6d\n", ifmr.ifm_current);
+@@ -160,22 +165,6 @@ int get_if_speed (char *ifstring)
+ break;
+ } /* end switch physical */
+ break;
+- /* FDDI interfaces */
+- /* fpa doesn't seem to support SIOCGIFMEDIA on FreeBSD
+- * so we won't get here but anyway ...
+- */
+- case IFM_FDDI:
+- switch (physical)
+- {
+- case IFM_FDDI_SMF:
+- case IFM_FDDI_MMF:
+- case IFM_FDDI_UTP:
+- speed = 100 * 1000;
+- break;
+- default:
+- speed = ERR_IFACE_NO_SPEED;
+- }
+- break;
+ #if WIRELESS
+ /* IEEE 802.11 wireless interfaces */
+ case IFM_IEEE80211: