1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/databases/neo4j/Makefile
Bernhard Froehlich 62f30c9463
databases/neo4j: Add CPE information
Approved by:    portmgr (blanket)
2021-08-31 11:24:15 +00:00

50 lines
1.6 KiB
Makefile

PORTNAME= neo4j
DISTVERSION= 3.5.28
CATEGORIES= databases java
MASTER_SITES= http://dist.neo4j.org/
DISTNAME= ${PORTNAME}-community-${DISTVERSION}-unix
MAINTAINER= jonathan@FreeBSD.org
COMMENT= High performance graph store and database
LICENSE= GPLv3
RUN_DEPENDS= bash:shells/bash
WRKSRC= ${WRKDIR}/${DISTNAME:S,-unix,,}
NO_BUILD= yes
USES= cpe shebangfix
SHEBANG_FILES= bin/cypher-shell bin/neo4j-admin bin/neo4j-import
USE_JAVA= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= ${PORTNAME}.sh
SUB_LIST= LOGDIR=${LOGDIR} RUNDIR=${RUNDIR}
PLIST_SUB= DBDIR=${DBDIR} DISTVERSION=${DISTVERSION}
DBDIR= ${DESTDIR}/var/db/${PORTNAME}
LOGDIR= ${DESTDIR}/var/log/${PORTNAME}
RUNDIR= ${DESTDIR}/var/run/
post-patch:
${REINPLACE_CMD} 's,%%DBDIR%%,${DBDIR},g;s,%%JAVA_HOME%%,${JAVA_HOME},g;s,%%LOGDIR%%,${LOGDIR},g;s,%%PREFIX%%,${PREFIX},g;s,%%RUNDIR%%,${RUNDIR},g' \
${WRKSRC}/bin/cypher-shell ${WRKSRC}/bin/neo4j* \
${WRKSRC}/conf/neo4j.conf
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/libexec/tools
${INSTALL_SCRIPT} ${WRKSRC}/bin/tools/* \
${STAGEDIR}${PREFIX}/${PORTNAME}/libexec/tools
.for name in cypher-shell neo4j neo4j-admin neo4j-import
${INSTALL_SCRIPT} ${WRKSRC}/bin/${name} ${STAGEDIR}${PREFIX}/bin
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/plugins
${INSTALL_SCRIPT} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/${PORTNAME}/lib
.for f in ${PORTNAME}.conf
${INSTALL_DATA} ${WRKSRC}/conf/$f \
${STAGEDIR}${PREFIX}/etc/$f.sample
.endfor
${MKDIR} ${STAGEDIR}${DBDIR} ${STAGEDIR}${PREFIX}/etc/neo4j-certificates
.include <bsd.port.mk>