ports/156394: [MAINTAINER] www/mnogosearch Add SQLite3 option & set to default
Chris Rees
utisoft at gmail.com
Thu Apr 14 09:40:02 UTC 2011
>Number: 156394
>Category: ports
>Synopsis: [MAINTAINER] www/mnogosearch Add SQLite3 option & set to default
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 14 09:40:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root at zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386
>Description:
>How-To-Repeat:
>Fix:
- Add new OPTION for SQLite 3 support & set default
- Make DATADIR and ETCDIR safe
Submitted by: Chris Rees (utisoft_at_gmail.com) (maintainer)
Requested by: Panagiotis Christias
--- mnogosearch-sqlite3.diff begins here ---
Index: Makefile
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/www/mnogosearch/Makefile,v
retrieving revision 1.82
diff -u -r1.82 Makefile
--- Makefile 8 Mar 2011 19:17:51 -0000 1.82
+++ Makefile 14 Apr 2011 09:26:26 -0000
@@ -24,16 +24,17 @@
PGSQL "Use PGSQL" off \
MSQL "Use MSQL" off \
MYSQL "Use MySQL" off \
- SQLITE "Use SQLite 2.x" on
+ SQLITE "Use SQLite 2.x" off \
+ SQLITE3 "Use SQLite 3.x" on
USE_LDCONFIG= yes
USE_GNOME= lthack
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS+=--enable-shared \
- --sysconfdir=${PREFIX}/etc/mnogosearch \
+ --sysconfdir=${ETCDIR} \
--localstatedir=/var/mnogosearch \
- --datadir=${PREFIX}/share/mnogosearch
+ --datadir=${DATADIR}
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
MAKE_ENV+= MKDIRPROG="${MKDIR}"
@@ -84,13 +85,18 @@
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
.endif
-.ifndef WITHOUT_SQLITE
+.ifdef WITH_SQLITE
USE_SQLITE= 2
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
.endif
+.ifndef WITHOUT_SQLITE3
+USE_SQLITE= 3
+CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE}
+.endif
+
.if defined(WITHOUT_SQLITE) && !defined(WITH_MYSQL) && \
- !defined(WITH_MSQL) && !defined(WITH_PGSQL)
+ !defined(WITH_MSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE3)
IGNORE= needs at least one database driver
.endif
--- mnogosearch-sqlite3.diff ends here ---
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list