Annotation of /trunk/core/cyrus-sasl/cyrus-sasl-2.1.23-r2.smage2
Parent Directory | Revision Log
Revision 3561 -
(hide annotations)
(download)
Mon Oct 26 13:55:42 2009 UTC (14 years, 11 months ago) by niro
File size: 2205 byte(s)
Mon Oct 26 13:55:42 2009 UTC (14 years, 11 months ago) by niro
File size: 2205 byte(s)
auto added: ver bump to 2.1.23-r2
1 | niro | 3561 | # $Id$ |
2 | |||
3 | PNAME="cyrus-sasl" | ||
4 | PVER="2.1.23" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="dev-libs" | ||
8 | STATE="unstable" | ||
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-0.9.8 | ||
15 | >= sys-libs/pam-0.99" | ||
16 | |||
17 | SDEPEND=">= sys-apps/sed-4 | ||
18 | >= sys-dev/autoconf-4 | ||
19 | >= sys-dev/automake-3 | ||
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 | ) | ||
32 | |||
33 | UP2DATE="updatecmd ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ | grep ${PNAME}- | 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 | # upstream doesn't even honor their own configure options... | ||
47 | sed -i 's:^sasldir = .*$:sasldir = $(plugindir):' ${SRCDIR}/plugins/Makefile.{am,in} || die | ||
48 | |||
49 | # recreate configure | ||
50 | export WANT_AUTOCONF="2.5" | ||
51 | rm -rf configure config.h.in autom4te.cache || die | ||
52 | aclocal -I cmulocal -I config || die | ||
53 | autoheader || die | ||
54 | autoconf || die | ||
55 | } | ||
56 | |||
57 | src_compile() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | mconfigure \ | ||
62 | --with-saslauthd=/var/lib/sasl2 \ | ||
63 | --with-pwcheck=/var/lib/sasl2 \ | ||
64 | --with-configdir=/etc/sasl2 \ | ||
65 | --with-plugindir=/usr/$(mlibdir)/sasl2 \ | ||
66 | --with-dbpath=/etc/sasl2/sasldb2 \ | ||
67 | --enable-login \ | ||
68 | --enable-ntlm \ | ||
69 | --with-openssl \ | ||
70 | --with-pam \ | ||
71 | --disable-static \ | ||
72 | --disable-krb4 \ | ||
73 | --disable-otp \ | ||
74 | --without-ldap \ | ||
75 | --disable-ldapdb \ | ||
76 | --disable-sample \ | ||
77 | --disable-gssapi \ | ||
78 | --without-mysql \ | ||
79 | --disable-mysql \ | ||
80 | --without-pgsql \ | ||
81 | --disable-postgres \ | ||
82 | --disable-sql \ | ||
83 | --disable-srp \ | ||
84 | --disable-java \ | ||
85 | --without-authdaemond \ | ||
86 | --with-dblib=none \ | ||
87 | || die | ||
88 | |||
89 | mmake -j1 || die | ||
90 | } | ||
91 | |||
92 | src_install () | ||
93 | { | ||
94 | cd ${SRCDIR} | ||
95 | |||
96 | mmake DESTDIR=${BINDIR} install || die | ||
97 | |||
98 | mkeepdir /var/lib/sasl2 || die | ||
99 | mkeepdir /etc/sasl2 || die | ||
100 | |||
101 | minstalldocs AUTHORS ChangeLog COPYING NEWS README doc/TODO doc/*.txt || die | ||
102 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |