Magellan Linux

Contents of /trunk/extras/openldap/openldap-2.4.30-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11417 - (show annotations) (download)
Thu Mar 8 15:37:20 2012 UTC (12 years, 6 months ago) by niro
File size: 1870 byte(s)
auto added: ver bump to 2.4.30-r1
1 # $Id$
2
3 PNAME="openldap"
4 PVER="2.4.30"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="libldap openldap"
8
9 PCAT="net-nds"
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 split_info_libldap()
30 {
31 DESCRIPTION="Lightweight Directory Access Protocol client libraries."
32 DEPEND=""
33 }
34
35 split_info_openldap()
36 {
37 DESCRIPTION="OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol."
38 DEPEND="== net-nds/libdap-${PVER}"
39 }
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 cd ${SRCDIR}
45
46 # non standard, autoreconf doesn't work
47 mlibtoolize || die
48 aclocal || die
49 autoconf --force || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 # fixes a >=glibc-2.8 bug
57 # getpeereid.c: In function 'lutil_getpeereid':
58 # getpeereid.c:65: error: storage size of 'peercred' isn't known
59 export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
60 export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
61
62 mconfigure --libexecdir=/usr/$(mlibdir)/${PNAME} || die
63 mmake || die
64 }
65
66 src_install_libldap()
67 {
68 cd ${SRCDIR}
69 mmake -C include DESTDIR=${BINDIR} install || die
70 mmake -C libraries DESTDIR=${BINDIR} install || die
71 mmake -C doc/man/man3 DESTDIR=${BINDIR} install || die
72 }
73
74 src_install_openldap()
75 {
76 cd ${SRCDIR}
77 mmake -C clients DESTDIR=${BINDIR} install || die
78 mmake -C servers DESTDIR=${BINDIR} install || die
79 mmake -C doc/man/man1 DESTDIR=${BINDIR} install || die
80 mmake -C doc/man/man5 DESTDIR=${BINDIR} install || die
81 mmake -C doc/man/man8 DESTDIR=${BINDIR} install || die
82 }