ports/171818: Please add option for Python-integration to sysutils/bacula-server

Florian Ermisch floh.edo at googlemail.com
Thu Sep 20 18:40:04 UTC 2012


>Number:         171818
>Category:       ports
>Synopsis:       Please add option for Python-integration to sysutils/bacula-server
>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:   Thu Sep 20 18:40:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Florian Ermisch
>Release:        9.0
>Organization:
>Environment:
FreeBSD mizar.fokus.fraunhofer.de 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Bacula has a compile-time option to use Python-scripting but the current port's Makefile has no option to switch this feature on.
>How-To-Repeat:
Try to use scripting in a Bacula-server built from the FreeBSD-ports.
>Fix:
The attached patch to the Makefile adds an option to enable Python-integration (the default is 'off').
I ran portlint and already solved one bug I added. The other things portlint complains about aren't my fault ^^".

Patch attached with submission follows:

--- Makefile_bak        2012-09-19 15:35:35.000000000 +0200
+++ Makefile    2012-09-20 20:17:42.000000000 +0200
@@ -88,6 +88,7 @@
 OPTIONS+=      MYSQL "Use MySQL database" off
 OPTIONS+=      POSTGRESQL "Use PostgreSQL database" off
 OPTIONS+=      MTX "Install mtx for control of autochanger devices" off
+OPTIONS+=      PYTHON "Enable Python scripting in the director" off
 .endif
 OPTIONS+=      NLS "Native Language Support via gettext utilities" on
 OPTIONS+=      OPENSSL "Enable OpenSSL for encrypted communication" on
@@ -109,6 +110,11 @@
                BACULA_GID=${BACULA_GID} \
                BACULA_DIR=${BACULA_DIR}
 
+.if defined(WITH_PYTHON)
+USE_PYTHON=    2.5+
+CONFIGURE_ARGS+=       --with-python=${LOCALBASE}
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if !defined(WITHOUT_NLS)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list