aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/apache-solr/Makefile
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-09-11 19:43:36 +0800
committerpi <pi@FreeBSD.org>2016-09-11 19:43:36 +0800
commitf206ce0b80082c8e8651ce9c2477ff512a3cb874 (patch)
treedde10ba603dad049c8285071b971d172a35d972b /textproc/apache-solr/Makefile
parenta07068b8108f869f9dc706846eb7c5e78797dcd7 (diff)
downloadfreebsd-ports-gnome-f206ce0b80082c8e8651ce9c2477ff512a3cb874.tar.gz
freebsd-ports-gnome-f206ce0b80082c8e8651ce9c2477ff512a3cb874.tar.zst
freebsd-ports-gnome-f206ce0b80082c8e8651ce9c2477ff512a3cb874.zip
textproc/apache-solr: 5.5.2 -> 6.2.0
- submitter becomes maintainer PR: 201455, 212313 Changes: https://lucene.apache.org/solr/6_2_0/changes/Changes.html Submitted by: Matthias Fechner <idefix@fechner.net>
Diffstat (limited to 'textproc/apache-solr/Makefile')
-rw-r--r--textproc/apache-solr/Makefile38
1 files changed, 27 insertions, 11 deletions
diff --git a/textproc/apache-solr/Makefile b/textproc/apache-solr/Makefile
index 7fc68f3f0b25..a333c8a5d726 100644
--- a/textproc/apache-solr/Makefile
+++ b/textproc/apache-solr/Makefile
@@ -2,36 +2,52 @@
# $FreeBSD$
PORTNAME= apache-solr
-PORTVERSION= 5.5.2
+PORTVERSION= 6.2.0
CATEGORIES= textproc java
MASTER_SITES= APACHE/lucene/solr/${PORTVERSION}
DISTNAME= solr-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= idefix@fechner.net
COMMENT= High performance search server built using Lucene Java
LICENSE= APACHE20
-CONFLICT= apache-solr3-* apache-solr-4*
+CONFLICTS_INSTALL= apache-solr3-* apache-solr-4* apache-solr-5*
+
+RUN_DEPENDS= bash:shells/bash \
+ lsof:sysutils/lsof
USES= cpe tar:tgz
USE_JAVA= yes
-JAVA_VERSION= 1.7+
+JAVA_VERSION= 1.8+
+JAVA_RUN= yes
NO_BUILD= yes
NO_ARCH= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
-PORTEXAMPLES= *
+SUB_FILES= pkg-message pkg-install
USE_RC_SUBR= solr
+USERS= solr
+GROUPS= ${USERS}
CPE_PRODUCT= solr
CPE_VENDOR= apache
+post-patch:
+ ${REINPLACE_CMD} -e 's|solr.log=.*|solr.log=/var/log/solr|g' ${WRKSRC}/server/resources/log4j.properties
+
do-install:
- cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR}
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/server && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/solr ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/post ${STAGEDIR}${PREFIX}/bin
+ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/solr ${STAGEDIR}${PREFIX}/${CPE_PRODUCT}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bin/solr.in.sh ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+ ${ECHO} SOLR_HOME=\"/var/db/solr\" >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+ ${ECHO} LOG4J_PROPS=\"/var/db/solr/log4j.properties\" >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+ ${ECHO} SOLR_LOGS_DIR=\"/var/log/solr\" >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+ ${ECHO} SOLR_PORT=\"8983\" >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+ ${ECHO} SOLR_PID_DIR=\"/var/db/solr\" >> ${STAGEDIR}${PREFIX}/etc/solr.in.sh-dist
+
+ ${MKDIR} ${STAGEDIR}/var/db/solr
+ ${MKDIR} ${STAGEDIR}/var/log/solr
+ ${INSTALL_DATA} ${WRKSRC}/server/solr/solr.xml ${STAGEDIR}/var/db/solr/solr.xml-dist
+ ${INSTALL_DATA} ${WRKSRC}/server/resources/log4j.properties ${STAGEDIR}/var/db/solr/log4j.properties-dist
.include <bsd.port.mk>