ports/147727: net-mgmt/net-snmp Add install python bindings option.
Kamil Derynski
kamil at derynski.net
Wed Jun 9 16:00:16 UTC 2010
>Number: 147727
>Category: ports
>Synopsis: net-mgmt/net-snmp Add install python bindings option.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 09 16:00:15 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kamil Derynski
>Release: 8.0-RELEASE
>Organization:
>Environment:
FreeBSD bsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
>How-To-Repeat:
>Fix:
I have added simple patch for original Makefile.
--- Makefile.orig 2010-06-09 10:51:44.000000000 +0200
+++ Makefile 2010-06-09 17:01:22.000000000 +0200
@@ -21,7 +21,8 @@
PERL_EMBEDDED "Build embedded perl" on \
DUMMY "Enable dummy values as placeholders" on \
TKMIB "Install graphical MIB browser" off \
- DMALLOC "Enable dmalloc debug memory allocator" off
+ DMALLOC "Enable dmalloc debug memory allocator" off \
+ PYTHON "Install python bindings" off
MAKE_JOBS_UNSAFE= yes
@@ -60,6 +61,12 @@
PLIST_SUB+= WITH_TKMIB=""
.endif
+.if defined(WITH_PYTHON)
+CONFIGURE_ARGS+=--with-python-modules
+BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
+BUILD_DEPENDS+= python:${PORTSDIR}/lang/python
+.endif
+
.if defined(WITH_PERL)
USE_PERL5= yes
CONFIGURE_ARGS+=--with-perl-modules
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list