84a9b74f71
UPGRADE URGENCY: MODERATE. * [FIX] Stop writes when fork() fails when trying to BGSAVE. BGSAVE errors were trapped only in the case the saving child failed, so the fork() error was no trapped as no child is created at all. * [FIX] Fix a serious memory efficiency regression, Redis 2.6.16 is significantly better with large values (>= a few kbytes) and will be able to store two times the amount of data compared to Redis 2.6.15 when values are in that range. * [FIX] Fixed an issue with Table conversion in the lua-cmsgpack library exposed by the Redis scripting engine. * [NEW] DEBUG SDSLEN was introduced to debug memory inefficiencies due to SDS allocation more easily.
66 lines
1.9 KiB
Makefile
66 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2013/09/09 14:05:03 fhajny Exp $
|
|
|
|
DISTNAME= redis-2.6.16
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://download.redis.io/releases/
|
|
|
|
MAINTAINER= filip@joyent.com
|
|
HOMEPAGE= http://redis.io/
|
|
COMMENT= Persistent key-value database with built-in net interface
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_TOOLS+= gmake pax
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
RCD_SCRIPTS+= redis
|
|
RCD_SCRIPT_SRC.redis= ${FILESDIR}/redis.sh
|
|
|
|
DOCDIR= share/doc/redis
|
|
DOCFILES+= 00-RELEASENOTES BUGS COPYING README
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
INSTALLATION_DIRS+= bin ${DOCDIR} ${EGDIR} ${EGDIR}/utils ${EGDIR}/tests
|
|
CONF_FILES= ${EGDIR}/redis.conf.example ${PKG_SYSCONFDIR}/redis.conf
|
|
|
|
BUILD_DEFS+= VARBASE REDIS_USER REDIS_GROUP REDIS_DATADIR
|
|
BUILD_DEFS+= REDIS_LOGDIR REDIS_PIDDIR
|
|
|
|
REDIS_USER?= redis
|
|
REDIS_GROUP?= redis
|
|
REDIS_DATADIR?= ${VARBASE}/db/redis
|
|
REDIS_LOGDIR?= ${VARBASE}/log/redis
|
|
REDIS_PIDDIR?= ${VARBASE}/run
|
|
|
|
OWN_DIRS+= ${REDIS_DATADIR} ${REDIS_LOGDIR}
|
|
OWN_DIRS_PERMS+= ${REDIS_DATADIR} ${REDIS_USER} ${REDIS_GROUP} 0770
|
|
OWN_DIRS_PERMS+= ${REDIS_LOGDIR} ${REDIS_USER} ${REDIS_GROUP} 0770
|
|
|
|
PKG_GROUPS+= ${REDIS_GROUP}
|
|
PKG_USERS+= ${REDIS_USER}:${REDIS_GROUP}
|
|
PKG_GECOS.${REDIS_USER}= Redis daemon user
|
|
PKG_HOME.${REDIS_USER}= ${REDIS_DBDIR}
|
|
|
|
FILES_SUBST+= REDIS_USER=${REDIS_USER}
|
|
|
|
SUBST_CLASSES+= fix-paths
|
|
SUBST_STAGE.fix-paths= post-patch
|
|
SUBST_MESSAGE.fix-paths= Fixing paths.
|
|
SUBST_FILES.fix-paths= redis.conf
|
|
SUBST_VARS.fix-paths= REDIS_DATADIR REDIS_LOGDIR REDIS_PIDDIR
|
|
|
|
post-extract:
|
|
${CHMOD} -R g-w ${WRKSRC}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/redis.conf ${DESTDIR}${EGDIR}/redis.conf.example
|
|
.for file in ${DOCFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/${DOCDIR}/${file}
|
|
.endfor
|
|
cd ${WRKSRC}/utils && pax -rwpp . ${DESTDIR}${EGDIR}/utils/
|
|
cd ${WRKSRC}/tests && pax -rwpp . ${DESTDIR}${EGDIR}/tests/
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SH} runtest
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|