make it possible to install for different python versions

ok and help from mbalmer@ and simon@
This commit is contained in:
winiger 2008-01-11 09:03:16 +00:00
parent bb7b167e19
commit 0c342d1da1
5 changed files with 56 additions and 37 deletions

View File

@ -1,17 +1,20 @@
# $OpenBSD: Makefile,v 1.15 2007/10/08 08:22:39 steven Exp $
# $OpenBSD: Makefile,v 1.16 2008/01/11 09:03:16 winiger Exp $
SHARED_ONLY= Yes
SHARED_ONLY= Yes
COMMENT= LDAP client API for Python
COMMENT-main= LDAP client API for Python
COMMENT-examples= example programs for the LDAP client API for Python
V= 2.2.0
DISTNAME= python-ldap-${V}
PKGNAME= py-ldap-${V}p0
CATEGORIES= databases
V= 2.2.0
DISTNAME= python-ldap-${V}
PKGNAME-main= py-ldap-${V}p1
FULLPKGNAME-examples= py-ldap-examples-${V}
HOMEPAGE= http://python-ldap.sourceforge.net/
CATEGORIES= databases
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
HOMEPAGE= http://python-ldap.sourceforge.net/
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
# Python
PERMIT_PACKAGE_FTP= Yes
@ -19,20 +22,32 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB= crypto ssl
WANTLIB-main= crypto ssl
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
LIB_DEPENDS= ldap_r.>=7,lber.>=7::databases/openldap \
sasl2.>=2::security/cyrus-sasl2
LIB_DEPENDS-main= ldap_r.>=7,lber.>=7::databases/openldap \
sasl2.>=2::security/cyrus-sasl2
MODULES= lang/python
FLAVORS= python2.4 python2.5
FLAVOR?= python2.5
EXAMPLESDIR= ${PREFIX}/share/examples/py-ldap
.if !${FLAVOR} || ${FLAVOR:L:Npython?.?}
ERRORS+= "Fatal: You must select one version: ${FLAVORS}"
.endif
MULTI_PACKAGES= -main -examples
MODPY_VERSION= ${FLAVOR:S/python//}
MODULES= lang/python
EXAMPLESDIR= ${PREFIX}/share/examples/py-ldap
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
cd ${WRKSRC}; tar cf - Demo | tar xf - -C ${EXAMPLESDIR}
find ${WRKINST} -name \*.egg-info -exec rm {} \;
do-regress: fake
@cd ${WRKSRC}/Tests/Lib && ${MAKE_ENV} \

View File

@ -0,0 +1,2 @@
Example programs for the python-ldap API to access LDAP directory servers
from Python programs.

View File

@ -0,0 +1,22 @@
@comment $OpenBSD: PLIST-examples,v 1.3 2008/01/11 09:03:16 winiger Exp $
share/examples/py-ldap/
share/examples/py-ldap/Demo/
share/examples/py-ldap/Demo/Lib/
share/examples/py-ldap/Demo/Lib/ldap/
share/examples/py-ldap/Demo/Lib/ldap/res/
share/examples/py-ldap/Demo/Lib/ldapurl/
share/examples/py-ldap/Demo/Lib/ldapurl/urlsearch.py
share/examples/py-ldap/Demo/Lib/ldif/
share/examples/py-ldap/Demo/Lib/ldif/ldifcopy.py
share/examples/py-ldap/Demo/initialize.py
share/examples/py-ldap/Demo/ldapcontrols.py
share/examples/py-ldap/Demo/options.py
share/examples/py-ldap/Demo/passwd_ext_op.py
share/examples/py-ldap/Demo/pickle_ldapobject.py
share/examples/py-ldap/Demo/reconnect.py
share/examples/py-ldap/Demo/rename.py
share/examples/py-ldap/Demo/sasl_bind.py
share/examples/py-ldap/Demo/schema.py
share/examples/py-ldap/Demo/schema_tree.py
share/examples/py-ldap/Demo/simple.py
share/examples/py-ldap/Demo/simplebrowse.py

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.8 2006/11/16 10:09:56 mbalmer Exp $
@comment $OpenBSD: PLIST-main,v 1.1 2008/01/11 09:03:16 winiger Exp $
@option no-default-conflict
lib/python${MODPY_VERSION}/site-packages/_ldap.so
lib/python${MODPY_VERSION}/site-packages/dsml.py
lib/python${MODPY_VERSION}/site-packages/dsml.pyc
@ -53,24 +54,3 @@ lib/python${MODPY_VERSION}/site-packages/ldapurl.pyo
lib/python${MODPY_VERSION}/site-packages/ldif.py
lib/python${MODPY_VERSION}/site-packages/ldif.pyc
lib/python${MODPY_VERSION}/site-packages/ldif.pyo
share/examples/py-ldap/
share/examples/py-ldap/Demo/
share/examples/py-ldap/Demo/Lib/
share/examples/py-ldap/Demo/Lib/ldap/
share/examples/py-ldap/Demo/Lib/ldap/res/
share/examples/py-ldap/Demo/Lib/ldapurl/
share/examples/py-ldap/Demo/Lib/ldapurl/urlsearch.py
share/examples/py-ldap/Demo/Lib/ldif/
share/examples/py-ldap/Demo/Lib/ldif/ldifcopy.py
share/examples/py-ldap/Demo/initialize.py
share/examples/py-ldap/Demo/ldapcontrols.py
share/examples/py-ldap/Demo/options.py
share/examples/py-ldap/Demo/passwd_ext_op.py
share/examples/py-ldap/Demo/pickle_ldapobject.py
share/examples/py-ldap/Demo/reconnect.py
share/examples/py-ldap/Demo/rename.py
share/examples/py-ldap/Demo/sasl_bind.py
share/examples/py-ldap/Demo/schema.py
share/examples/py-ldap/Demo/schema_tree.py
share/examples/py-ldap/Demo/simple.py
share/examples/py-ldap/Demo/simplebrowse.py