pkgsrc/databases/couchdb/Makefile

98 lines
3.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2013/03/04 14:12:40 fhajny Exp $
#
DISTNAME= apache-couchdb-1.2.1
PKGNAME= ${DISTNAME:S/apache-//}
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_APACHE:=couchdb/1.2.1/}
MAINTAINER= filip@joyent.com
HOMEPAGE= http://couchdb.apache.org/
COMMENT= Document database server, accessible via a RESTful JSON API
LICENSE= apache-2.0
Update databases/couchdb to 1.2.0. Changes in 1.2.0 * Updated bundled erlang_oauth library to the latest version. * cURL is no longer required to build CouchDB as it is only required by the command line JS test runner. * Added a native JSON parser. * Optional file compression (database and view index files). This feature is enabled by default. * Several performance improvements, especially regarding database writes and view indexing. * Added a 'data_size' property to database and view group information URIs. * Added support for automatic compaction. This feature is disabled by default, but it can be enabled via the .ini configuration. * A new replicator implementation that offers more performance and configuration options. * Added optional field 'since_seq' to replication objects/documents. * Simpler replication cancelation. * The _active_tasks API now exposes more granular fields for each task type. * Futon's 'Status' screen (active tasks) now displays two new task status fields: 'Started on' and 'Updated on'. * Added built-in changes feed filter '_view'. * Fixed old index file descriptor leaks after a view cleanup. * Performance improvements for the built-in changes feed filters '_doc_ids' and '_design'. * Fixes to the '_changes' feed heartbeat option when combined with a filter. It affected continuous pull replications with a filter. * Fix use of OAuth with VHosts and URL rewriting. * OAuth secrets can now be stored in the users system database. * Documents in the _users database can no longer be read by everyone. * Confidential information in the _replication database can no longer be read by everyone. * Password hashes are now calculated by CouchDB instead of the client. * Allow persistent authentication cookies. * The requested_path property of query server request objects now has the path requested by clients before VHosts and rewriting. * Fixed incorrect reduce query results when using pagination parameters. * Made icu_driver work with Erlang R15B and later. * Improvements to the build system and etap test suite. * Avoid invalidating view indexes when running out of file descriptors. * Log correct stacktrace in all cases. * Improvements to log messages for file-related errors.
2012-09-17 11:42:46 +02:00
VERSION.ejson= 0.1.0
Updated databases/couchdb to 1.1.0. Also fixed INSTALL_PROGRAM patch to not break install-sh. Changes since 1.0.1 ============================================================================ HTTP Interface: * Native SSL support. * Added support for HTTP range requests for attachments. * Added built-in filters for '_changes': '_doc_ids' and '_design'. * Added configuration option for TCP_NODELAY aka "Nagle". * Allow POSTing arguments to '_changes'. * Allow 'keys' parameter for GET requests to views. * Allow wildcards in vhosts definitions. * More granular ETag support for views. * More flexible URL rewriter. * Added support for recognizing "Q values" and media parameters in HTTP Accept headers. * Validate doc ids that come from a PUT to a URL. Externals: * Added OS Process module to manage daemons outside of CouchDB. * Added HTTP Proxy handler for more scalable externals. Replicator: * Added '_replicator' database to manage replications. * Fixed issues when an endpoint is a remote database accessible via SSL. * Added support for continuous by-doc-IDs replication. * Fix issue where revision info was omitted when replicating attachments. * Integrity of attachment replication is now verified by MD5. Storage System: * Multiple micro-optimizations when reading data. View Server: * Added CommonJS support to map functions. * Added 'stale=update_after' query option that triggers a view update after returning a 'stale=ok' response. * Warn about empty result caused by 'startkey' and 'endkey' limiting. * Built-in reduce function '_sum' now accepts lists of integers as input. * Added view query aliases start_key, end_key, start_key_doc_id and end_key_doc_id. Futon: * Added a "change password"-feature to Futon. URL Rewriter & Vhosts: * Fix for variable substituion
2011-07-27 21:20:57 +02:00
VERSION.ibrowse= 2.2.0
Update databases/couchdb to 1.2.0. Changes in 1.2.0 * Updated bundled erlang_oauth library to the latest version. * cURL is no longer required to build CouchDB as it is only required by the command line JS test runner. * Added a native JSON parser. * Optional file compression (database and view index files). This feature is enabled by default. * Several performance improvements, especially regarding database writes and view indexing. * Added a 'data_size' property to database and view group information URIs. * Added support for automatic compaction. This feature is disabled by default, but it can be enabled via the .ini configuration. * A new replicator implementation that offers more performance and configuration options. * Added optional field 'since_seq' to replication objects/documents. * Simpler replication cancelation. * The _active_tasks API now exposes more granular fields for each task type. * Futon's 'Status' screen (active tasks) now displays two new task status fields: 'Started on' and 'Updated on'. * Added built-in changes feed filter '_view'. * Fixed old index file descriptor leaks after a view cleanup. * Performance improvements for the built-in changes feed filters '_doc_ids' and '_design'. * Fixes to the '_changes' feed heartbeat option when combined with a filter. It affected continuous pull replications with a filter. * Fix use of OAuth with VHosts and URL rewriting. * OAuth secrets can now be stored in the users system database. * Documents in the _users database can no longer be read by everyone. * Confidential information in the _replication database can no longer be read by everyone. * Password hashes are now calculated by CouchDB instead of the client. * Allow persistent authentication cookies. * The requested_path property of query server request objects now has the path requested by clients before VHosts and rewriting. * Fixed incorrect reduce query results when using pagination parameters. * Made icu_driver work with Erlang R15B and later. * Improvements to the build system and etap test suite. * Avoid invalidating view indexes when running out of file descriptors. * Log correct stacktrace in all cases. * Improvements to log messages for file-related errors.
2012-09-17 11:42:46 +02:00
VERSION.mochiweb= 1.4.1
VERSION.snappy= 1.0.3
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
USE_LIBTOOL= yes
BUILD_DEFS+= VARBASE
BUILD_DEPENDS+= help2man-[0-9]*:../../converters/help2man
.include "../../mk/bsd.prefs.mk"
COUCH_DBDIR?= ${VARBASE}/db/couchdb
COUCH_EGDIR= ${PREFIX}/share/examples/couchdb
COUCH_LOGDIR?= ${VARBASE}/log/couchdb
COUCH_USER?= couchdb
COUCH_GROUP?= ${COUCH_USER}
PKG_GROUPS+= ${COUCH_GROUP}
PKG_USERS+= ${COUCH_USER}:${COUCH_GROUP}
PKG_GECOS.${COUCH_USER}=CouchDB Server User
PKG_HOME.${COUCH_USER}= ${COUCH_DBDIR}
PKG_SHELL.${COUCH_USER}=${COMMAND_SHELL}
# Solaris /var/run is root only
.if ${OPSYS} == "SunOS"
COUCH_RUNDIR?= ${VARBASE}/spool/couchdb
.else
COUCH_RUNDIR?= ${VARBASE}/run/couchdb
.endif
OWN_DIRS= ${COUCH_LOGDIR} ${COUCH_DBDIR} ${COUCH_RUNDIR} ${PKG_SYSCONFDIR}
OWN_DIRS_PERMS+= ${COUCH_DBDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
OWN_DIRS_PERMS+= ${COUCH_LOGDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
OWN_DIRS_PERMS+= ${COUCH_RUNDIR} ${COUCH_USER} ${COUCH_GROUP} 0770
PKG_SYSCONFSUBDIR= couchdb
PKG_SYSCONFDIR_PERMS= ${COUCH_USER} ${COUCH_GROUP} 0775
CONF_FILES_PERMS+= ${COUCH_EGDIR}/default.ini ${PKG_SYSCONFDIR}/default.ini ${COUCH_USER} ${COUCH_GROUP} 0660
CONF_FILES_PERMS+= ${COUCH_EGDIR}/local.ini ${PKG_SYSCONFDIR}/local.ini ${COUCH_USER} ${COUCH_GROUP} 0660
CONFIGURE_ARGS+= --disable-init
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-erlang=${BUILDLINK_PREFIX.erlang}/lib/erlang/usr/include
CONFIGURE_ARGS+= --with-js-include=${BUILDLINK_PREFIX.spidermonkey}
CONFIGURE_ARGS+= --with-js-lib=${BUILDLINK_PREFIX.spidermonkey}
.if ${OPSYS} == "SunOS"
REPLACE_INTERPRETER+= sh
REPLACE.sh.old= /bin/sh
REPLACE.sh.new= /bin/ksh
REPLACE_FILES.sh= bin/couchdb.tpl.in
.endif
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting standard paths
SUBST_STAGE.paths= post-patch
Updated databases/couchdb to 1.1.0. Also fixed INSTALL_PROGRAM patch to not break install-sh. Changes since 1.0.1 ============================================================================ HTTP Interface: * Native SSL support. * Added support for HTTP range requests for attachments. * Added built-in filters for '_changes': '_doc_ids' and '_design'. * Added configuration option for TCP_NODELAY aka "Nagle". * Allow POSTing arguments to '_changes'. * Allow 'keys' parameter for GET requests to views. * Allow wildcards in vhosts definitions. * More granular ETag support for views. * More flexible URL rewriter. * Added support for recognizing "Q values" and media parameters in HTTP Accept headers. * Validate doc ids that come from a PUT to a URL. Externals: * Added OS Process module to manage daemons outside of CouchDB. * Added HTTP Proxy handler for more scalable externals. Replicator: * Added '_replicator' database to manage replications. * Fixed issues when an endpoint is a remote database accessible via SSL. * Added support for continuous by-doc-IDs replication. * Fix issue where revision info was omitted when replicating attachments. * Integrity of attachment replication is now verified by MD5. Storage System: * Multiple micro-optimizations when reading data. View Server: * Added CommonJS support to map functions. * Added 'stale=update_after' query option that triggers a view update after returning a 'stale=ok' response. * Warn about empty result caused by 'startkey' and 'endkey' limiting. * Built-in reduce function '_sum' now accepts lists of integers as input. * Added view query aliases start_key, end_key, start_key_doc_id and end_key_doc_id. Futon: * Added a "change password"-feature to Futon. URL Rewriter & Vhosts: * Fix for variable substituion
2011-07-27 21:20:57 +02:00
SUBST_FILES.paths+= configure bin/couchdb.tpl.in
SUBST_SED.paths= -e 's,@EGDIR@,${COUCH_EGDIR},g'
SUBST_SED.paths+= -e 's,@RUNDIR@,${COUCH_RUNDIR},g'
SUBST_SED.paths+= -e 's,@ERLANG_PREFIX@,${BUILDLINK_PREFIX.erlang},g'
2011-06-19 04:32:52 +02:00
# This works around libtool abuse installing "couchspawnkillable". Will
# hopefully get fixed properly upstream.
SUBST_CLASSES+= unstrip
SUBST_MESSAGE.unstrip= Avoiding trying to strip a shell script
SUBST_STAGE.unstrip= post-configure
SUBST_FILES.unstrip+= src/couchdb/priv/Makefile
Updated databases/couchdb to 1.1.0. Also fixed INSTALL_PROGRAM patch to not break install-sh. Changes since 1.0.1 ============================================================================ HTTP Interface: * Native SSL support. * Added support for HTTP range requests for attachments. * Added built-in filters for '_changes': '_doc_ids' and '_design'. * Added configuration option for TCP_NODELAY aka "Nagle". * Allow POSTing arguments to '_changes'. * Allow 'keys' parameter for GET requests to views. * Allow wildcards in vhosts definitions. * More granular ETag support for views. * More flexible URL rewriter. * Added support for recognizing "Q values" and media parameters in HTTP Accept headers. * Validate doc ids that come from a PUT to a URL. Externals: * Added OS Process module to manage daemons outside of CouchDB. * Added HTTP Proxy handler for more scalable externals. Replicator: * Added '_replicator' database to manage replications. * Fixed issues when an endpoint is a remote database accessible via SSL. * Added support for continuous by-doc-IDs replication. * Fix issue where revision info was omitted when replicating attachments. * Integrity of attachment replication is now verified by MD5. Storage System: * Multiple micro-optimizations when reading data. View Server: * Added CommonJS support to map functions. * Added 'stale=update_after' query option that triggers a view update after returning a 'stale=ok' response. * Warn about empty result caused by 'startkey' and 'endkey' limiting. * Built-in reduce function '_sum' now accepts lists of integers as input. * Added view query aliases start_key, end_key, start_key_doc_id and end_key_doc_id. Futon: * Added a "change password"-feature to Futon. URL Rewriter & Vhosts: * Fix for variable substituion
2011-07-27 21:20:57 +02:00
SUBST_SED.unstrip= -e '/^INSTALL_PROGRAM =/s, -s,,'
Update databases/couchdb to 1.2.0. Changes in 1.2.0 * Updated bundled erlang_oauth library to the latest version. * cURL is no longer required to build CouchDB as it is only required by the command line JS test runner. * Added a native JSON parser. * Optional file compression (database and view index files). This feature is enabled by default. * Several performance improvements, especially regarding database writes and view indexing. * Added a 'data_size' property to database and view group information URIs. * Added support for automatic compaction. This feature is disabled by default, but it can be enabled via the .ini configuration. * A new replicator implementation that offers more performance and configuration options. * Added optional field 'since_seq' to replication objects/documents. * Simpler replication cancelation. * The _active_tasks API now exposes more granular fields for each task type. * Futon's 'Status' screen (active tasks) now displays two new task status fields: 'Started on' and 'Updated on'. * Added built-in changes feed filter '_view'. * Fixed old index file descriptor leaks after a view cleanup. * Performance improvements for the built-in changes feed filters '_doc_ids' and '_design'. * Fixes to the '_changes' feed heartbeat option when combined with a filter. It affected continuous pull replications with a filter. * Fix use of OAuth with VHosts and URL rewriting. * OAuth secrets can now be stored in the users system database. * Documents in the _users database can no longer be read by everyone. * Confidential information in the _replication database can no longer be read by everyone. * Password hashes are now calculated by CouchDB instead of the client. * Allow persistent authentication cookies. * The requested_path property of query server request objects now has the path requested by clients before VHosts and rewriting. * Fixed incorrect reduce query results when using pagination parameters. * Made icu_driver work with Erlang R15B and later. * Improvements to the build system and etap test suite. * Avoid invalidating view indexes when running out of file descriptors. * Log correct stacktrace in all cases. * Improvements to log messages for file-related errors.
2012-09-17 11:42:46 +02:00
PLIST_SUBST+= VERSION.ejson=${VERSION.ejson}
PLIST_SUBST+= VERSION.ibrowse=${VERSION.ibrowse}
PLIST_SUBST+= VERSION.mochiweb=${VERSION.mochiweb}
Update databases/couchdb to 1.2.0. Changes in 1.2.0 * Updated bundled erlang_oauth library to the latest version. * cURL is no longer required to build CouchDB as it is only required by the command line JS test runner. * Added a native JSON parser. * Optional file compression (database and view index files). This feature is enabled by default. * Several performance improvements, especially regarding database writes and view indexing. * Added a 'data_size' property to database and view group information URIs. * Added support for automatic compaction. This feature is disabled by default, but it can be enabled via the .ini configuration. * A new replicator implementation that offers more performance and configuration options. * Added optional field 'since_seq' to replication objects/documents. * Simpler replication cancelation. * The _active_tasks API now exposes more granular fields for each task type. * Futon's 'Status' screen (active tasks) now displays two new task status fields: 'Started on' and 'Updated on'. * Added built-in changes feed filter '_view'. * Fixed old index file descriptor leaks after a view cleanup. * Performance improvements for the built-in changes feed filters '_doc_ids' and '_design'. * Fixes to the '_changes' feed heartbeat option when combined with a filter. It affected continuous pull replications with a filter. * Fix use of OAuth with VHosts and URL rewriting. * OAuth secrets can now be stored in the users system database. * Documents in the _users database can no longer be read by everyone. * Confidential information in the _replication database can no longer be read by everyone. * Password hashes are now calculated by CouchDB instead of the client. * Allow persistent authentication cookies. * The requested_path property of query server request objects now has the path requested by clients before VHosts and rewriting. * Fixed incorrect reduce query results when using pagination parameters. * Made icu_driver work with Erlang R15B and later. * Improvements to the build system and etap test suite. * Avoid invalidating view indexes when running out of file descriptors. * Log correct stacktrace in all cases. * Improvements to log messages for file-related errors.
2012-09-17 11:42:46 +02:00
PLIST_SUBST+= VERSION.snappy=${VERSION.snappy}
.include "../../lang/erlang/buildlink3.mk"
.include "../../lang/spidermonkey/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"