summaryrefslogtreecommitdiff
path: root/security/cy2-sql
diff options
context:
space:
mode:
authorjlam <jlam>2004-08-04 20:47:10 +0000
committerjlam <jlam>2004-08-04 20:47:10 +0000
commitf82b7cf4a7eda393174607a17f3fcfe52abc860d (patch)
tree4033cb0ede80e7ad6359ba94bea1606bededf261 /security/cy2-sql
parent0304c36c0e977552782c89cf3a693e0426bdbf58 (diff)
downloadpkgsrc-f82b7cf4a7eda393174607a17f3fcfe52abc860d.tar.gz
Initial import of security/cy2-sql. This is the Cyrus SASLv2 SQL auxprop
plugin.
Diffstat (limited to 'security/cy2-sql')
-rw-r--r--security/cy2-sql/DESCR8
-rw-r--r--security/cy2-sql/Makefile40
-rw-r--r--security/cy2-sql/PLIST5
3 files changed, 53 insertions, 0 deletions
diff --git a/security/cy2-sql/DESCR b/security/cy2-sql/DESCR
new file mode 100644
index 00000000000..66119e2f504
--- /dev/null
+++ b/security/cy2-sql/DESCR
@@ -0,0 +1,8 @@
+SASL is a method for adding authentication support to connection-based
+protocols. To use SASL, a protocol includes a command for identifying and
+authenticating a user to a server and for optionally negotiating protection
+of subsequent protocol interactions. If its use is negotiated, a security
+layer is inserted between the protocol and the connection.
+
+This is the Cyrus SASL plugin that implements the SQL auxprop
+authentication mechanism.
diff --git a/security/cy2-sql/Makefile b/security/cy2-sql/Makefile
new file mode 100644
index 00000000000..62b37475f3e
--- /dev/null
+++ b/security/cy2-sql/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/04 20:47:10 jlam Exp $
+
+PKGNAME= ${DISTNAME:S/cyrus-sasl/cy2-login/}
+COMMENT= Cyrus SASL LOGIN authentication plugin
+SASL_PLUGIN= yes
+
+.include "../cyrus-sasl2/Makefile.common"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.cy2-sql
+PKG_OPTIONS.cy2-sql?= mysql
+PKG_SUPPORTED_OPTIONS= mysql pgsql sqlite
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../databases/mysql4-client/buildlink3.mk"
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX}
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite)
+. include "../../databases/sqlite/buildlink3.mk"
+CONFIGURE_ARGS+= --with-sqlite=${BUILDLINK_PREFIX.sqlite}
+.endif
+
+CONFIGURE_ARGS+= --enable-sql # LOGIN
+
+BUILD_DIRS= ${WRKSRC}/plugins
+ALL_TARGET= libsql.la
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PLUGINDIR}
+ cd ${WRKSRC}/plugins && \
+ ${SHLIBTOOL} --mode=install \
+ ${INSTALL_PROGRAM} libsql.la ${PLUGINDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/cy2-sql/PLIST b/security/cy2-sql/PLIST
new file mode 100644
index 00000000000..275d1a5f037
--- /dev/null
+++ b/security/cy2-sql/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/04 20:47:10 jlam Exp $
+lib/sasl2/libsql.la
+lib/sasl2/libsql.so
+lib/sasl2/libsql.so.2
+lib/sasl2/libsql.so.2.18