Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2010 15:57:48 GMT
From:      Kamil Derynski <kamil@derynski.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/147727: net-mgmt/net-snmp Add install python bindings option.
Message-ID:  <201006091557.o59FvmS1017193@www.freebsd.org>
Resent-Message-ID: <201006091600.o59G0FI9023448@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006091557.o59FvmS1017193>