aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-07-04 23:27:36 +0800
committerdanilo <danilo@FreeBSD.org>2014-07-04 23:27:36 +0800
commitdf32eaf8c19629ca87336049863ff6f43505defe (patch)
tree52570cc94289541509ddcda573d078bda16c6d71 /databases
parent65b2b1c24b42055f36d967321e1d78f822ca7cc9 (diff)
downloadfreebsd-ports-gnome-df32eaf8c19629ca87336049863ff6f43505defe.tar.gz
freebsd-ports-gnome-df32eaf8c19629ca87336049863ff6f43505defe.tar.zst
freebsd-ports-gnome-df32eaf8c19629ca87336049863ff6f43505defe.zip
- Update from 1.2.16 to 1.2.17
- Use options helpers PR: ports/191513 Submitted by: Radim Kolar <hsn@sendmail.cz>
Diffstat (limited to 'databases')
-rw-r--r--databases/cassandra/Makefile90
-rw-r--r--databases/cassandra/distinfo4
-rw-r--r--databases/cassandra/pkg-plist6
3 files changed, 33 insertions, 67 deletions
diff --git a/databases/cassandra/Makefile b/databases/cassandra/Makefile
index 0af2ea6d7af7..0c8df000ad22 100644
--- a/databases/cassandra/Makefile
+++ b/databases/cassandra/Makefile
@@ -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>
-
-RUN_DEPENDS+= ${JAVALIBDIR}/snappy-java.jar:${PORTSDIR}/archivers/snappy-java
+MX4J_RUN_DEPENDS= ${JAVAJARDIR}/mx4j-tools.jar:${PORTSDIR}/java/mx4j
+JNA_RUN_DEPENDS= ${JAVAJARDIR}/jna.jar:${PORTSDIR}/devel/jna
+CQL_USE= PYTHON=yes
-.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>
diff --git a/databases/cassandra/distinfo b/databases/cassandra/distinfo
index 74d66e7b295c..d1eddd336f69 100644
--- a/databases/cassandra/distinfo
+++ b/databases/cassandra/distinfo
@@ -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
diff --git a/databases/cassandra/pkg-plist b/databases/cassandra/pkg-plist
index ccc53ecb3e4a..acf3e4372069 100644
--- a/databases/cassandra/pkg-plist
+++ b/databases/cassandra/pkg-plist
@@ -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