Annotation of /trunk/extras/cyrus-sasl/cyrus-sasl-2.1.27-r2.smage2
Parent Directory | Revision Log
Revision 31716 -
(hide annotations)
(download)
Thu Dec 6 10:42:42 2018 UTC (5 years, 9 months ago) by niro
File size: 2041 byte(s)
Thu Dec 6 10:42:42 2018 UTC (5 years, 9 months ago) by niro
File size: 2041 byte(s)
auto added: ver bump to 2.1.27-r2
1 | niro | 31715 | # $Id$ |
2 | |||
3 | PNAME="cyrus-sasl" | ||
4 | PVER="2.1.27" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="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.1.1 | ||
14 | >= sys-libs/pam-1.1" | ||
15 | |||
16 | SDEPEND=">= virtual/sed | ||
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.cyrusimap.org/${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/${SRCFILE} | ||
29 | mirror://${PNAME}/${PNAME}-2.1.25-no_rpath.patch | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd ftp://ftp.cyrusimap.org/${PNAME}/ | grep ${PNAME}- | grep -v rc | highesttarball gz" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} | ||
37 | cd ${SRCDIR} | ||
38 | |||
39 | # no rpath | ||
40 | mpatch ${PNAME}-2.1.25-no_rpath.patch || die | ||
41 | |||
42 | # recreate configure | ||
43 | rm -f {saslauthd/,}config/config.guess {saslauthd/,}config/config.sub || die | ||
44 | rm -f {saslauthd/,}config/ltconfig {saslauthd/,}config/ltmain.sh {saslauthd/,}config/libtool.m4 || die | ||
45 | rm -fr {saslauthd/,}autom4te.cache || die | ||
46 | mlibtoolize || die | ||
47 | pushd saslauthd | ||
48 | mlibtoolize || die | ||
49 | popd | ||
50 | # use full pathes or automake fails in subdirs | ||
51 | niro | 31716 | mautoreconf || die |
52 | niro | 31715 | } |
53 | |||
54 | src_compile() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | |||
58 | mconfigure \ | ||
59 | --with-saslauthd=/var/lib/sasl2 \ | ||
60 | --with-pwcheck=/var/lib/sasl2 \ | ||
61 | --with-configdir=/etc/sasl2 \ | ||
62 | --with-plugindir=/usr/$(mlibdir)/sasl2 \ | ||
63 | --with-dbpath=/etc/sasl2/sasldb2 \ | ||
64 | --enable-login \ | ||
65 | --enable-ntlm \ | ||
66 | --with-openssl \ | ||
67 | --with-pam \ | ||
68 | --disable-static \ | ||
69 | --disable-krb4 \ | ||
70 | --disable-otp \ | ||
71 | --without-ldap \ | ||
72 | --disable-ldapdb \ | ||
73 | --disable-sample \ | ||
74 | --disable-gssapi \ | ||
75 | --without-mysql \ | ||
76 | --disable-mysql \ | ||
77 | --without-pgsql \ | ||
78 | --disable-postgres \ | ||
79 | --disable-sql \ | ||
80 | --disable-srp \ | ||
81 | --disable-java \ | ||
82 | --without-authdaemond \ | ||
83 | --with-dblib=none \ | ||
84 | || die | ||
85 | |||
86 | mmake -j1 || die | ||
87 | } | ||
88 | |||
89 | src_install () | ||
90 | { | ||
91 | cd ${SRCDIR} | ||
92 | |||
93 | mmake DESTDIR=${BINDIR} install || die | ||
94 | |||
95 | mkeepdir /var/lib/sasl2 || die | ||
96 | mkeepdir /etc/sasl2 || die | ||
97 | |||
98 | minstalldocs AUTHORS ChangeLog COPYING NEWS README doc/TODO doc/*.txt || die | ||
99 | } |