diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python2-ldap |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python2-ldap')
-rw-r--r-- | community/python2-ldap/PKGBUILD | 24 | ||||
-rw-r--r-- | community/python2-ldap/setup.cfg.patch | 37 |
2 files changed, 61 insertions, 0 deletions
diff --git a/community/python2-ldap/PKGBUILD b/community/python2-ldap/PKGBUILD new file mode 100644 index 000000000..76ab81e7c --- /dev/null +++ b/community/python2-ldap/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 32662 2010-11-16 10:18:17Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Morgan LEFIEUX <comete_AT_archlinuxfr.org> + +pkgname=python2-ldap +pkgver=2.3.12 +pkgrel=1 +pkgdesc="Provides an object-oriented API to access LDAP directory servers from Python programs" +arch=('i686' 'x86_64') +url="http://python-ldap.sourceforge.net" +license=('custom') +depends=('python2' 'libldap>=2.4.18') +replaces=('python-ldap') +source=(http://pypi.python.org/packages/source/p/python-ldap/python-ldap-$pkgver.tar.gz) +md5sums=('2dadc521b2c2590d9b033894ba5c6f31') +md5sums=('2dadc521b2c2590d9b033894ba5c6f31') + +build() { + cd $srcdir/python-ldap-$pkgver + sed -i 's|<sasl.h>|<sasl/sasl.h>|' Modules/LDAPObject.c + python2 setup.py build + python2 setup.py install --root $pkgdir + install -D -m644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/community/python2-ldap/setup.cfg.patch b/community/python2-ldap/setup.cfg.patch new file mode 100644 index 000000000..77444c04a --- /dev/null +++ b/community/python2-ldap/setup.cfg.patch @@ -0,0 +1,37 @@ +--- setup.cfg 2006-11-15 20:26:26.000000000 +0300 ++++ setup.cfg.my 2007-06-25 16:19:24.000000000 +0400 +@@ -7,14 +7,14 @@ + # for wrapping OpenLDAP 2 libs + [_ldap] + +-library_dirs = /usr/local/openldap-2.3/lib +-include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl ++library_dirs = /usr/lib ++include_dirs = /usr/include /usr/include/sasl + + extra_compile_args = + extra_objects = + + # Example for sparse build: basic functionality +-#libs = ldap lber ++libs = ldap lber + + # Some Linux systems might need explicitly linking with -lresolv + #libs = ldap lber resolv +@@ -31,10 +31,10 @@ + optimize = 1 + + # Linux distributors/packagers should adjust these settings +-[bdist_rpm] +-provides = python-ldap +-requires = python libldap.so.2 ++#[bdist_rpm] ++#provides = python-ldap ++#requires = python libldap.so.2 + # distribution_name = +-release = 0 +-packager = Michael Stroeder <michael@stroeder.com> +-doc_files = CHANGES README INSTALL TODO Demo/ ++#release = 0 ++#packager = Michael Stroeder <michael@stroeder.com> ++#doc_files = CHANGES README INSTALL TODO Demo/ |