-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 1.71 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for: elasticsearch
# Date created: 2011-03-07
# Whom: Jiri Kubicek <[email protected]>
#
# $FreeBSD$
#
PORTNAME= elasticsearch
PORTVERSION= 0.19.4
CATEGORIES= textproc java
MASTER_SITES= http://github.com/downloads/elasticsearch/elasticsearch/
MAINTAINER= [email protected]
COMMENT= Open Source (Apache 2), Distributed, RESTful, Search Engine built on top of Lucene
FETCH_ARGS= -pRr # default '-ApRr' prevents 302 redirects by github
JAVA_OS= native
JAVA_VENDOR= freebsd
JAVA_VERSION= 1.5+
NO_BUILD= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
USE_JAVA= yes
ELASTICSEARCH_USER?= elasticsearch
ELASTICSEARCH_GROUP?= elasticsearch
ELASTICSEARCH_VARDIR?= /var
ELASTICSEARCH_CONFDIR?= ${PREFIX}/etc/elasticsearch
ELASTICSEARCH_LOGDIR?= ${ELASTICSEARCH_VARDIR}/log/elasticsearch
ELASTICSEARCH_DATADIR?= ${ELASTICSEARCH_VARDIR}/db/elasticsearch
ELASTICSEARCH_WORKDIR?= ${ELASTICSEARCH_VARDIR}/db/elasticsearch/work
USE_RC_SUBR= elasticsearch
SUB_LIST+= PREFIX=${PREFIX} ELASTICSEARCH_CONFDIR=${ELASTICSEARCH_CONFDIR} ELASTICSEARCH_LOGDIR=${ELASTICSEARCH_LOGDIR} ELASTICSEARCH_DATADIR=${ELASTICSEARCH_DATADIR} ELASTICSEARCH_WORKDIR=${ELASTICSEARCH_WORKDIR} ELASTICSEARCH_USER=${ELASTICSEARCH_USER} ELASTICSEARCH_GROUP=${ELASTICSEARCH_GROUP}
SUB_FILES= pkg-install
.include <bsd.port.pre.mk>
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
do-install:
${INSTALL} -d ${PREFIX}/etc/${PORTNAME}
${CP} -R ${WRKSRC}/lib/ ${JAVAJARDIR}
${CP} ${WRKSRC}/config/elasticsearch.yml ${DESTDIR}$(PREFIX)/etc/elasticsearch
${CP} ${WRKSRC}/config/logging.yml ${DESTDIR}$(PREFIX)/etc/elasticsearch
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>