13d63ef667
<ChangeLog> Redis 1.2.6 fixes two critical replication bugs, and a few improvements. - Fixed Issue 207 (http://code.google.com/p/redis/issues/detail?id=207) (broken replication with binary arguments not in the last position with the MSET command or any other command issued with new multi-bulk protocol). - Fixed Issue 174 (http://code.google.com/p/redis/issues/detail?id=174) (temp names collisions producing broken slave-side .rdb files). - Redis-cli backported from Redis master, with interactive mode, line editing via the linenoise library, auth ability, and much more. - ZRANGEBYSCORE now supports WITHSCORES as well (backported from master). - A simplified version of redis-stat (from redis tools) added. </ChangeLog>
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# New ports collection makefile for: redis
|
|
# Date created: 03 Jul 2009
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= redis
|
|
PORTVERSION= 1.2.6
|
|
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
|
|
|
|
USE_GMAKE= yes
|
|
USE_RC_SUBR= redis.sh
|
|
BIN_FILES= redis-server redis-benchmark redis-cli
|
|
|
|
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= '10d;13s|$$$$(ARCH) ||'
|
|
.if !defined(WITH_DEBUG)
|
|
PATTERN:= ${PATTERN:S/'$/;14s|^|\#|'/}
|
|
.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>
|