diff options
author | Veniamin Gvozdikov <vg@FreeBSD.org> | 2015-07-07 16:59:55 +0000 |
---|---|---|
committer | Veniamin Gvozdikov <vg@FreeBSD.org> | 2015-07-07 16:59:55 +0000 |
commit | ba372be09be0319135b7519df7cf8b42c9fe0cc8 (patch) | |
tree | d4ce5a358715248e7673582ddf66a15591a93287 /databases/tarantool/Makefile | |
parent | Remove ${LOCALBASE}/bin/ from BUILD/RUN_DEPENDS in cases where it is unnecess... (diff) |
- Update to 1.6.5
- Added tarantool user and group
Notes
Notes:
svn path=/head/; revision=391515
Diffstat (limited to 'databases/tarantool/Makefile')
-rw-r--r-- | databases/tarantool/Makefile | 82 |
1 files changed, 35 insertions, 47 deletions
diff --git a/databases/tarantool/Makefile b/databases/tarantool/Makefile index 46b9799e76c9..00be795150c4 100644 --- a/databases/tarantool/Makefile +++ b/databases/tarantool/Makefile @@ -2,10 +2,9 @@ # $FreeBSD$ PORTNAME= tarantool -PORTVERSION= 1.5.3 -PORTREVISION= 1 +PORTVERSION= 1.6.5 CATEGORIES= databases -MASTER_SITES= http://tarantool.org/dist/ +MASTER_SITES= http://tarantool.org/dist/master/ DISTNAME= ${PORTNAME}-${PORTVERSION}-${TR_REV}-src MAINTAINER= vg@FreeBSD.org @@ -13,35 +12,42 @@ COMMENT= High performance key/value storage server LICENSE= BSD2CLAUSE -TR_REV= 102-g2857a4e +TR_REV= 238-g74f3d65 MAKE_JOBS_UNSAFE=yes -USES= cmake compiler:c++11-lang gettext gmake iconv perl5 readline +USES= cmake compiler:c++11-lang gmake perl5 readline +USE_GCC= 4.9+ # clang bug PR/201270 USE_LDCONFIG= yes USE_RC_SUBR= ${PORTNAME} SUB_FILES= pkg-message + +TT_DATADIR?= /var/db/tarantool +TT_RUNDIR?= /var/run/tarantool +TT_LOGDIR?= /var/log/tarantool + CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR=man \ -DCMAKE_INSTALL_SYSCONFDIR=${ETCDIR} \ - -DCMAKE_LOCALSTATE_DIR=${DATADIR} + -DCMAKE_LOCALSTATE_DIR=${DATADIR} \ + -DTARANTOOL_DATADIR="${TT_DATADIR}" -OPTIONS_DEFINE= CLIENT DEBUG -OPTIONS_GROUP= PLUGINS -OPTIONS_GROUP_PLUGINS= MYSQL PGSQL -PLUGINS_DESC= Plugins list -CLIENT_DESC= Enable client -DEBUG_DESC= Enable debug -MYSQL_DESC= Install MySQL plugin -PGSQL_DESC= Install PostgreSQL plugin +USERS= tarantool +GROUPS= tarantool -OPTIONS_DEFAULT=CLIENT MYSQL +SUB_LIST+= PORTNAME=${PORTNAME} \ + TT_USER=${USERS} \ + TT_DATADIR=${TT_DATADIR} \ + TT_LOGDIR=${TT_LOGDIR} \ + TT_RUNDIR=${TT_RUNDIR} -.include <bsd.port.options.mk> +PLIST_SUB+= TT_USER=${USERS} \ + TT_GROUP=${GROUPS} \ + TT_LOGDIR=${TT_LOGDIR} \ + TT_DATADIR=${TT_DATADIR} \ + TT_RUNDIR=${TT_RUNDIR} -.if ${PORT_OPTIONS:MCLIENT} -CMAKE_ARGS+= -DENABLE_CLIENT=true -PLIST_SUB+= CLIENT="" -.else -PLIST_SUB+= CLIENT="@comment " -.endif +OPTIONS_DEFINE= DEBUG +DEBUG_DESC= Enable debug + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDEBUG} CMAKE_BUILD_TYPE= RelWithDebugInfo @@ -51,32 +57,14 @@ CMAKE_BUILD_TYPE= Rel CMAKE_ARGS+= -DENABLE_BACKTRACE=OFF .endif -.if ${PORT_OPTIONS:MMYSQL} -CMAKE_ARGS+= -DWITH_MYSQL=ON -PLIST_SUB+= MYSQL="" -USE_MYSQL= yes -.else -CMAKE_ARGS+= -DWITH_MYSQL=OFF -PLIST_SUB+= MYSQL="@comment " -.endif - -.if ${PORT_OPTIONS:MPGSQL} -CMAKE_ARGS+= -DWITH_POSTGRESQL=ON -PLIST_SUB+= PGSQL="" -USES+= pgsql -.else -CMAKE_ARGS+= -DWITH_POSTGRESQL=OFF -PLIST_SUB+= PGSQL="@comment " +.if ${OSVERSION} < 1000000 +IGNORE= does not support FreeBSD versions < 10.0 .endif -.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} -PLIST_SUB+= PLUGINS="" -.else -PLIST_SUB+= PLUGINS="@comment " -.endif - -.if ${OSVERSION} < 900000 -BROKEN= Does not build on FreeBSD < 9.0 -.endif +post-install: + ${MKDIR} ${STAGEDIR}${TT_LOGDIR} \ + ${STAGEDIR}${TT_DATADIR} \ + ${STAGEDIR}${TT_RUNDIR} \ + ${STAGEDIR}${ETCDIR}/instances.enabled .include <bsd.port.mk> |