pkgsrc/databases/redis/Makefile
adam 3712293322 redis: updated to 6.2.4
Redis 6.2.4
===========

Upgrade urgency: SECURITY, Contains fixes to security issues that affect
authenticated client connections. MODERATE otherwise.

Fix integer overflow in STRALGO LCS (CVE-2021-32625)
An integer overflow bug in Redis version 6.0 or newer can be exploited using the
STRALGO LCS command to corrupt the heap and potentially result with remote code
execution. This is a result of an incomplete fix by CVE-2021-29477.

Bug fixes that are only applicable to previous releases of Redis 6.2:
* Fix crash after a diskless replication fork child is terminated
* Fix redis-benchmark crash on unsupported configs

Other bug fixes:
* Fix crash in UNLINK on a stream key with deleted consumer groups
* SINTERSTORE: Add missing keyspace del event when none of the sources exist
* Sentinel: Fix CONFIG SET of empty string sentinel-user/sentinel-pass configs
* Enforce client output buffer soft limit when no traffic

Improvements:
* Hide AUTH passwords in MIGRATE command from slowlog
2021-06-02 10:25:02 +00:00

75 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.70 2021/06/02 10:25:02 adam Exp $
DISTNAME= redis-6.2.4
CATEGORIES= databases
MASTER_SITES= http://download.redis.io/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://redis.io/
COMMENT= Persistent key-value database with built-in net interface
LICENSE= modified-bsd
TEST_DEPENDS+= tcl>=8.5:../../lang/tcl
USE_LANGUAGES= c99
USE_TOOLS+= gmake pkg-config
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
RCD_SCRIPTS+= redis
RCD_SCRIPT_SRC.redis= ${FILESDIR}/redis.sh
DOCDIR= share/doc/redis
DOCFILES+= 00-RELEASENOTES BUGS COPYING README.md
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
INSTALLATION_DIRS+= bin ${DOCDIR} ${EGDIR} ${EGDIR}/utils ${EGDIR}/tests
BUILD_DEFS+= VARBASE REDIS_USER REDIS_GROUP REDIS_DATADIR
BUILD_DEFS+= REDIS_LOGDIR REDIS_PIDDIR PKG_SYSCONFDIR
REDIS_USER?= redis
REDIS_GROUP?= redis
REDIS_DATADIR?= ${VARBASE}/db/redis
REDIS_LOGDIR?= ${VARBASE}/log/redis
REDIS_PIDDIR?= ${VARBASE}/run
OWN_DIRS_PERMS+= ${REDIS_DATADIR} ${REDIS_USER} ${REDIS_GROUP} 0770
OWN_DIRS_PERMS+= ${REDIS_LOGDIR} ${REDIS_USER} ${REDIS_GROUP} 0770
CONF_FILES_PERMS+= ${EGDIR}/redis.conf.example ${PKG_SYSCONFDIR}/redis.conf \
${REAL_ROOT_USER} ${REDIS_GROUP} 0640
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}
FILES_SUBST+= REDIS_GROUP=${REDIS_GROUP}
FILES_SUBST+= REDIS_DATADIR=${REDIS_DATADIR}
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing paths.
SUBST_FILES.fix-paths= redis.conf
SUBST_VARS.fix-paths= REDIS_DATADIR REDIS_LOGDIR REDIS_PIDDIR
CHECK_PORTABILITY_SKIP+= deps/jemalloc/configure
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
do-test:
cd ${WRKSRC} && ${SH} runtest
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"