mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
ece1280e56
<ChangeLog> Upgrade urgency LOW: A few rarely harmful bugs were fixed. This release just fixes bugs that are unlikely to cause serious problems so there is no need to update ASAP. Please, see the list of commits for the details on the bugs fixed and credits: o) redis-cli --bigkeys: show error when TYPE fails o) Fix preprocessor if/else chain broken in order to fix #3927 o) Fix zmalloc_get_memory_size() ifdefs to actually use the else branch o) Set lua-time-limit default value at safe place o) Fix #3848 by closing the descriptor on error o) Update block->free after some diff data are written to the child process o) Test: fix, hopefully, false PSYNC failure like in issue #2715 o) Fix #2883, #2857 pipe fds leak when fork() failed on bg aof rw o) Don't leak file descriptor on syncWithMaster() </ChangeLog> M Makefile M distinfo
109 lines
2.7 KiB
Makefile
109 lines
2.7 KiB
Makefile
# Created by: Sergey Skvortsov <skv@protey.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= redis
|
|
DISTVERSION= 3.2.9
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://download.redis.io/releases/
|
|
|
|
MAINTAINER= osa@FreeBSD.org
|
|
COMMENT= Persistent key-value database with built-in net interface
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= execinfo
|
|
|
|
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:databases/rubygem-redis
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLUA}
|
|
USES+= lua:51
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-Makefile.lua
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLUAJIT}
|
|
LIB_DEPENDS+= libluajit-5.1.so:lang/luajit
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-Makefile.luajit
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLUA} || ${PORT_OPTIONS:MLUAJIT}
|
|
CFLAGS+= -fPIC
|
|
LDFLAGS+= -Wl,-E
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
USES+= tcl:build
|
|
.endif
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lpthread -lm -lexecinfo
|
|
|
|
CONFLICTS?= redis-devel-3.*
|
|
|
|
USES+= gmake
|
|
MAKE_ENV= "V=yo"
|
|
USE_RC_SUBR= redis sentinel
|
|
BIN_FILES= redis-benchmark redis-check-aof redis-check-rdb \
|
|
redis-cli redis-sentinel redis-server
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
USERS= redis
|
|
GROUPS= redis
|
|
|
|
REDIS_DBDIR?= /var/db/redis
|
|
REDIS_RUNDIR?= /var/run/redis
|
|
REDIS_LOGDIR?= /var/log/redis
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST+= PORTNAME=${PORTNAME} \
|
|
REDIS_USER=${USERS} \
|
|
REDIS_DBDIR=${REDIS_DBDIR} \
|
|
REDIS_LOGDIR=${REDIS_LOGDIR} \
|
|
REDIS_RUNDIR=${REDIS_RUNDIR}
|
|
|
|
PLIST_SUB+= REDIS_USER=${USERS} \
|
|
REDIS_GROUP=${GROUPS} \
|
|
REDIS_LOGDIR=${REDIS_LOGDIR} \
|
|
REDIS_DBDIR=${REDIS_DBDIR} \
|
|
REDIS_RUNDIR=${REDIS_RUNDIR}
|
|
|
|
.if ${PORT_OPTIONS:MLUAJIT} || ${PORT_OPTIONS:MLUA}
|
|
post-patch:
|
|
@cd ${WRKSRC}/deps/lua/src && ${CP} fpconv.* lua_* strbuf.* ${WRKSRC}/src/
|
|
.endif
|
|
|
|
post-build:
|
|
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${WRKSRC}/redis.conf > ${WRKDIR}/redis.conf
|
|
|
|
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} \
|
|
${STAGEDIR}${REDIS_DBDIR} \
|
|
${STAGEDIR}${REDIS_RUNDIR}
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${TCLSH} tests/test_helper.tcl
|
|
|
|
.include <bsd.port.mk>
|