Magellan Linux

Contents of /branches/magellan-next/extras/openldap/openldap-2.4.23-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6952 - (show annotations) (download)
Sun Sep 26 17:30:28 2010 UTC (13 years, 7 months ago) by niro
File size: 1343 byte(s)
-fixed compilation against db-5.0
1 # $Id: openldap-2.4.19-r2.smage2 4064 2009-11-17 21:43:09Z niro $
2
3 PNAME="openldap"
4 PVER="2.4.23"
5 PBUILD="r1"
6
7 PCATEGORIE="net-nds"
8 STATE="unstable"
9
10 DESCRIPTION="OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol."
11 HOMEPAGE="http://www.openldap.org/"
12
13 DEPEND=">= dev-db/db-5.0
14 >= dev-libs/cyrus-sasl-2.1
15 >= dev-libs/openssl-1.0.0
16 >= sys-apps/tcp-wrappers-7"
17
18 SRCFILE="${PNAME}-${PVER}.tgz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mbuild
22
23 SRC_URI=(
24 http://www.openldap.org/software/download/OpenLDAP/openldap-release/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-db5.patch
27 )
28
29 UP2DATE="updatecmd http://www.openldap.org/software/download/ | grep 'currently avail' | sed 's/.*OpenLDAP-\(.*\)\ is.*/\1/'"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # adds db-5.0 support
37 mpatch ${PNAME}-${PVER}-db5.patch || die
38 # non standard, autoreconf doesn't work
39 mlibtoolize || di
40 aclocal || die
41 autoconf --force || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 # fixes a >=glibc-2.8 bug
49 # getpeereid.c: In function 'lutil_getpeereid':
50 # getpeereid.c:65: error: storage size of 'peercred' isn't known
51 export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
52 export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
53
54 mconfigure --libexecdir=/usr/$(mlibdir)/${PNAME} || die
55 mmake || die
56 }