aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2016-02-24 18:39:50 +0800
committerume <ume@FreeBSD.org>2016-02-24 18:39:50 +0800
commite566f3712a03849fd52f50a963e4372a8599fecd (patch)
tree5815be24d80e8f0d08d9a4a7069d10ba0893ae17 /security
parentc878e182a99f7b9e28d2e702402005f7ce753fb4 (diff)
downloadfreebsd-ports-gnome-e566f3712a03849fd52f50a963e4372a8599fecd.tar.gz
freebsd-ports-gnome-e566f3712a03849fd52f50a963e4372a8599fecd.tar.zst
freebsd-ports-gnome-e566f3712a03849fd52f50a963e4372a8599fecd.zip
Add Cyrus SASL SRP authentication plugin.
Requested by: Kyle Amon <amonk__at__backwatcher.com>
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/cyrus-sasl2-srp/Makefile73
-rw-r--r--security/cyrus-sasl2-srp/pkg-descr3
-rw-r--r--security/cyrus-sasl2/files/pkg-message.in2
4 files changed, 79 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 2b3bac205789..2e0843718d1a 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -94,6 +94,7 @@
SUBDIR += cyrus-sasl2-gssapi
SUBDIR += cyrus-sasl2-ldapdb
SUBDIR += cyrus-sasl2-saslauthd
+ SUBDIR += cyrus-sasl2-srp
SUBDIR += d0_blind_id
SUBDIR += dcetest
SUBDIR += ddos_scan
diff --git a/security/cyrus-sasl2-srp/Makefile b/security/cyrus-sasl2-srp/Makefile
new file mode 100644
index 000000000000..1fda9ad044bc
--- /dev/null
+++ b/security/cyrus-sasl2-srp/Makefile
@@ -0,0 +1,73 @@
+# $FreeBSD$
+
+PORTNAME= srp
+PORTVERSION= 2.1.26
+#PORTREVISION= 0
+CATEGORIES= security ipv6
+MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-sasl/ \
+ http://cyrusimap.org/releases/
+PKGNAMEPREFIX= cyrus-sasl-
+DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
+
+MAINTAINER= ume@FreeBSD.org
+COMMENT= SASL SRP authentication plugin
+
+LICENSE= BSD4CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
+
+CYRUS_SASL2_DIR=${MASTERDIR}/../cyrus-sasl2
+DISTINFO_FILE= ${CYRUS_SASL2_DIR}/distinfo
+PATCHDIR= ${CYRUS_SASL2_DIR}/files
+INSTALL_WRKSRC= ${WRKSRC}/plugins
+
+USES= libtool
+USE_LDCONFIG= yes
+USE_OPENSSL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
+ --with-plugindir=${PREFIX}/lib/sasl2 \
+ --with-dbpath=${PREFIX}/etc/sasldb2 \
+ --with-lib-subdir=lib \
+ --includedir=${PREFIX}/include \
+ --enable-static \
+ --with-rc4=openssl
+CONFIGURE_ARGS+=--with-dblib=none \
+ --disable-anon \
+ --disable-cram \
+ --disable-digest \
+ --disable-gssapi \
+ --disable-krb4 \
+ --disable-ntlm \
+ --disable-otp \
+ --disable-plain \
+ --disable-scram
+CONFIGURE_ARGS+=--enable-srp
+
+MAKE_ENV+= INSTALL_STRIP_FLAG=${STRIP}
+
+OPTIONS_DEFINE= SRP_SETPASS
+OPTIONS_DEFAULT= SRP_SETPASS
+SRP_SETPASS_DESC= setting SRP secrets with saslpasswd
+SRP_SETPASS_CONFIGURE_ENABLE= srp-setpass
+
+PLIST_FILES= lib/sasl2/libsrp.a \
+ lib/sasl2/libsrp.so \
+ lib/sasl2/libsrp.so.3 \
+ lib/sasl2/libsrp.so.3.0.0
+
+.include <bsd.port.pre.mk>
+
+.if ${OPENSSLBASE} == /usr
+CONFIGURE_ARGS+=--with-openssl=yes
+.else
+CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
+.endif
+
+do-build:
+ cd ${WRKSRC}/include && ${MAKE}
+ cd ${WRKSRC}/plugins && ${MAKE}
+
+.include <bsd.port.post.mk>
diff --git a/security/cyrus-sasl2-srp/pkg-descr b/security/cyrus-sasl2-srp/pkg-descr
new file mode 100644
index 000000000000..a765614c6ca8
--- /dev/null
+++ b/security/cyrus-sasl2-srp/pkg-descr
@@ -0,0 +1,3 @@
+SASL SRP authentication plugin
+
+WWW: http://cyrusimap.web.cmu.edu/
diff --git a/security/cyrus-sasl2/files/pkg-message.in b/security/cyrus-sasl2/files/pkg-message.in
index dd675f0a9e0e..0198d8319d7b 100644
--- a/security/cyrus-sasl2/files/pkg-message.in
+++ b/security/cyrus-sasl2/files/pkg-message.in
@@ -15,6 +15,8 @@ NOTE: This port has been compiled with a default pwcheck_method of
pwcheck_method.
If you want to use GSSAPI mechanism, install
ports/security/cyrus-sasl2-gssapi.
+ If you want to use SRP mechanism, install
+ ports/security/cyrus-sasl2-srp.
If you want to use LDAP auxprop plugin, install
ports/security/cyrus-sasl2-ldapdb.