# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {ieee.org:s.t.smith @essandess} openmaintainer
description An open source enterprise search platform.
long_description Solr is the popular, blazing fast open source enterprise\
search platform from the Apache Lucene project.
homepage https://lucene.apache.org/solr/
master_sites apache:lucene/solr/${version}/
checksums rmd160 89726b465cb6807d0aaad5677929043aeba39c01 \
sha256 1a9820915186227eaf6fcb851d60690853911b92a15b4e0b7f046324eb8d1387 \
# see https://lucene.apache.org/solr/guide/8_1/solr-system-requirements.html
# JDK port to install if required java not found
add_users ${solrUser} group=${solrGroup} home=${prefix}/var/solr
# set the destination paths.
set java_basepath ${prefix}/share/java
set solr_destpath ${java_basepath}/${distname}
set solr_path ${solr_destpath}
# Used to define environment variables for bin/solr
set solr_home ${prefix}/var/solr
set solr_data_home ${prefix}/var/db/solr
set solr_logs_dir ${solr_home}/logs
set solr_pid_dir ${prefix}/var/run/solr
# This is what to set for fine-tuned Java memory control; see bin/solr
set solr_log_prestart_rotation true
set solr_ulimit_checks false
xinstall -d ${destroot}${java_basepath}
copy ${worksrcpath} ${destroot}${java_basepath}