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