Contents of /branches/magellan-next/extras/openldap/openldap-2.4.26-r1.smage2
Parent Directory | Revision Log
Revision 8302 -
(show annotations)
(download)
Thu Jul 14 13:26:45 2011 UTC (13 years, 2 months ago) by niro
File size: 1157 byte(s)
Thu Jul 14 13:26:45 2011 UTC (13 years, 2 months ago) by niro
File size: 1157 byte(s)
auto added: ver bump to 2.4.26-r1
1 | # $Id$ |
2 | |
3 | PNAME="openldap" |
4 | PVER="2.4.26" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-nds" |
8 | |
9 | DESCRIPTION="OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol." |
10 | HOMEPAGE="http://www.openldap.org/" |
11 | |
12 | DEPEND=">= dev-db/db-5.1 |
13 | >= dev-libs/cyrus-sasl-2.1 |
14 | >= dev-libs/openssl-1.0.0 |
15 | >= sys-apps/tcp-wrappers-7" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tgz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mbuild |
21 | |
22 | SRC_URI=( |
23 | http://www.openldap.org/software/download/OpenLDAP/openldap-release/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | UP2DATE="updatecmd http://www.openldap.org/software/download/ | grep 'currently avail' | sed 's/.*OpenLDAP-\(.*\)\ is.*/\1/'" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # non standard, autoreconf doesn't work |
35 | mlibtoolize || die |
36 | aclocal || die |
37 | autoconf --force || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | |
44 | # fixes a >=glibc-2.8 bug |
45 | # getpeereid.c: In function 'lutil_getpeereid': |
46 | # getpeereid.c:65: error: storage size of 'peercred' isn't known |
47 | export CFLAGS="${CFLAGS} -D_GNU_SOURCE" |
48 | export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE" |
49 | |
50 | mconfigure --libexecdir=/usr/$(mlibdir)/${PNAME} || die |
51 | mmake || die |
52 | } |