<ChangeLog> - Fixed a bug that may slow down significantly (from a few milliseconds to many seconds) server side intersections when a background write is in progress. This was due to the hash table resize policy, prevented when there was a saving child. Now it's prevented only up to 5 times overbooking, so we try hard to prevent a lot of copy on write, but avoiding to trigger pathological hash table performances of O(N) instead of O(1). - Fixed expired keys counter in INFO output. It was not counting keys force-expired due to max-memory limit reached. </ChangeLog>
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# New ports collection makefile for: redis
|
|
# Date created: 03 Jul 2009
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= redis
|
|
DISTVERSION= 2.0.2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= osa@FreeBSD.org
|
|
COMMENT= A persistent key-value database with built-in net interface
|
|
|
|
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CONFLICTS?= redis-1.*
|
|
|
|
USE_GMAKE= yes
|
|
USE_RC_SUBR= redis.sh
|
|
BIN_FILES= redis-benchmark redis-check-aof redis-check-dump \
|
|
redis-cli redis-server
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
REDIS_USER?= redis
|
|
REDIS_UID?= 535
|
|
REDIS_GROUP?= redis
|
|
REDIS_GID?= 535
|
|
|
|
REDIS_DBDIR?= /var/db/redis
|
|
REDIS_RUNDIR?= /var/run/redis
|
|
REDIS_LOGDIR?= /var/log/redis
|
|
|
|
SUB_FILES= pkg-message pkg-install
|
|
SUB_LIST+= PORTNAME="${PORTNAME}" \
|
|
REDIS_USER="${REDIS_USER}" \
|
|
REDIS_UID="${REDIS_UID}" \
|
|
REDIS_GROUP="${REDIS_GROUP}" \
|
|
REDIS_GID="${REDIS_GID}" \
|
|
REDIS_LOGDIR="${REDIS_LOGDIR}" \
|
|
REDIS_DBDIR="${REDIS_DBDIR}" \
|
|
REDIS_RUNDIR="${REDIS_RUNDIR}"
|
|
|
|
PATTERN= '16d;119d;15s|$$$$(ARCH) ||'
|
|
.if !defined(WITH_DEBUG)
|
|
PATTERN:= ${PATTERN:S/'$/;5s|^|\#|'/}
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} ${PATTERN} ${WRKSRC}/Makefile
|
|
|
|
post-build:
|
|
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${WRKSRC}/redis.conf > ${WRKDIR}/redis.conf
|
|
|
|
do-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
${INSTALL_PROGRAM} ${BIN_FILES:C!^!${WRKSRC}/!} ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKDIR}/redis.conf ${PREFIX}/etc/redis.conf.sample
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|