Magellan Linux

Annotation of /branches/magellan-next/core/cyrus-sasl/cyrus-sasl-2.1.25-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9053 - (hide annotations) (download)
Tue Oct 4 13:22:32 2011 UTC (12 years, 8 months ago) by niro
File size: 2323 byte(s)
-fixed patch ver
1 niro 9049 # $Id$
2    
3     PNAME="cyrus-sasl"
4     PVER="2.1.25"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-libs"
8    
9     DESCRIPTION="The Cyrus Simple Authentication and Security Layer."
10     HOMEPAGE="http://asg.web.cmu.edu/sasl/"
11    
12     DEPEND=">= virtual/glibc
13     >= dev-libs/openssl-1.0.0
14     >= sys-libs/pam-1.1"
15    
16     SDEPEND=">= sys-apps/sed-4
17     >= sys-dev/autoconf-8
18     >= sys-dev/automake-4
19     >= sys-dev/libtool-2"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.gz"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     sminclude mtools
25    
26     SRC_URI=(
27     ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-2.1.17-pgsql-include.patch
30 niro 9053 mirror://${PNAME}/${PNAME}-2.1.23-gcc45.patch
31 niro 9049 )
32    
33     UP2DATE="updatecmd ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ | grep ${PNAME}- | grep -v rc | lasttarball gz"
34    
35     src_prepare()
36     {
37     munpack ${SRCFILE}
38     cd ${SRCDIR}
39    
40     # fix default port name for rimap auth mechanism.
41     sed -i '/define DEFAULT_REMOTE_SERVICE/s:imap:imap2:' saslauthd/auth_rimap.c || die
42    
43     # fix include path for newer PostgreSQL versions
44     mpatch ${PNAME}-2.1.17-pgsql-include.patch || die
45    
46     # fix compilation with gcc-4.5
47 niro 9053 mpatch ${PNAME}-2.1.23-gcc45.patch || die
48 niro 9049
49     # upstream doesn't even honor their own configure options...
50     sed -i 's:^sasldir = .*$:sasldir = $(plugindir):' ${SRCDIR}/plugins/Makefile.{am,in} || die
51    
52     # recreate configure
53     export WANT_AUTOCONF="2.5"
54     rm -rf configure config.h.in autom4te.cache || die
55     aclocal -I cmulocal -I config || die
56     autoheader || die
57     autoconf || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63    
64     mconfigure \
65     --with-saslauthd=/var/lib/sasl2 \
66     --with-pwcheck=/var/lib/sasl2 \
67     --with-configdir=/etc/sasl2 \
68     --with-plugindir=/usr/$(mlibdir)/sasl2 \
69     --with-dbpath=/etc/sasl2/sasldb2 \
70     --enable-login \
71     --enable-ntlm \
72     --with-openssl \
73     --with-pam \
74     --disable-static \
75     --disable-krb4 \
76     --disable-otp \
77     --without-ldap \
78     --disable-ldapdb \
79     --disable-sample \
80     --disable-gssapi \
81     --without-mysql \
82     --disable-mysql \
83     --without-pgsql \
84     --disable-postgres \
85     --disable-sql \
86     --disable-srp \
87     --disable-java \
88     --without-authdaemond \
89     --with-dblib=none \
90     || die
91    
92     mmake -j1 || die
93     }
94    
95     src_install ()
96     {
97     cd ${SRCDIR}
98    
99     mmake DESTDIR=${BINDIR} install || die
100    
101     mkeepdir /var/lib/sasl2 || die
102     mkeepdir /etc/sasl2 || die
103    
104     minstalldocs AUTHORS ChangeLog COPYING NEWS README doc/TODO doc/*.txt || die
105     }