View | Details | Raw Unified | Return to bug 193467
Collapse All | Expand All

(-)Makefile (-4 / +4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	elasticsearch
4
PORTNAME=	elasticsearch
5
PORTVERSION=	1.3.2
5
PORTVERSION=	1.3.2
6
PORTREVISION=	1
6
CATEGORIES=	textproc java devel
7
CATEGORIES=	textproc java devel
7
MASTER_SITES=	http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \
8
MASTER_SITES=	http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \
8
		http://mirrors.rit.edu/zi/
9
		http://mirrors.rit.edu/zi/
Lines 18-24 Link Here
18
ONLY_FOR_ARCHS=	i386 amd64
19
ONLY_FOR_ARCHS=	i386 amd64
19
USE_RC_SUBR=	${PORTNAME}
20
USE_RC_SUBR=	${PORTNAME}
20
21
21
22
OPTIONS_DEFINE=	DOCS
22
OPTIONS_DEFINE=	DOCS
23
23
24
.include <bsd.port.options.mk>
24
.include <bsd.port.options.mk>
Lines 65-71 Link Here
65
SUB_LIST=	SEARCHUSER=${SEARCHUSER} \
65
SUB_LIST=	SEARCHUSER=${SEARCHUSER} \
66
		SEARCHGROUP=${SEARCHGROUP} \
66
		SEARCHGROUP=${SEARCHGROUP} \
67
		PORTVERSION=${PORTVERSION}
67
		PORTVERSION=${PORTVERSION}
68
SUB_FILES=	elasticsearch-plugin
68
SUB_FILES=	elasticsearch-plugin pkg-message
69
PLIST_SUB=	SIGAR_ARCH=${SIGAR_ARCH} \
69
PLIST_SUB=	SIGAR_ARCH=${SIGAR_ARCH} \
70
		SEARCHUSER=${SEARCHUSER} \
70
		SEARCHUSER=${SEARCHUSER} \
71
		SEARCHGROUP=${SEARCHGROUP} \
71
		SEARCHGROUP=${SEARCHGROUP} \
Lines 78-86 Link Here
78
	${SED} -i .bak -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml
78
	${SED} -i .bak -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml
79
79
80
do-install:
80
do-install:
81
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch
81
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch ${STAGEDIR}${DATADIR}
82
.for f in ${CONFIG_FILES}
82
.for f in ${CONFIG_FILES}
83
	${INSTALL} -m 440 ${WRKSRC}/config/${f} ${STAGEDIR}${PREFIX}/etc/elasticsearch/${f}.sample
83
	${INSTALL} -m 440 ${WRKSRC}/config/${f} ${STAGEDIR}${DATADIR}/${f}.sample
84
.endfor
84
.endfor
85
	${INSTALL_SCRIPT} ${WRKDIR}/elasticsearch-plugin ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
85
	${INSTALL_SCRIPT} ${WRKDIR}/elasticsearch-plugin ${STAGEDIR}${PREFIX}/bin/elasticsearch-plugin
86
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch
86
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch
(-)files/pkg-message.in (+6 lines)
Line 0 Link Here
1
======================================================================
2
3
Please see %%DATADIR%% for sample versions of
4
elasticsearch.yml and logging.yml.
5
6
======================================================================
(-)pkg-plist (-6 / +7 lines)
Lines 1-11 Link Here
1
@owner %%SEARCHUSER%%
1
@owner %%SEARCHUSER%%
2
@group %%SEARCHGROUP%%
2
@group %%SEARCHGROUP%%
3
@unexec if cmp  -s %D/etc/elasticsearch/elasticsearch.yml.sample %D/etc/elasticsearch/elasticsearch.yml; then rm -f %D/etc/elasticsearch/elasticsearch.yml; fi
3
@unexec if cmp  -s %D/%%DATADIR%%/elasticsearch.yml.sample %D/etc/elasticsearch/elasticsearch.yml; then rm -f %D/etc/elasticsearch/elasticsearch.yml; fi
4
etc/elasticsearch/elasticsearch.yml.sample
4
%%DATADIR%%/elasticsearch.yml.sample
5
@exec if [ ! -f %D/etc/elasticsearch/elasticsearch.yml ] ; then cp -p %D/%F %B/elasticsearch.yml; fi
5
@exec if [ ! -f %D/etc/elasticsearch/elasticsearch.yml ] ; then cp -p %D/%F %D/etc/elasticsearch/elasticsearch.yml; fi
6
@unexec if cmp  -s %D/etc/elasticsearch/logging.yml.sample %D/etc/elasticsearch/logging.yml; then rm -f %D/etc/elasticsearch/logging.yml; fi
6
@unexec if cmp  -s %D/%%DATADIR%%/logging.yml.sample %D/etc/elasticsearch/logging.yml; then rm -f %D/etc/elasticsearch/logging.yml; fi
7
etc/elasticsearch/logging.yml.sample
7
%%DATADIR%%/logging.yml.sample
8
@exec if [ ! -f %D/etc/elasticsearch/logging.yml ] ; then cp -p %D/%F %B/logging.yml; fi
8
@exec if [ ! -f %D/etc/elasticsearch/logging.yml ] ; then cp -p %D/%F %D/etc/elasticsearch/logging.yml; fi
9
@unexec if [ -d %%ELASTIC_LOGDIR%% ]; then echo "You should remove %%ELASTIC_LOGDIR%% if you don't need it any more."; fi
9
@unexec if [ -d %%ELASTIC_LOGDIR%% ]; then echo "You should remove %%ELASTIC_LOGDIR%% if you don't need it any more."; fi
10
@unexec if [ -d %%ELASTIC_DBDIR%% ]; then echo "You should remove %%ELASTIC_DBDIR%% if you don't need it any more."; fi
10
@unexec if [ -d %%ELASTIC_DBDIR%% ]; then echo "You should remove %%ELASTIC_DBDIR%% if you don't need it any more."; fi
11
@owner root
11
@owner root
Lines 39-44 Link Here
39
%%PORTDOCS%%%%DOCSDIR%%/NOTICE.txt
39
%%PORTDOCS%%%%DOCSDIR%%/NOTICE.txt
40
%%PORTDOCS%%%%DOCSDIR%%/README.textile
40
%%PORTDOCS%%%%DOCSDIR%%/README.textile
41
%%PORTDOCS%%@dirrm %%DOCSDIR%%
41
%%PORTDOCS%%@dirrm %%DOCSDIR%%
42
@dirrmtry %%DATADIR%%
42
@dirrmtry etc/elasticsearch
43
@dirrmtry etc/elasticsearch
43
@dirrm lib/elasticsearch/sigar
44
@dirrm lib/elasticsearch/sigar
44
@dirrm lib/elasticsearch
45
@dirrm lib/elasticsearch

Return to bug 193467