mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
5a52a08234
java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and java/openjdk6 and java/openjdk6-jre were removed from the ports tree (r512663). Now this patch completely removes remaining stuff from the ports tree. PR: 241953 (exp-run) Reviewed by: glewis Approved by: portmgr (antoine) Differential Revision: https://reviews.freebsd.org/D22342
67 lines
2.0 KiB
Makefile
67 lines
2.0 KiB
Makefile
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hive
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= APACHE/${PORTNAME}/stable-2 \
|
|
LOCAL/demon/:maven \
|
|
http://people.freebsd.org/~demon/:maven
|
|
DISTFILES= apache-${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} FreeBSD-${PORTNAME}-${PORTVERSION}-maven-repository.tar.gz:maven
|
|
DIST_SUBDIR= hadoop
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
COMMENT= Framework for data warehousing on top of Hadoop
|
|
|
|
BROKEN= unfetchable
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven3/bin/mvn:devel/maven3 \
|
|
bash:shells/bash
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
yarn:devel/hadoop2
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= apache
|
|
USE_JAVA= yes
|
|
WRKSRC= ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}-src
|
|
|
|
HIVE_USER= hive
|
|
HIVE_GROUP= hive
|
|
HIVE_LOGDIR= /var/log/hive
|
|
HIVE_RUNDIR= /var/run/hive
|
|
PLIST_SUB= HIVE_VER=${PORTVERSION} \
|
|
HIVE_USER=${HIVE_USER} \
|
|
HIVE_GROUP=${HIVE_GROUP} \
|
|
HIVE_RUNDIR=${HIVE_RUNDIR} \
|
|
HIVE_LOGDIR=${HIVE_LOGDIR}
|
|
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
|
|
HIVE_USER=${HIVE_USER} \
|
|
HIVE_GROUP=${HIVE_GROUP} \
|
|
HIVE_RUNDIR=${HIVE_RUNDIR} \
|
|
HIVE_LOGDIR=${HIVE_LOGDIR}
|
|
USERS= ${HIVE_USER}
|
|
GROUPS= ${HIVE_GROUP}
|
|
USE_RC_SUBR= hiveserver2 metastore
|
|
|
|
HIVE_DIST= ${WRKSRC}/packaging/target/apache-hive-${PORTVERSION}-bin/apache-hive-${PORTVERSION}-bin
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e s#%%PREFIX%%#${PREFIX}# -e s#%%LOCALBASE%%#${LOCALBASE}# ${WRKSRC}/conf/hive-env.sh.template
|
|
|
|
pre-build:
|
|
${RM} ${WRKSRC}/bin/*.cmd ${WRKSRC}/bin/ext/*.cmd
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/m2 --offline clean install -Phadoop-2,dist -DskipTests
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/hive
|
|
cd ${HIVE_DIST} && ${COPYTREE_BIN} bin ${STAGEDIR}${PREFIX}/hive
|
|
cd ${HIVE_DIST} && ${COPYTREE_SHARE} "conf examples hcatalog lib scripts" ${STAGEDIR}${PREFIX}/hive
|
|
${MKDIR} ${STAGEDIR}${HIVE_LOGDIR}
|
|
${MKDIR} ${STAGEDIR}${HIVE_RUNDIR}
|
|
|
|
.include <bsd.port.mk>
|