pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/net-snmp As this package already has a runtime dep...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6da769605aaa
branches:  trunk
changeset: 482914:6da769605aaa
user:      seb <seb%pkgsrc.org@localhost>
date:      Fri Nov 05 10:33:07 2004 +0000

description:
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:

 net/net-snmp/Makefile      |  17 +++++++++++++++--
 net/net-snmp/buildlink3.mk |   4 ++--
 2 files changed, 17 insertions(+), 4 deletions(-)

diffs (65 lines):

diff -r 6b72c35ff895 -r 6da769605aaa net/net-snmp/Makefile
--- a/net/net-snmp/Makefile     Fri Nov 05 10:19:10 2004 +0000
+++ b/net/net-snmp/Makefile     Fri Nov 05 10:33:07 2004 +0000
@@ -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 @@
 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 @@
 # 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 @@
 OWN_DIRS=      ${PREFIX}/share/snmp
 RCD_SCRIPTS=   snmpd snmptrapd
 
+.include "../../lang/perl5/module.mk"
 .include "../../lang/perl5/buildlink3.mk"
 
 post-buildlink:
diff -r 6b72c35ff895 -r 6da769605aaa net/net-snmp/buildlink3.mk
--- a/net/net-snmp/buildlink3.mk        Fri Nov 05 10:19:10 2004 +0000
+++ b/net/net-snmp/buildlink3.mk        Fri Nov 05 10:33:07 2004 +0000
@@ -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 @@
 
 .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
 



Home | Main Index | Thread Index | Old Index