1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/databases/couchdb/Makefile
Dave Cottlehuber 1309bf5a8c databases/couchdb: update to 1.7.1 incl critical security fixes
- addresses 2 critical security fixes listed below
- includes fix for post-1.7.0 /_all_docs returning 500 for DB members

Reviewed by:	olgeni (maintainer)
Approved by:	jrm (mentor)
MFH:		2017Q4
Security:	 CVE-2017-12635
Security:	 CVE-2017-12636
Security:	 https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67@%3Cdev.couchdb.apache.org%3E
Sponsored by:	http://iwantmyname.com/
Differential Revision:	https://reviews.freebsd.org/D13076
2017-11-14 19:01:01 +00:00

71 lines
2.2 KiB
Makefile

# Created by: Ditesh Shashikant Gathani <ditesh@gathani.org>
# $FreeBSD$
PORTNAME= couchdb
DISTVERSION= 1.7.1
PORTEPOCH= 2
CATEGORIES= databases
MASTER_SITES= APACHE/couchdb/source/${DISTVERSION}
DISTNAME= apache-couchdb-${DISTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Document database server, accessible via a RESTful JSON API
LICENSE= APACHE20 BSD3CLAUSE ISCL WTFPL OFL11
LICENSE_COMB= multi
LIB_DEPENDS= libicudata.so:devel/icu \
libmozjs185.so:lang/spidermonkey185 \
libcurl.so:ftp/curl
BUILD_DEPENDS= ${LOCALBASE}/bin/help2man:misc/help2man \
erlang>=15.b.01,2:lang/erlang
RUN_DEPENDS= erlang>=15.b.01,2:lang/erlang
USES= cpe gmake libtool
USE_RC_SUBR= couchdb
SUB_FILES= pkg-message
PLIST_SUB= VERSION=${DISTVERSION}
CPE_VENDOR= apache
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-erlang=${LOCALBASE}/lib/erlang/usr/include \
--localstatedir=/var \
--disable-init \
--with-js-include=${LOCALBASE}/include/js \
--with-js-lib=${LOCALBASE}/lib
USERS= couchdb
GROUPS= couchdb
# Override default value of ${STRIP} because the underlying Makefile
# erroneously tries to install a shell script with ${STRIP}, causing
# an install error.
STRIP= #empty
INFO= CouchDB
.include <bsd.port.options.mk>
post-patch:
# DB files are stored by default in /var/db/couchdb
# Ports framework expects info pages to have an info extension
@${REINPLACE_CMD} '/localstatelibdir=/s|/lib/|/db/|' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's|\(info_file_inst = CouchDB\)$$|\1.info|' \
${WRKSRC}/share/doc/build/Makefile.in
post-patch-DOCS-off:
@${REINPLACE_CMD} -e 's/install-data-am$$//' ${WRKSRC}/Makefile.in
post-configure:
# Cater for parallel Spidermonkey v1.7 and v1.8.5 installs by ensuring that
# jsapi.h gets pulled from /usr/local/include/js/ instead of /usr/local/include
@${FIND} ${WRKSRC} -name Makefile|${XARGS} ${REINPLACE_CMD} \
-e 's|include -I/usr/local/include/js|include/js -I/usr/local/include|'
post-install:
@${MV} ${STAGEDIR}${PREFIX}/lib/couchdb/bin/couchjs ${STAGEDIR}${PREFIX}/bin/couchjs
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/couchdb/bin
@${MV} ${WRKSRC}/etc/couchdb/local.ini ${STAGEDIR}${PREFIX}/etc/couchdb/local.ini.sample
.include <bsd.port.mk>