diff options
Diffstat (limited to 'databases/redis/Makefile')
-rw-r--r-- | databases/redis/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/databases/redis/Makefile b/databases/redis/Makefile index 0f2ece0e5be7..d9b83328b822 100644 --- a/databases/redis/Makefile +++ b/databases/redis/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= redis -DISTVERSION= 3.0.4 +DISTVERSION= 3.0.5 CATEGORIES= databases MASTER_SITES= http://download.redis.io/releases/ @@ -13,15 +13,23 @@ LICENSE= BSD3CLAUSE USES= execinfo -OPTIONS_DEFINE= TESTS +OPTIONS_DEFINE= TESTS TRIB OPTIONS_RADIO= EXTLUA OPTIONS_RADIO_EXTLUA= LUA LUAJIT +OPTIONS_SUB= yes LUA_DESC= Use lang/lua instead of builtin lua LUAJIT_DESC= Use lang/luajit instead of builtin lua TESTS_DESC= Install lang/tcl for redis unit tests +TRIB_DESC= Install redis-trib.rb (lang/ruby req.) .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MTRIB} +CATEGORIES+= ruby +USE_RUBY= yes +RUN_DEPENDS= rubygem-redis>=2.2:${PORTSDIR}/databases/rubygem-redis +.endif + .if ${PORT_OPTIONS:MLUA} USES+= lua:51 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-Makefile.lua @@ -85,6 +93,9 @@ post-build: do-install: ${INSTALL_PROGRAM} ${BIN_FILES:C!^!${WRKSRC}/src/!} ${STAGEDIR}${PREFIX}/bin/ +.if ${PORT_OPTIONS:MTRIB} + ${INSTALL_SCRIPT} ${WRKSRC}/src/redis-trib.rb ${STAGEDIR}${PREFIX}/bin/ +.endif ${INSTALL_DATA} ${WRKDIR}/redis.conf ${STAGEDIR}${PREFIX}/etc/redis.conf.sample ${INSTALL_DATA} ${WRKSRC}/sentinel.conf ${STAGEDIR}${PREFIX}/etc/sentinel.conf.sample ${MKDIR} ${STAGEDIR}${REDIS_LOGDIR} \ |