aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-08-25 10:58:47 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-08-25 10:58:47 +0000
commit95619f23f1dda2e6b23dea8b84784ad5620b7a9a (patch)
tree17baabd52468b43472e51a7889244863859f7c73 /databases
parenta8cbaa513adb2f9c660ee7c7d4814c68ad443287 (diff)
downloadports-95619f23f1dda2e6b23dea8b84784ad5620b7a9a.tar.gz
ports-95619f23f1dda2e6b23dea8b84784ad5620b7a9a.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/couchdb/Makefile20
-rw-r--r--databases/couchdb/files/couchdb.in2
2 files changed, 16 insertions, 6 deletions
diff --git a/databases/couchdb/Makefile b/databases/couchdb/Makefile
index 5e8b07f8d3b2..dc7f85842cd2 100644
--- a/databases/couchdb/Makefile
+++ b/databases/couchdb/Makefile
@@ -8,6 +8,7 @@
PORTNAME= couchdb
PORTVERSION= 1.1.0
PORTEPOCH= 1
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= couchdb/${PORTVERSION}
@@ -19,15 +20,11 @@ COMMENT= A document database server, accessible via a RESTful JSON API
LIB_DEPENDS= icudata:${PORTSDIR}/devel/icu \
js:${PORTSDIR}/lang/spidermonkey \
curl.6:${PORTSDIR}/ftp/curl
-BUILD_DEPENDS= ${LOCALBASE}/lib/erlang/usr/include/erl_driver.h:${PORTSDIR}/lang/erlang-lite \
- ${LOCALBASE}/bin/help2man:${PORTSDIR}/misc/help2man
-RUN_DEPENDS= ${LOCALBASE}/lib/erlang/usr/include/erl_driver.h:${PORTSDIR}/lang/erlang-lite
+BUILD_DEPENDS= ${LOCALBASE}/bin/help2man:${PORTSDIR}/misc/help2man
USERS= couchdb
GROUPS= couchdb
-USERS= ${COUCH_USER}
-GROUPS= ${USERS}
USE_RC_SUBR= couchdb
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
@@ -39,8 +36,21 @@ CONFIGURE_ARGS= --with-erlang=${LOCALBASE}/lib/erlang/usr/include \
--with-js-lib=${LOCALBASE}/lib
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
+OPTIONS= ERLANG "Use lang/erlang instead of lang/erlang-lite" off
+
MAN1= couchdb.1 couchjs.1
+.include <bsd.port.options.mk>
+
+.if defined(WITH_ERLANG)
+ERLANG_PORT= ${PORTSDIR}/lang/erlang
+.else
+ERLANG_PORT= ${PORTSDIR}/lang/erlang-lite
+.endif
+
+BUILD_DEPENDS+= erlc:${ERLANG_PORT}
+RUN_DEPENDS+= erl:${ERLANG_PORT}
+
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "If you are upgrading CouchDB, please double-check that the datafile is compatible."
diff --git a/databases/couchdb/files/couchdb.in b/databases/couchdb/files/couchdb.in
index 31ba39bd69a2..c27647e52b95 100644
--- a/databases/couchdb/files/couchdb.in
+++ b/databases/couchdb/files/couchdb.in
@@ -52,7 +52,7 @@ fi
: ${couchdb_flags="-b -a ${etcdir}/default.ini -a ${etcdir}/local.ini ${respawn}-o ${logfile} -e ${errfile} -p ${pidfile}"}
start_precmd=pid_touch
-stop_cmd="${command} -d && rm -f ${pidfile}"
+stop_cmd="${command} -d"
status_cmd="${command} -s"
pid_touch ()