summaryrefslogtreecommitdiff
path: root/net/net-snmp
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-11-05 10:33:07 +0000
committerseb <seb@pkgsrc.org>2004-11-05 10:33:07 +0000
commitb50cefc57aeeaf276bb6ad58df3d7895f1b5de0b (patch)
tree7f994792466bf20f8203f28dfdfea5f842a96786 /net/net-snmp
parente6e425ab8a7c4c264d0defdae99981314b0d7d0e (diff)
downloadpkgsrc-b50cefc57aeeaf276bb6ad58df3d7895f1b5de0b.tar.gz
As this package already has a runtime dependency on Perl we might
as well enable the build and installation of the Perl modules. An added benefit is that the sister package net/p5-SNMP won't be lagging anymore as it will be removed. While here add support for test target. Bump PKGREVISION.
Diffstat (limited to 'net/net-snmp')
-rw-r--r--net/net-snmp/Makefile17
-rw-r--r--net/net-snmp/buildlink3.mk4
2 files changed, 17 insertions, 4 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index 0d82cdacf8d..ba4dcdf61db 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2004/10/03 00:17:55 tv Exp $
+# $NetBSD: Makefile,v 1.25 2004/11/05 10:33:07 seb Exp $
DISTNAME= net-snmp-5.1.2
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} \
ftp://ftp.net-smnp.org/pub/sourceforge/net-snmp/
@@ -24,6 +24,12 @@ NET_SNMP_MIBDIRS?= \$$HOME/.snmp/mibs:${PREFIX}/share/snmp/mibs:${PREFIX}/lib/t
USE_BUILDLINK3= yes
USE_LIBTOOL= yes
+# The self-test of Perl modules only works after installation because perl
+# can't load the shared libraries from WRKSRC/
+# Until this is fixed you can test them after installation by doing
+# `make test TEST_TARGET=perltest'
+TEST_TARGET?= test
+
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
@@ -80,6 +86,12 @@ CONFIGURE_ARGS+= --with-dummy-values
# older software to use net-snmp.
#
CONFIGURE_ARGS+= --enable-ucd-snmp-compatibility
+#
+# Enable the perl modules build and installation
+#
+CONFIGURE_ARGS+= --with-perl-modules=${MAKE_PARAMS:Q}
+PERL5_CONFIGURE= NO
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Bundle/NetSNMP/.packlist
.if (${OPSYS} == "NetBSD") || !exists(/usr/bin/lpstat)
CONFIGURE_ENV+= ac_cv_path_LPSTAT_PATH=no
@@ -96,6 +108,7 @@ OSVERSION_SPECIFIC= YES
OWN_DIRS= ${PREFIX}/share/snmp
RCD_SCRIPTS= snmpd snmptrapd
+.include "../../lang/perl5/module.mk"
.include "../../lang/perl5/buildlink3.mk"
post-buildlink:
diff --git a/net/net-snmp/buildlink3.mk b/net/net-snmp/buildlink3.mk
index cad7ae0a085..c018ff3945e 100644
--- a/net/net-snmp/buildlink3.mk
+++ b/net/net-snmp/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2004/10/03 00:17:56 tv Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2004/11/05 10:33:07 seb Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
NET_SNMP_BUILDLINK3_MK:= ${NET_SNMP_BUILDLINK3_MK}+
@@ -12,7 +12,7 @@ BUILDLINK_PACKAGES+= net-snmp
.if !empty(NET_SNMP_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.net-snmp+= net-snmp>=5.0.9nb3
-BUILDLINK_RECOMMENDED.net-snmp+= net-snmp>=5.1.2nb1
+BUILDLINK_RECOMMENDED.net-snmp+= net-snmp>=5.1.2nb2
BUILDLINK_PKGSRCDIR.net-snmp?= ../../net/net-snmp
.endif # NET_SNMP_BUILDLINK3_MK