mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
e515c443ca
Feature safe: yes <ChangeLog> UPGRADE URGENCY: High for users using replication with a DB identifier higher than 9, or chaining replication so that slaves are attached to other slaves. Low for all the other users. * [FEATURE] Redis --test-meory improved with new test testing addressing. * [BUGFIX] Fixed a memory leak: happens when replication is used with DB > 9. * [BUGFIX] Fixed a replication bug that happens in chained replicaiton when a slave is attached to a master that is later turned into a slave. Now the chained slave reconnection is properly forced. </ChangeLog>
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# New ports collection makefile for: redis
|
|
# Date created: 03 Jul 2009
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= redis
|
|
PORTVERSION= 2.4.10
|
|
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-scripting-2.*
|
|
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= "V=yo"
|
|
USE_RC_SUBR= redis.sh
|
|
BIN_FILES= redis-benchmark redis-check-aof redis-check-dump \
|
|
redis-cli 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}
|
|
|
|
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
|
|
|
|
post-install:
|
|
.for d in ${REDIS_LOGDIR} ${REDIS_RUNDIR} ${REDIS_DBDIR}
|
|
[ -d ${d} ] || ${MKDIR} ${d} && ${CHOWN} ${USERS}:${GROUPS} ${d}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|