Changeset View
Changeset View
Standalone View
Standalone View
databases/neo4j/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= neo4j | PORTNAME= neo4j | ||||
DISTVERSION= 3.0.4 | DISTVERSION= 3.2.1 | ||||
PORTREVISION= 2 | PORTREVISION= 1 | ||||
CATEGORIES= databases java | CATEGORIES= databases java | ||||
MASTER_SITES= http://dist.neo4j.org/ | MASTER_SITES= http://dist.neo4j.org/ | ||||
DISTNAME= ${PORTNAME}-community-${DISTVERSION}-unix | DISTNAME= ${PORTNAME}-community-${DISTVERSION}-unix | ||||
LICENSE= GPLv3 | |||||
MAINTAINER= crees@FreeBSD.org | MAINTAINER= crees@FreeBSD.org | ||||
COMMENT= High performance graph store and database | COMMENT= High performance graph store and database | ||||
RUN_DEPENDS= bash:shells/bash | RUN_DEPENDS= bash:shells/bash | ||||
WRKSRC= ${WRKDIR}/${DISTNAME:S,-unix,,} | WRKSRC= ${WRKDIR}/${DISTNAME:S,-unix,,} | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
USES= shebangfix | USES= shebangfix | ||||
SHEBANG_FILES= bin/neo4j-shell bin/neo4j-import | SHEBANG_FILES= bin/cypher-shell bin/neo4j-admin bin/neo4j-shell bin/neo4j-import | ||||
USE_JAVA= yes | USE_JAVA= yes | ||||
USE_RC_SUBR= ${PORTNAME} | USE_RC_SUBR= ${PORTNAME} | ||||
SUB_FILES= ${PORTNAME}.sh | SUB_FILES= ${PORTNAME}.sh | ||||
DBDIR= /var/db/${PORTNAME} | |||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} 's,%%DATADIR%%,${DATADIR},g;s,%%PREFIX%%,${PREFIX},g' \ | ${REINPLACE_CMD} 's,%%DBDIR%%,${DBDIR},g;s,%%PREFIX%%,${PREFIX},g' \ | ||||
${WRKSRC}/bin/neo4j-shared.sh ${WRKSRC}/conf/neo4j.conf | ${WRKSRC}/bin/cypher-shell ${WRKSRC}/bin/neo4j* \ | ||||
${WRKSRC}/conf/neo4j.conf | |||||
do-install: | do-install: | ||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/tools | ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/libexec/tools | ||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/tools/* \ | ${INSTALL_SCRIPT} ${WRKSRC}/bin/tools/* \ | ||||
${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/tools | ${STAGEDIR}${PREFIX}/${PORTNAME}/libexec/tools | ||||
.for j in j j-admin j-import j-shell | .for name in cypher-shell neo4j neo4j-admin neo4j-import neo4j-shell | ||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/neo4$j ${STAGEDIR}${PREFIX}/libexec/${PORTNAME} | ${INSTALL_SCRIPT} ${WRKSRC}/bin/${name} ${STAGEDIR}${PREFIX}/bin | ||||
-cd ${STAGEDIR}${PREFIX}/bin && ${LN} ${PORTNAME} neo4$j 2>/dev/null | |||||
.endfor | .endfor | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugins | ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/plugins | ||||
${INSTALL_SCRIPT} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/lib/${PORTNAME} | ${INSTALL_SCRIPT} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/${PORTNAME}/lib | ||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}-shared.sh \ | .for f in ${PORTNAME}.conf | ||||
${STAGEDIR}${PREFIX}/libexec/${PORTNAME} | |||||
.for f in ${PORTNAME}.conf ${PORTNAME}-wrapper.conf | |||||
${INSTALL_DATA} ${WRKSRC}/conf/$f \ | ${INSTALL_DATA} ${WRKSRC}/conf/$f \ | ||||
${STAGEDIR}${PREFIX}/etc/$f.sample | ${STAGEDIR}${PREFIX}/etc/$f.sample | ||||
.endfor | .endfor | ||||
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/etc/neo4j-certificates | ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/etc/neo4j-certificates | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |