Annotation of /trunk/extras/cyrus-sasl/cyrus-sasl-2.1.27-r1.smage2
Parent Directory | Revision Log
Revision 31711 -
(hide annotations)
(download)
Thu Dec 6 10:02:49 2018 UTC (5 years, 6 months ago) by niro
File size: 2306 byte(s)
Thu Dec 6 10:02:49 2018 UTC (5 years, 6 months ago) by niro
File size: 2306 byte(s)
-dropped obsolete and upstream patches
1 | niro | 31710 | # $Id$ |
2 | |||
3 | PNAME="cyrus-sasl" | ||
4 | PVER="2.1.27" | ||
5 | PBUILD="r1" | ||
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 | ) | ||
30 | |||
31 | UP2DATE="updatecmd ftp://ftp.cyrusimap.org/${PNAME}/ | grep ${PNAME}- | grep -v rc | lasttarball gz" | ||
32 | |||
33 | src_prepare() | ||
34 | { | ||
35 | munpack ${SRCFILE} | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | # use newer macro names | ||
39 | sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die | ||
40 | sed -i 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' configure.in saslauthd/configure.in || die | ||
41 | |||
42 | # upstream doesn't even honor their own configure options... | ||
43 | sed -i 's:^sasldir = .*$:sasldir = $(plugindir):' ${SRCDIR}/plugins/Makefile.{am,in} || die | ||
44 | |||
45 | # recreate configure | ||
46 | rm -f {saslauthd/,}config/config.guess {saslauthd/,}config/config.sub || die | ||
47 | rm -f {saslauthd/,}config/ltconfig {saslauthd/,}config/ltmain.sh {saslauthd/,}config/libtool.m4 || die | ||
48 | rm -fr {saslauthd/,}autom4te.cache || die | ||
49 | mlibtoolize || die | ||
50 | pushd saslauthd | ||
51 | mlibtoolize || die | ||
52 | popd | ||
53 | # use full pathes or automake fails in subdirs | ||
54 | mautoreconf -I $(pwd)/cmulocal -I config || 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 | } |