Skip to content

Commit

Permalink
textproc/apache-solr: make sure SOLR_HOME points to /var/db/solr
Browse files Browse the repository at this point in the history
The new solr.in.sh has the last newline removed which caused the
SOLR_HOME line not to be added on a new line.

Re-added CPE definition, as this was not part of apache-solr9.
  • Loading branch information
mfechner committed Jun 19, 2023
1 parent 16fd200 commit b096017
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion textproc/apache-solr/Makefile
@@ -1,6 +1,6 @@
PORTNAME= apache-solr
PORTVERSION= 9.2.1
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc java
MASTER_SITES= https://archive.apache.org/dist/solr/solr/${PORTVERSION}/
Expand Down Expand Up @@ -30,6 +30,9 @@ SUB_FILES= pkg-message
USERS= solr
GROUPS= ${USERS}

CPE_PRODUCT= solr
CPE_VENDOR= apache

PLIST_SUB+= PORTVERSION="${PORTVERSION}"

OPTIONS_DEFINE= JTS
Expand All @@ -45,6 +48,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/postlogs ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/solr ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}/bin
${INSTALL_DATA} ${WRKSRC}/bin/solr.in.sh ${STAGEDIR}${PREFIX}/etc/solr.in.sh.sample
${ECHO} '' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh.sample
${ECHO} 'SOLR_HOME="/var/db/solr"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh.sample
${ECHO} '# LOG4J_PROPS="/var/db/solr/log4j2.xml"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh.sample
${ECHO} 'SOLR_LOGS_DIR="/var/log/solr"' >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh.sample
Expand Down

0 comments on commit b096017

Please sign in to comment.