60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# 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} -f ${WRKSRC}/bin/*.cmd
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python2.7|" ${WRKSRC}/bin/storm
|
|
${RM} -f ${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>
|