diff options
author | hubertf <hubertf> | 2010-03-09 22:52:56 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2010-03-09 22:52:56 +0000 |
commit | a186e4d6cbb7d373772f6b3e494d1219593c63ae (patch) | |
tree | f5f9ca2606abfa31b5f294d18f5642ccdcd48727 /net/net-snmp | |
parent | d3bcbd3b24f099a8dcf2bff3a8975ea68b4d29ba (diff) | |
download | pkgsrc-a186e4d6cbb7d373772f6b3e494d1219593c63ae.tar.gz |
Add perl as an option, defaulting to on
Bump revision
OK adam@
Diffstat (limited to 'net/net-snmp')
-rw-r--r-- | net/net-snmp/Makefile | 22 | ||||
-rw-r--r-- | net/net-snmp/options.mk | 27 |
2 files changed, 29 insertions, 20 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 24e7111ca19..04dc44b7f44 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.78 2009/08/30 02:21:58 obache Exp $ +# $NetBSD: Makefile,v 1.79 2010/03/09 22:52:56 hubertf Exp $ DISTNAME= net-snmp-5.4.2.1 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} @@ -21,14 +21,10 @@ MAKE_JOBS_SAFE= NO MAKE_ENV+= OPSYS=${OPSYS} -# 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 - .include "../../mk/bsd.prefs.mk" +.include "options.mk" + .if ${OPSYS} == "DragonFly" MAKE_ENV+= MIB_SYSTEM_LIBS=-lkinfo .endif @@ -98,15 +94,6 @@ CONFIGURE_ARGS+= --with-dummy-values # older software to use net-snmp. # CONFIGURE_ARGS+= --enable-ucd-snmp-compatibility -# -# Enable the perl modules build and installation -# -PERL5_CONFIGURE= no -PERL5_PACKLIST= auto/Bundle/NetSNMP/.packlist -CONFIGURE_ARGS+= --with-perl-modules=${MAKE_PARAMS:Q} -CONFIGURE_ENV+= PERLPROG=${PERL5:Q} - -.include "options.mk" # Handle ${PREFIX}/share/snmp in the DEINSTALL script since it may contain # leftover config files or pidfiles after deinstallation. @@ -139,6 +126,5 @@ post-install: ${INSTALL_SCRIPT} ${WRKSRC}/agent/snmp_perl.pl \ ${DESTDIR}${PREFIX}/share/snmp/ -.include "../../lang/perl5/module.mk" .include "../../security/tcp_wrappers/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/net-snmp/options.mk b/net/net-snmp/options.mk index e6da67b04e6..85a93cb4943 100644 --- a/net/net-snmp/options.mk +++ b/net/net-snmp/options.mk @@ -1,7 +1,8 @@ -# $NetBSD: options.mk,v 1.8 2009/03/18 22:50:28 adrianp Exp $ +# $NetBSD: options.mk,v 1.9 2010/03/09 22:52:56 hubertf Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.net-snmp -PKG_SUPPORTED_OPTIONS= ssl snmp-unprived snmp-nokmem +PKG_SUPPORTED_OPTIONS= ssl snmp-unprived snmp-nokmem perl +PKG_SUGGESTED_OPTIONS= perl .include "../../mk/bsd.prefs.mk" @@ -34,3 +35,25 @@ CONFIGURE_ARGS+= --without-kmem-usage .if !empty(PKG_OPTIONS:Msnmp-unprived) CONFIGURE_ARGS+= --without-root-access .endif + +.if !empty(PKG_OPTIONS:Mperl) +# 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 + +# Enable the perl modules build and installation +# +PERL5_CONFIGURE= no +PERL5_PACKLIST= auto/Bundle/NetSNMP/.packlist +CONFIGURE_ARGS+= --with-perl-modules=${MAKE_PARAMS:Q} +CONFIGURE_ENV+= PERLPROG=${PERL5:Q} +USE_TOOLS+=perl + +.include "../../lang/perl5/module.mk" +.else # !perl +CONFIGURE_ARGS+= --enable-embedded-perl=no +CONFIGURE_ARGS+= --enable-perl-cc-checks=no +CONFIGURE_ARGS+= --with-perl-modules=no +.endif # perl |