aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl2
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2004-05-29 01:47:34 +0800
committerume <ume@FreeBSD.org>2004-05-29 01:47:34 +0800
commit6feacc1cc5c4387ebb0562e5ddeaec781f8ba249 (patch)
tree814ebc94ab0251b55b0fb8895e0eb593b4471a62 /security/cyrus-sasl2
parent8688570913933b7162db20bcd9ee6d36a4e45cae (diff)
downloadfreebsd-ports-gnome-6feacc1cc5c4387ebb0562e5ddeaec781f8ba249.tar.gz
freebsd-ports-gnome-6feacc1cc5c4387ebb0562e5ddeaec781f8ba249.tar.zst
freebsd-ports-gnome-6feacc1cc5c4387ebb0562e5ddeaec781f8ba249.zip
Add WITH_SQLITE option to support sql plugin with SQLite
using nork's patch. His patch was already merged into cyrus-sasl2 and will be included in next release. Requested by: nork
Diffstat (limited to 'security/cyrus-sasl2')
-rw-r--r--security/cyrus-sasl2/Makefile24
-rw-r--r--security/cyrus-sasl2/distinfo2
-rw-r--r--security/cyrus-sasl2/files/patch-configure43
3 files changed, 61 insertions, 8 deletions
diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile
index e1fb872bd731..4e2cbf0a3fbc 100644
--- a/security/cyrus-sasl2/Makefile
+++ b/security/cyrus-sasl2/Makefile
@@ -98,7 +98,17 @@ CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
CONFIGURE_ARGS+=--without-pgsql
.endif
-.if defined(WITH_MYSQL) || defined(WITH_PGSQL)
+.if defined(WITH_SQLITE)
+PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCH_SITE_SUBDIR= nork
+PATCHFILES= cyrus-sasl2-sqlite.20040529.diff
+LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite
+CONFIGURE_ARGS+=--with-sqlite=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--without-sqlite
+.endif
+
+.if defined(WITH_MYSQL) || defined(WITH_PGSQL) || defined(WITH_SQLITE)
CONFIGURE_ARGS+=--enable-sql
.else
SQL= "@comment "
@@ -239,14 +249,14 @@ post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/html
-.for file in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.for f in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
-.for file in ${DOC2}
- @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+.for f in ${DOC2}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
-.for file in ${HTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR}/html
+.for f in ${HTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${f}.html ${DOCSDIR}/html
.endfor
@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${DOCSDIR}
.endif
diff --git a/security/cyrus-sasl2/distinfo b/security/cyrus-sasl2/distinfo
index 043a5ebe9d85..21dfa418cd2c 100644
--- a/security/cyrus-sasl2/distinfo
+++ b/security/cyrus-sasl2/distinfo
@@ -1,2 +1,4 @@
MD5 (cyrus-sasl-2.1.18.tar.gz) = 1eafae95f0289c10f187d8b2bc4032cf
SIZE (cyrus-sasl-2.1.18.tar.gz) = 1522578
+MD5 (cyrus-sasl2-sqlite.20040529.diff) = 2e16532da510130e10efbbadc85966b5
+SIZE (cyrus-sasl2-sqlite.20040529.diff) = 6042
diff --git a/security/cyrus-sasl2/files/patch-configure b/security/cyrus-sasl2/files/patch-configure
index 3c9a3d75186a..40030e54f125 100644
--- a/security/cyrus-sasl2/files/patch-configure
+++ b/security/cyrus-sasl2/files/patch-configure
@@ -1,7 +1,16 @@
Index: configure
diff -u configure.orig configure
--- configure.orig Thu Mar 11 00:56:10 2004
-+++ configure Thu Mar 25 04:11:41 2004
++++ configure Fri May 28 18:13:50 2004
+@@ -309,7 +309,7 @@
+ #endif"
+
+ ac_subdirs_all="$ac_subdirs_all saslauthd"
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB LIBTOOL PURECOV PURIFY JAVAC JAVAH JAVADOC JAVA_TRUE JAVA_FALSE JAVA_INCLUDES JAVAROOT SAMPLE_TRUE SAMPLE_FALSE LIB_SOCKET EGREP SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB NO_SASL_DB_MANS_TRUE NO_SASL_DB_MANS_FALSE SASL_DL_LIB NM SASLAUTHD_TRUE SASLAUTHD_FALSE PWCHECKMETH PWCHECK_TRUE PWCHECK_FALSE IPCTYPE LIB_DES OTP_LIBS SRP_LIBS SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS PLAIN_LIBS NTLM_LIBS LIB_MYSQL LIB_PGSQL SASL_MECHS SASL_STATIC_OBJS SASL_STATIC_LIBS plugindir MACOSX_TRUE MACOSX_FALSE DMALLOC_LIBS SFIO_INC_FLAGS SFIO_LIB_FLAGS SMTPTEST_PROGRAM SASL_UTIL_LIBS_EXTRA SASL_UTIL_HEADERS_EXTRA LIBOBJS GETSUBOPT SNPRINTFOBJS LTSNPRINTFOBJS GETADDRINFOOBJS LTGETADDRINFOOBJS GETNAMEINFOOBJS LTGETNAMEINFOOBJS LTLIBOBJS DIRS subdirs'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB LIBTOOL PURECOV PURIFY JAVAC JAVAH JAVADOC JAVA_TRUE JAVA_FALSE JAVA_INCLUDES JAVAROOT SAMPLE_TRUE SAMPLE_FALSE LIB_SOCKET EGREP SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB NO_SASL_DB_MANS_TRUE NO_SASL_DB_MANS_FALSE SASL_DL_LIB NM SASLAUTHD_TRUE SASLAUTHD_FALSE PWCHECKMETH PWCHECK_TRUE PWCHECK_FALSE IPCTYPE LIB_DES OTP_LIBS SRP_LIBS SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS PLAIN_LIBS NTLM_LIBS LIB_MYSQL LIB_PGSQL LIB_SQLITE SASL_MECHS SASL_STATIC_OBJS SASL_STATIC_LIBS plugindir MACOSX_TRUE MACOSX_FALSE DMALLOC_LIBS SFIO_INC_FLAGS SFIO_LIB_FLAGS SMTPTEST_PROGRAM SASL_UTIL_LIBS_EXTRA SASL_UTIL_HEADERS_EXTRA LIBOBJS GETSUBOPT SNPRINTFOBJS LTSNPRINTFOBJS GETADDRINFOOBJS LTGETADDRINFOOBJS GETNAMEINFOOBJS LTGETNAMEINFOOBJS LTLIBOBJS DIRS subdirs'
+ ac_subst_files=''
+
+ # Initialize some variables set by options.
@@ -1576,6 +1576,7 @@
fi
echo "$as_me:$LINENO: result: yes" >&5
@@ -92,3 +101,35 @@ diff -u configure.orig configure
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
+@@ -11288,7 +11291,22 @@
+ esac
+
+
+-if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no; then
++LIB_SQLITE=""
++
++case "$with_sqlite" in
++ no) true;;
++ *)
++ LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib -lsqlite"
++ CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
++
++ cat >>confdefs.h <<\_ACEOF
++#define HAVE_SQLITE
++_ACEOF
++ ;;
++esac
++
++
++if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
+ { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL found" >&5
+ echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL found" >&2;}
+ { (exit 1); exit 1; }; }
+@@ -15021,6 +15039,7 @@
+ s,@NTLM_LIBS@,$NTLM_LIBS,;t t
+ s,@LIB_MYSQL@,$LIB_MYSQL,;t t
+ s,@LIB_PGSQL@,$LIB_PGSQL,;t t
++s,@LIB_SQLITE@,$LIB_SQLITE,;t t
+ s,@SASL_MECHS@,$SASL_MECHS,;t t
+ s,@SASL_STATIC_OBJS@,$SASL_STATIC_OBJS,;t t
+ s,@SASL_STATIC_LIBS@,$SASL_STATIC_LIBS,;t t