pkgsrc-Users archive

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

sysutils/bacula python support



The dvd-handler needs python, so I created this patch to add python support. 
Can someone look over it and if it's good enough also commit it?
--- options.mk.orig     2006-02-03 09:18:45.000000000 +0100
+++ options.mk  2007-02-12 00:36:02.000000000 +0100
@@ -4,6 +4,7 @@
 PKG_OPTIONS_REQUIRED_GROUPS=   database
 PKG_OPTIONS_GROUP.database=    catalog-sqlite catalog-sqlite3 catalog-pgsql 
catalog-mysql
 PKG_SUGGESTED_OPTIONS=         catalog-sqlite
+PKG_SUPPORTED_OPTIONS=         python
 
 .include "../../mk/bsd.options.mk"
 
@@ -24,3 +25,14 @@
 CONFIGURE_ARGS+=       --with-mysql=${PREFIX:Q}
 BACULA_DB=             mysql
 .endif
+
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+=       --with-python=${LOCALBASE}/${PYINC}
+.  include "../../lang/python/application.mk"
+.  include "${PYPKGSRCDIR}/buildlink3.mk"
+SUBST_CLASSES+=                python
+SUBST_MESSAGE.python=  Fixing Python command name.
+SUBST_STAGE.python=    post-configure
+SUBST_FILES.python=    scripts/dvd-handler
+SUBST_SED.python=      -e '1s,^\#!.*,\#! ${PYTHONBIN},'
+.endif

Attachment: pgpQ7tMRdkvY_.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index