summaryrefslogtreecommitdiff
path: root/security/cy2-sql/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/cy2-sql/Makefile')
-rw-r--r--security/cy2-sql/Makefile40
1 files changed, 40 insertions, 0 deletions
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"