diff options
author | seb <seb> | 2004-11-05 10:33:07 +0000 |
---|---|---|
committer | seb <seb> | 2004-11-05 10:33:07 +0000 |
commit | 86c53019bbb9126eae6ae1b0f0295b3ed44afcaf (patch) | |
tree | 7f994792466bf20f8203f28dfdfea5f842a96786 /net/net-snmp | |
parent | 7d83a1ebf65847b68bc922d4dc744e056468c37a (diff) | |
download | pkgsrc-86c53019bbb9126eae6ae1b0f0295b3ed44afcaf.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/Makefile | 17 | ||||
-rw-r--r-- | net/net-snmp/buildlink3.mk | 4 |
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 |