aboutsummaryrefslogtreecommitdiffstats
path: root/devel/storm/Makefile
blob: aaac69477cba02e5562b4a1cd493da177fd24062 (plain) (blame)
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
# Created by: Radim Kolar <hsn@sendmail.cz>
# $FreeBSD$

PORTNAME=   storm
DISTVERSION=    0.9.2-incubating
CATEGORIES= devel java
MASTER_SITES=   APACHE/incubator/${PORTNAME}/apache-${PORTNAME}-${DISTVERSION}
DISTNAME=   apache-storm-${DISTVERSION}

MAINTAINER= hsn@sendmail.cz
COMMENT=    Distributed realtime computation system

LICENSE=    APACHE20

USES=       python:2.7
USE_JAVA=   yes
JAVA_VERSION=   1.7
JAVA_VENDOR=    openjdk
NO_ARCH=    yes
USE_RC_SUBR=    storm-nimbus storm-supervisor

NO_BUILD=   yes

STORM_DIRS= bin examples external lib public
STORM_CFG_DIRS= conf logback
STORM_CFG_FILES=    conf/storm.yaml conf/storm_env.ini logback/cluster.xml

post-extract:
        ${RM} ${WRKSRC}/bin/*.cmd

post-patch:
        ${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python2.7|" ${WRKSRC}/bin/storm
        ${RM} ${WRKSRC}/bin/*.bak
.for i in ${STORM_CFG_FILES}
        ${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sample
.endfor

do-install:
        ${MKDIR} ${STAGEDIR}${DATADIR}
        cd ${WRKSRC} && ${FIND} ${STORM_DIRS} ${STORM_CFG_DIRS} | \
            ${CPIO} --quiet -pdmu ${STAGEDIR}${DATADIR}
        ${INSTALL_DATA} ${WRKSRC}/RELEASE ${STAGEDIR}${DATADIR}
        ${LN} -sf ${DATADIR}/bin/storm ${STAGEDIR}${PREFIX}/bin/storm

.include <bsd.port.mk>