blob: 535fbb0efa5f2aeb75e35e7818667d8ab5824411 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Ports collection makefile for: couchdb
# Date created: 17 Nov 2007
# Whom: Ditesh Shashikant Gathani <ditesh@gathani.org>
#
# $FreeBSD$
#
PORTNAME= couchdb
PORTVERSION= 1.0.0
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= couchdb/${PORTVERSION}
DISTNAME= apache-couchdb-${PORTVERSION}
MAINTAINER= till@php.net
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
RUN_DEPENDS= ${BUILD_DEPENDS}
COUCH_VARDIR?= /var
COUCH_DBDIR?= ${COUCH_VARDIR}/db/couchdb
COUCH_LOGDIR?= ${COUCH_VARDIR}/log/couchdb
COUCH_LIBDIR?= ${COUCH_VARDIR}/lib/couchdb
COUCH_USER?= couchdb
USE_RC_SUBR= couchdb
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-erlang=${LOCALBASE}/lib/erlang/usr/include \
--localstatedir=/var \
--disable-init \
--with-js-include=${LOCALBASE}/include \
--with-js-lib=${LOCALBASE}/lib
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
MAN1= couchdb.1 couchjs.1
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "If you are upgrading CouchDB, please double-check that the datafile is compatible."
@${ECHO_MSG} "Upgrading also might require you to rebuild your views entirely."
@${ECHO_MSG} ""
post-patch:
${REINPLACE_CMD} -e '169s|@INSTALL_PROGRAM@|@INSTALL_SCRIPT@|' ${WRKSRC}/src/couchdb/priv/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's/install-data-am$$//' ${WRKSRC}/Makefile.in
.endif
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
@${CAT} ${PKGMESSAGE}
${MKDIR} ${COUCH_DBDIR}
${CHOWN} ${COUCH_USER} ${COUCH_DBDIR}
${CHOWN} ${COUCH_USER} ${COUCH_LOGDIR}
${CHOWN} ${COUCH_USER} ${COUCH_LIBDIR}
.include <bsd.port.mk>
|