mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
730aef92d2
PR: 178124 <ChangeLog> [ Redis 2.6.13 ] UPGRADE URGENCY: MODERATE, nothing very critical but upgrading is suggested if you experienced: 1) Strange issues with Lua scripting. 2) Not reconfigured reappearing master using Sentinel. 3) Server continusly trying to save on save error. This version of Redis may also help with AOF and slow / busy disks and latency issues. * [FIX] Throttle BGSAVE attempt on saving error. * [FIX] redis-cli: raise error on bad command line switch. * [FIX] Redis/Jemalloc Gitignore were too aggressive. * [FIX] Test: fix RDB test checking file permissions. * [FIX] Sentinel: always redirect on master->slave transition. * [FIX] Lua updated to version 5.1.5. Fixes rare scripting issues. * [NEW] AOF: improved latency figures with slow/busy disks. * [NEW] Sentinel: turn old master into a slave when it comes back. * [NEW] More explicit panic message on out of memory. * [NEW] redis-cli: --latency-history mode implemented. [ Redis 2.6.12 ] UPGRADE URGENCY: MODERATE, nothing very critical but a few non trivial bugs. * [BUGFIX] redis-cli --bigkeys: don't crash with empty DB. * [BUGFIX] stop-writes-on-bgsave-error now works in redis.conf * [BUGFIX] Don't crash at startup if RDB is there but can't be opened. * [BUGFIX] Initial value for master_link_down_since_seconds is now huge. * [BUGFIX] Allow SELECT while loading the DB. * [BUGFIX] Don't replicate/AOF an empty MULTI/EXEC if the transaction is empty or containing just read-only commands. * [BUGFIX] EXPIRE should not be able to resurrect keys (see issue #1026). * [IMPROVED] Extended SET back ported from Redis 2.8 / unstable See http://redis.io/commands/set for more information. * [IMPROVED] Test suite improved. </ChangeLog>
89 lines
2.1 KiB
Makefile
89 lines
2.1 KiB
Makefile
# Created by: Sergey Skvortsov <skv@protey.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= redis
|
|
DISTVERSION= 2.6.13
|
|
CATEGORIES= databases
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= osa@FreeBSD.org
|
|
COMMENT= A persistent key-value database with built-in net interface
|
|
|
|
LICENSE= BSD
|
|
|
|
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
|
|
|
|
OPTIONS_DEFINE= LUAJIT TESTS
|
|
LUAJIT_DESC= Use lang/luajit instead of builtin lua
|
|
TESTS_DESC= Install lang/tcl for redis unit tests
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLUAJIT}
|
|
LIB_DEPENDS+= luajit-5.1:${PORTSDIR}/lang/luajit
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-Makefile
|
|
CFLAGS+= -fPIC
|
|
LDFLAGS+= -Wl,-E
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
USE_TCL_BUILD= yes
|
|
.endif
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lm -lexecinfo
|
|
|
|
CONFLICTS?= redis-devel-2.6.*
|
|
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= "V=yo"
|
|
USE_RC_SUBR= redis
|
|
BIN_FILES= redis-benchmark redis-check-aof redis-check-dump \
|
|
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}
|
|
post-patch:
|
|
@cd ${WRKSRC}/deps/lua/src && ${CP} 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/!} ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKDIR}/redis.conf ${PREFIX}/etc/redis.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/sentinel.conf ${PREFIX}/etc/sentinel.conf.sample
|
|
|
|
post-install:
|
|
.for d in ${REDIS_LOGDIR} ${REDIS_RUNDIR} ${REDIS_DBDIR}
|
|
[ -d ${d} ] || ${MKDIR} ${d} && ${CHOWN} ${USERS}:${GROUPS} ${d}
|
|
.endfor
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${TCLSH} tests/test_helper.tcl
|
|
|
|
.include <bsd.port.mk>
|