2010-01-19 04:52:31 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= kumofs
|
2010-12-25 11:29:14 +01:00
|
|
|
PORTVERSION= 0.4.13
|
2010-01-19 04:52:31 +01:00
|
|
|
CATEGORIES= databases
|
2010-04-26 15:39:47 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://cloud.github.com/downloads/etolabo/kumofs/
|
2010-01-19 04:52:31 +01:00
|
|
|
MASTER_SITE_SUBDIR= kuriyama
|
|
|
|
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2010-01-19 23:28:43 +01:00
|
|
|
COMMENT= Scalable and highly available distributed key-value store
|
2010-01-19 04:52:31 +01:00
|
|
|
|
2013-12-11 19:08:52 +01:00
|
|
|
LIB_DEPENDS= libmsgpack.so:${PORTSDIR}/devel/msgpack \
|
|
|
|
libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet
|
2010-01-19 04:52:31 +01:00
|
|
|
RUN_DEPENDS= rubygem-msgpack>0:${PORTSDIR}/devel/rubygem-msgpack
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool autoheader autoconf automake aclocal
|
2010-01-19 04:52:31 +01:00
|
|
|
ACLOCAL_ARGS= # empty
|
|
|
|
AUTOMAKE_ARGS= --add-missing --copy
|
2010-01-21 14:54:52 +01:00
|
|
|
CONFIGURE_ARGS= --with-msgpack=${LOCALBASE} --with-tokyocabinet=${LOCALBASE}
|
2014-03-01 22:23:14 +01:00
|
|
|
USES= gmake
|
|
|
|
USE_GCC= any
|
2010-01-19 04:52:31 +01:00
|
|
|
USE_RUBY= yes
|
2010-04-27 16:54:52 +02:00
|
|
|
USE_RC_SUBR= kumofs-manager kumofs-server kumofs-gateway
|
2010-04-26 15:39:47 +02:00
|
|
|
PIDDIR?= /var/run/kumofs
|
|
|
|
LOGDIR?= /var/log/kumofs
|
|
|
|
PLIST_SUB= PIDDIR=${PIDDIR} LOGDIR=${LOGDIR}
|
|
|
|
USERS= kumofs
|
|
|
|
GROUPS= kumofs
|
2010-01-19 04:52:31 +01:00
|
|
|
|
2010-01-21 14:54:52 +01:00
|
|
|
MAN1= kumo-gateway.1 \
|
|
|
|
kumo-manager.1 \
|
|
|
|
kumo-server.1 \
|
|
|
|
kumoctl.1 \
|
2010-01-19 04:52:31 +01:00
|
|
|
kumohash.1 \
|
|
|
|
kumolog.1 \
|
|
|
|
kumomergedb.1 \
|
|
|
|
kumostat.1 \
|
|
|
|
kumotop.1
|
|
|
|
|
2013-09-20 18:13:47 +02:00
|
|
|
NO_STAGE= yes
|
2010-01-19 04:52:31 +01:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}; ${TOUCH} README
|
|
|
|
cd ${WRKSRC}; ${LIBTOOLIZE} --force --copy
|
|
|
|
|
2010-04-26 15:39:47 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PIDDIR}
|
|
|
|
${CHOWN} ${USERS}:${GROUPS} ${PIDDIR}
|
|
|
|
${MKDIR} ${LOGDIR}
|
|
|
|
${CHOWN} ${USERS}:${GROUPS} ${LOGDIR}
|
|
|
|
${ECHO} "@exec ${CHOWN} ${USERS}:${GROUPS} ${PIDDIR} ${LOGDIR}" >> ${TMPPLIST}
|
|
|
|
|
2010-01-21 14:54:52 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+=CFLAGS="${CFLAGS} -march=i686" CXXFLAGS="${CXXFLAGS} -march=i686"
|
|
|
|
.endif
|
|
|
|
|
2010-06-19 09:11:49 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
2010-01-21 14:54:52 +01:00
|
|
|
.include <bsd.port.post.mk>
|