mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# Created by: Vlad Galu <galu@packetdam.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= arangodb
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.2.13
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases net
|
|
PKGNAMESUFFIX= 32
|
|
|
|
MAINTAINER= dev@dudu.ro
|
|
COMMENT= Distributed NoSQL database with multiple data models
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
ONLY_FOR_ARCHS_REASON= "Only builds on amd64"
|
|
USES= gmake ssl cmake:noninja python:2.7 compiler
|
|
USE_GITHUB= yes
|
|
|
|
CMAKE_ARGS= -DUSE_JEMALLOC:BOOL=off \
|
|
-DUSE_BACKTRACE:BOOL=on \
|
|
-DBASE_LD_FLAGS:STRING="-L${BUILD_WRKSRC}/3rdParty/V8/v5.7.492.77/x64.release/obj.target/src -L${BUILD_WRKSRC}/3rdParty/V8/v5.7.492.77/x64.release/obj.target/third_party/icu -L${LOCALBASE}/lib -L/usr/lib"
|
|
|
|
USERS= arangodb
|
|
GROUPS= arangodb
|
|
USE_RC_SUBR= arangod
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057
|
|
SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS=""
|
|
.else
|
|
SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
${REINPLACE_CMD} -e 's|/usr/local/var/lib/arangodb3|/var/db/arangodb|g' ${STAGEDIR}${PREFIX}/etc/arangodb/*.conf
|
|
${REINPLACE_CMD} -e 's|/usr/local/var/log/arangodb3|/var/log/arangodb|g' ${STAGEDIR}${PREFIX}/etc/arangodb/arangod.conf
|
|
${FIND} ${STAGEDIR}${PREFIX}/etc/arangodb/ -type f -name *.conf -exec ${MV} {} {}.sample \;
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib/arangodb
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib/arangodb-apps
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var/log/arangodb
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var/log
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/var
|
|
|
|
.include <bsd.port.mk>
|