mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Update from 1.2.16 to 1.2.17
- Use options helpers PR: ports/191513 Submitted by: Radim Kolar <hsn@sendmail.cz>
This commit is contained in:
parent
8d238ec40e
commit
a23c41e7a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360634
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= cassandra
|
||||
PORTVERSION= 1.2.16
|
||||
PORTVERSION= 1.2.17
|
||||
CATEGORIES= databases java
|
||||
MASTER_SITES= APACHE
|
||||
MASTER_SITE_SUBDIR= cassandra/${PORTVERSION}
|
||||
@ -14,6 +14,8 @@ COMMENT= Open source distributed database management system
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/snappy-java.jar:${PORTSDIR}/archivers/snappy-java
|
||||
|
||||
JAVA_VERSION= 1.7
|
||||
JAVA_VENDOR= openjdk
|
||||
REINPLACE_ARGS= -i ''
|
||||
@ -28,6 +30,7 @@ CONFIGS= cassandra-topology.properties \
|
||||
commitlog_archiving.properties
|
||||
SCRIPTS= cassandra \
|
||||
cassandra-cli \
|
||||
cqlsh \
|
||||
json2sstable \
|
||||
nodetool \
|
||||
sstable2json \
|
||||
@ -41,36 +44,17 @@ MX4J_DESC= Enable HTTP interface for JMX
|
||||
JNA_DESC= Use JNA native access
|
||||
CQL_DESC= Install cqlsh
|
||||
DOCS_DESC= Install javadoc documentation
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
SUB_FILES= repaircluster
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
MX4J_RUN_DEPENDS= ${JAVAJARDIR}/mx4j-tools.jar:${PORTSDIR}/java/mx4j
|
||||
JNA_RUN_DEPENDS= ${JAVAJARDIR}/jna.jar:${PORTSDIR}/devel/jna
|
||||
CQL_USE= PYTHON=yes
|
||||
|
||||
RUN_DEPENDS+= ${JAVALIBDIR}/snappy-java.jar:${PORTSDIR}/archivers/snappy-java
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
PORTDOCS= javadoc *.txt
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MMX4J}
|
||||
RUN_DEPENDS+= ${JAVAJARDIR}/mx4j-tools.jar:${PORTSDIR}/java/mx4j
|
||||
PLIST_SUB+= MX4J=""
|
||||
.else
|
||||
PLIST_SUB+= MX4J="@comment "
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MJNA}
|
||||
RUN_DEPENDS+= ${JAVAJARDIR}/jna.jar:${PORTSDIR}/devel/jna
|
||||
PLIST_SUB+= JNA=""
|
||||
.else
|
||||
PLIST_SUB+= JNA="@comment "
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MCQL}
|
||||
USE_PYTHON= yes
|
||||
PLIST_SUB+= CQL=""
|
||||
SCRIPTS+= cqlsh
|
||||
.else
|
||||
PLIST_SUB+= CQL="@comment "
|
||||
.endif
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract:
|
||||
@${RM} ${WRKSRC}/bin/*.bat ${WRKSRC}/bin/stop-server \
|
||||
@ -79,11 +63,6 @@ post-extract:
|
||||
.for i in ${CONFIGS}
|
||||
@${MV} ${WRKSRC}/conf/${i} ${WRKSRC}/conf/${i}.sample
|
||||
.endfor
|
||||
.if empty(PORT_OPTIONS:MCQL)
|
||||
@${RM} -r ${WRKSRC}/pylib
|
||||
@${RM} ${WRKSRC}/bin/cqlsh
|
||||
@${RM} ${WRKSRC}/lib/*.zip
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/share/cassandra|${DATADIR}/bin|' \
|
||||
@ -97,48 +76,35 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|\`dirname "\$$\0"\`/..|${DATADIR}|' \
|
||||
${WRKSRC}/bin/cassandra.in.sh
|
||||
@${RM} -f ${WRKSRC}/conf/*.orig
|
||||
.if ${PORT_OPTIONS:MCQL}
|
||||
@${REINPLACE_CMD} -e 's|os.path.dirname(__file__)|"${DATADIR}/bin"|' \
|
||||
${WRKSRC}/bin/cqlsh
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
.if ${PORT_OPTIONS:MCQL}
|
||||
@${PYTHON_CMD} -m compileall ${WRKSRC}/pylib
|
||||
${PYTHON_CMD} -m compileall ${WRKSRC}/pylib
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
@cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
||||
@${LN} -s ${JAVAJARDIR}/snappy-java.jar ${STAGEDIR}${DATADIR}/lib/snappy-java.jar
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
||||
${LN} -s ${JAVAJARDIR}/snappy-java.jar ${STAGEDIR}${DATADIR}/lib/snappy-java.jar
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@${MV} ${STAGEDIR}${DATADIR}/javadoc ${STAGEDIR}${DOCSDIR}
|
||||
@${MV} ${STAGEDIR}${DATADIR}/*.txt ${STAGEDIR}${DOCSDIR}
|
||||
.else
|
||||
@${RM} -rf ${STAGEDIR}${DATADIR}/javadoc ${STAGEDIR}${DATADIR}/*.txt
|
||||
.endif
|
||||
${MV} ${STAGEDIR}${DATADIR}/javadoc ${STAGEDIR}${DOCSDIR}
|
||||
${MV} ${STAGEDIR}${DATADIR}/*.txt ${STAGEDIR}${DOCSDIR}
|
||||
@cd ${STAGEDIR}${DATADIR}/bin/ && ${CHMOD} ${BINMODE} ${SCRIPTS}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/repaircluster ${STAGEDIR}${DATADIR}/bin
|
||||
@${LN} -s ${DATADIR}/bin/cassandra-cli ${STAGEDIR}${PREFIX}/bin/cassandra-cli
|
||||
@${LN} -s ${DATADIR}/bin/nodetool ${STAGEDIR}${PREFIX}/bin/nodetool
|
||||
@${LN} -s ${DATADIR}/bin/sstableloader ${STAGEDIR}${PREFIX}/bin/sstableloader
|
||||
@${LN} -s ${DATADIR}/bin/repaircluster ${STAGEDIR}${PREFIX}/bin/repaircluster
|
||||
@${LN} -s ${DATADIR}/bin/json2sstable ${STAGEDIR}${PREFIX}/bin/json2sstable
|
||||
@${LN} -s ${DATADIR}/bin/sstable2json ${STAGEDIR}${PREFIX}/bin/sstable2json
|
||||
@${LN} -s ${DATADIR}/bin/sstablekeys ${STAGEDIR}${PREFIX}/bin/sstablekeys
|
||||
@${LN} -s ${DATADIR}/bin/sstablescrub ${STAGEDIR}${PREFIX}/bin/sstablescrub
|
||||
@${LN} -s ${DATADIR}/bin/cassandra-shuffle ${STAGEDIR}${PREFIX}/bin/cassandra-shuffle
|
||||
|
||||
.if ${PORT_OPTIONS:MCQL}
|
||||
@${LN} -s ${DATADIR}/bin/cqlsh ${STAGEDIR}${PREFIX}/bin/cqlsh
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MMX4J}
|
||||
@${LN} -s ${LOCALBASE}/share/java/classes/mx4j-tools.jar ${STAGEDIR}${DATADIR}/lib/mx4j-tools.jar
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MJNA}
|
||||
@${LN} -s ${LOCALBASE}/share/java/classes/jna.jar ${STAGEDIR}${DATADIR}/lib/jna.jar
|
||||
@${LN} -s ${LOCALBASE}/share/java/classes/jna-platform.jar ${STAGEDIR}${DATADIR}/lib/jna-platform.jar
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/repaircluster ${STAGEDIR}${DATADIR}/bin
|
||||
${LN} -s ${DATADIR}/bin/cassandra-cli ${STAGEDIR}${PREFIX}/bin/cassandra-cli
|
||||
${LN} -s ${DATADIR}/bin/nodetool ${STAGEDIR}${PREFIX}/bin/nodetool
|
||||
${LN} -s ${DATADIR}/bin/sstableloader ${STAGEDIR}${PREFIX}/bin/sstableloader
|
||||
${LN} -s ${DATADIR}/bin/repaircluster ${STAGEDIR}${PREFIX}/bin/repaircluster
|
||||
${LN} -s ${DATADIR}/bin/json2sstable ${STAGEDIR}${PREFIX}/bin/json2sstable
|
||||
${LN} -s ${DATADIR}/bin/sstable2json ${STAGEDIR}${PREFIX}/bin/sstable2json
|
||||
${LN} -s ${DATADIR}/bin/sstablekeys ${STAGEDIR}${PREFIX}/bin/sstablekeys
|
||||
${LN} -s ${DATADIR}/bin/sstablescrub ${STAGEDIR}${PREFIX}/bin/sstablescrub
|
||||
${LN} -s ${DATADIR}/bin/cassandra-shuffle ${STAGEDIR}${PREFIX}/bin/cassandra-shuffle
|
||||
${LN} -s ${DATADIR}/bin/cqlsh ${STAGEDIR}${PREFIX}/bin/cqlsh
|
||||
${LN} -s ${LOCALBASE}/share/java/classes/mx4j-tools.jar ${STAGEDIR}${DATADIR}/lib/mx4j-tools.jar
|
||||
${LN} -s ${LOCALBASE}/share/java/classes/jna.jar ${STAGEDIR}${DATADIR}/lib/jna.jar
|
||||
${LN} -s ${LOCALBASE}/share/java/classes/jna-platform.jar ${STAGEDIR}${DATADIR}/lib/jna-platform.jar
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (apache-cassandra-1.2.16-bin.tar.gz) = 5ff7a844fca5ec326729001703aaca436543e560485ac50a1c9a5185c205ec46
|
||||
SIZE (apache-cassandra-1.2.16-bin.tar.gz) = 16880266
|
||||
SHA256 (apache-cassandra-1.2.17-bin.tar.gz) = fbd96369a113a3eabea7d784fe9f6cadf7598ade38443fa0d70d48ff66aaf576
|
||||
SIZE (apache-cassandra-1.2.17-bin.tar.gz) = 16932862
|
||||
|
@ -85,9 +85,9 @@ bin/cassandra-shuffle
|
||||
%%CQL%%%%DATADIR%%/pylib/cqlshlib/util.py
|
||||
%%CQL%%%%DATADIR%%/pylib/cqlshlib/util.pyc
|
||||
%%DATADIR%%/lib/antlr-3.2.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-1.2.16.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-clientutil-1.2.16.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-thrift-1.2.16.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-1.2.17.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-clientutil-1.2.17.jar
|
||||
%%DATADIR%%/lib/apache-cassandra-thrift-1.2.17.jar
|
||||
%%DATADIR%%/lib/avro-1.4.0-fixes.jar
|
||||
%%DATADIR%%/lib/avro-1.4.0-sources-fixes.jar
|
||||
%%DATADIR%%/lib/commons-cli-1.1.jar
|
||||
|
Loading…
Reference in New Issue
Block a user