pkgsrc-Users archive

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

net/net-snmp/ run/build depends on lang/perl/ using options.mk




I think we need PKG_OPTIONS.net-snmp+= "-perl" in options.mk to make the current Perl modle conditions entirely optional. With a few tweaks to Makefile, Net-SNMP does not build-depend or run-depend at all against Perl, which is nice, because the Net-SNMP agent is the type of package you'll want to use on a low-CPU/Mem/Storage/resource embedded appliance that doesn't have room for the 50+MB that Perl requires.

I'll submit a patch if I have time this weekend.

~BAS

---

# cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/net-snmp/Makefile,v
retrieving revision 1.50
diff -u -r1.50 Makefile
--- Makefile    6 Jul 2006 18:13:08 -0000       1.50
+++ Makefile    27 Jul 2006 20:16:35 -0000
@@ -77,13 +77,14 @@
 # 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=                auto/Bundle/NetSNMP/.packlist
-CONFIGURE_ENV+=                PERLPROG=${PERL5:Q}
+
+### #
+### # Enable the perl modules build and installation
+### #
+### CONFIGURE_ARGS+=   --with-perl-modules=${MAKE_PARAMS:Q}
+### PERL5_CONFIGURE=   NO
+### PERL5_PACKLIST=            auto/Bundle/NetSNMP/.packlist
+### CONFIGURE_ENV+=            PERLPROG=${PERL5:Q}

 .include "options.mk"

@@ -113,6 +114,6 @@
        ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf                          \
                ${PREFIX}/share/examples/net-snmp/EXAMPLE.conf

-.include "../../lang/perl5/module.mk"
+#.include "../../lang/perl5/module.mk"
 .include "../../security/tcp_wrappers/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


l8*
        -lava (Brian A. Seklecki - Pittsburgh, PA, USA)

"...back in the heady days when "Helpdesk" meant nothing, "diskquota"
meant everything, and lives could be bought and sold for a couple of pages
of laser printout - And frequently were."



Home | Main Index | Thread Index | Old Index