aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/mbrowse/Makefile19
-rw-r--r--net-mgmt/mbrowse/distinfo2
-rw-r--r--net-mgmt/mbrowse/pkg-descr2
-rw-r--r--net/mbrowse/Makefile19
-rw-r--r--net/mbrowse/distinfo2
-rw-r--r--net/mbrowse/pkg-descr2
6 files changed, 30 insertions, 16 deletions
diff --git a/net-mgmt/mbrowse/Makefile b/net-mgmt/mbrowse/Makefile
index 74519cc3bcf8..8626c7ba3d39 100644
--- a/net-mgmt/mbrowse/Makefile
+++ b/net-mgmt/mbrowse/Makefile
@@ -6,21 +6,28 @@
#
PORTNAME= mbrowse
-PORTVERSION= 0.2.3
+PORTVERSION= 0.3.0
CATEGORIES= net
-MASTER_SITES= http://goldplated.atlcartel.com/
+MASTER_SITES= http://www.kill-9.org/mbrowse/
MAINTAINER= markp@FreeBSD.org
+.if defined(WITH_NET_SNMP4)
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/net-snmp4
+.else
+LIB_DEPENDS= netsnmp.5:${PORTSDIR}/net/net-snmp
+.endif
GNU_CONFIGURE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
-CONFIGURE_ARGS+= --with-ucdsnmp-prefix=${LOCALBASE}
+CONFIGURE_ARGS+= --with-snmp-prefix=${LOCALBASE}
-post-patch:
- @${PERL} -pi -e 'print "#include <sys/types.h>\n" if !$$a; $$a=1' \
- ${WRKSRC}/src/callbacks.h
+.if defined(WITH_NET_SNMP4)
+CONFIGURE_ARGS+= --with-snmp-type=ucd
+.else
+CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --with-snmp-type=net
+.endif
.include <bsd.port.mk>
diff --git a/net-mgmt/mbrowse/distinfo b/net-mgmt/mbrowse/distinfo
index 5d22dd93043c..b26cb87ade63 100644
--- a/net-mgmt/mbrowse/distinfo
+++ b/net-mgmt/mbrowse/distinfo
@@ -1 +1 @@
-MD5 (mbrowse-0.2.3.tar.gz) = be4e56cd7bd1293d68e71856a674c267
+MD5 (mbrowse-0.3.0.tar.gz) = f32e8481115b3051973414a24e5505bc
diff --git a/net-mgmt/mbrowse/pkg-descr b/net-mgmt/mbrowse/pkg-descr
index 2e52feaea63e..8f2851e03c8b 100644
--- a/net-mgmt/mbrowse/pkg-descr
+++ b/net-mgmt/mbrowse/pkg-descr
@@ -1,3 +1,3 @@
Mbrowse is a GUI MIB browser and query tool based on GTK and Net-SNMP.
-WWW: http://goldplated.atlcartel.com/mbrowse.html
+WWW: http://www.kill-9.org/mbrowse/
diff --git a/net/mbrowse/Makefile b/net/mbrowse/Makefile
index 74519cc3bcf8..8626c7ba3d39 100644
--- a/net/mbrowse/Makefile
+++ b/net/mbrowse/Makefile
@@ -6,21 +6,28 @@
#
PORTNAME= mbrowse
-PORTVERSION= 0.2.3
+PORTVERSION= 0.3.0
CATEGORIES= net
-MASTER_SITES= http://goldplated.atlcartel.com/
+MASTER_SITES= http://www.kill-9.org/mbrowse/
MAINTAINER= markp@FreeBSD.org
+.if defined(WITH_NET_SNMP4)
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/net-snmp4
+.else
+LIB_DEPENDS= netsnmp.5:${PORTSDIR}/net/net-snmp
+.endif
GNU_CONFIGURE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
-CONFIGURE_ARGS+= --with-ucdsnmp-prefix=${LOCALBASE}
+CONFIGURE_ARGS+= --with-snmp-prefix=${LOCALBASE}
-post-patch:
- @${PERL} -pi -e 'print "#include <sys/types.h>\n" if !$$a; $$a=1' \
- ${WRKSRC}/src/callbacks.h
+.if defined(WITH_NET_SNMP4)
+CONFIGURE_ARGS+= --with-snmp-type=ucd
+.else
+CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --with-snmp-type=net
+.endif
.include <bsd.port.mk>
diff --git a/net/mbrowse/distinfo b/net/mbrowse/distinfo
index 5d22dd93043c..b26cb87ade63 100644
--- a/net/mbrowse/distinfo
+++ b/net/mbrowse/distinfo
@@ -1 +1 @@
-MD5 (mbrowse-0.2.3.tar.gz) = be4e56cd7bd1293d68e71856a674c267
+MD5 (mbrowse-0.3.0.tar.gz) = f32e8481115b3051973414a24e5505bc
diff --git a/net/mbrowse/pkg-descr b/net/mbrowse/pkg-descr
index 2e52feaea63e..8f2851e03c8b 100644
--- a/net/mbrowse/pkg-descr
+++ b/net/mbrowse/pkg-descr
@@ -1,3 +1,3 @@
Mbrowse is a GUI MIB browser and query tool based on GTK and Net-SNMP.
-WWW: http://goldplated.atlcartel.com/mbrowse.html
+WWW: http://www.kill-9.org/mbrowse/