b23b1ef0a5
- Provide missing files like bin/solr and bin/post - still open: provide a working startup script and some instructions on how to configure PR: 201455 Submitted by: idefix@fechner.net, elferdo@gmail.com
39 lines
994 B
Makefile
39 lines
994 B
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= apache-solr
|
|
PORTVERSION= 5.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc java
|
|
MASTER_SITES= APACHE/lucene/solr/${PORTVERSION}
|
|
DISTNAME= solr-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= High performance search server built using Lucene Java
|
|
|
|
LICENSE= APACHE20
|
|
|
|
CONFLICT= apache-solr3-* apache-solr-4*
|
|
|
|
USES= cpe tar:tgz
|
|
JAVA_VERSION= 1.7+
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
USE_JAVA= yes
|
|
PORTEXAMPLES= *
|
|
LATEST_LINK= apache-solr
|
|
USE_RC_SUBR= solr
|
|
|
|
CPE_PRODUCT= solr
|
|
CPE_VENDOR= apache
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|