2006-02-23 15:26:10 +00:00
|
|
|
# Description: Simple Authentication and Security Layer
|
2014-07-16 13:32:37 +02:00
|
|
|
# URL: https://cyrusimap.org/
|
2011-09-15 22:20:02 +02:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Daniel Mueller, daniel at danm dot de
|
2012-10-19 11:59:21 +09:00
|
|
|
# Depends on: db openssl
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=cyrus-sasl
|
2014-07-16 13:32:37 +02:00
|
|
|
version=2.1.26
|
2014-08-16 17:57:57 +02:00
|
|
|
release=2
|
2014-07-16 13:32:37 +02:00
|
|
|
source=(ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-$version.tar.gz
|
|
|
|
saslauthd fix-CVE-2013-4122.diff)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build(){
|
2014-07-16 13:32:37 +02:00
|
|
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
patch -i ../fix-CVE-2013-4122.diff -p1
|
2014-08-16 17:57:57 +02:00
|
|
|
sed -i '228i\#include <sys/types.h>' include/sasl.h
|
2014-07-16 13:32:37 +02:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc/sasl \
|
|
|
|
--with-plugindir=/usr/lib/sasl2 \
|
|
|
|
--with-saslauthd=/var/sasl/saslauthd \
|
|
|
|
--with-dbpath=/etc/sasl/sasldb2 \
|
|
|
|
--with-dblib=berkeley \
|
|
|
|
--with-bdb-incdir=/usr/include \
|
|
|
|
--with-bdb-libdir=/usr/lib \
|
|
|
|
--with-openssl=/usr \
|
|
|
|
--enable-login \
|
|
|
|
--enable-cram \
|
|
|
|
--enable-digest \
|
2017-08-20 23:03:15 +02:00
|
|
|
--enable-shared
|
2014-07-16 13:32:37 +02:00
|
|
|
|
|
|
|
make -j1
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
mkdir -p \
|
|
|
|
$PKG/usr/lib/sasl2 \
|
|
|
|
$PKG/var/sasl/saslauthd \
|
|
|
|
$PKG/etc/rc.d
|
|
|
|
|
|
|
|
install -m 755 $SRC/saslauthd $PKG/etc/rc.d
|
2014-07-16 14:24:46 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|