diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2014-07-06 09:33:41 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2014-07-06 09:33:41 +0000 |
commit | a21185e8ed3a8a5f8a78e16bfb17b8ff52e65e06 (patch) | |
tree | 5e6132b04c66adb18a6182107c179cd259722e0e /devel/hadoop2 | |
parent | 2e47fec0cea53ee378fa050b344009646b63af2b (diff) | |
download | ports-a21185e8ed3a8a5f8a78e16bfb17b8ff52e65e06.tar.gz ports-a21185e8ed3a8a5f8a78e16bfb17b8ff52e65e06.zip |
Notes
Diffstat (limited to 'devel/hadoop2')
-rw-r--r-- | devel/hadoop2/Makefile | 20 | ||||
-rw-r--r-- | devel/hadoop2/distinfo | 4 | ||||
-rw-r--r-- | devel/hadoop2/files/settings.xml | 3 |
3 files changed, 15 insertions, 12 deletions
diff --git a/devel/hadoop2/Makefile b/devel/hadoop2/Makefile index 46292f6fbc69..143a107717f9 100644 --- a/devel/hadoop2/Makefile +++ b/devel/hadoop2/Makefile @@ -5,11 +5,14 @@ PORTNAME= hadoop PORTVERSION= 2.4.1 PORTREVISION= 1 CATEGORIES= devel java -MASTER_SITES= ${MASTER_SITE_APACHE} +MASTER_SITES= ${MASTER_SITE_APACHE} \ + LOCAL/demon/:maven \ + http://people.freebsd.org/~demon/:maven \ + http://archive.apache.org/dist/tomcat/tomcat-6/v${TOMCAT_VERSION}/bin/:tomcat MASTER_SITE_SUBDIR=${PORTNAME}/common/stable PKGNAMEPREFIX= apache- PKGNAMESUFFIX= 2 -DISTNAME= ${PORTNAME}-${PORTVERSION}-src +DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} FreeBSD-hadoop2-${PORTVERSION}-maven-repository.tar.gz:maven apache-tomcat-${TOMCAT_VERSION}.tar.gz:tomcat DIST_SUBDIR= hadoop MAINTAINER= demon@FreeBSD.org @@ -17,7 +20,7 @@ COMMENT= Apache Map/Reduce framework LICENSE= APACHE20 -BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 \ +BUILD_DEPENDS= ${LOCALBASE}/share/java/maven3/bin/mvn:${PORTSDIR}/devel/maven3 \ cmake:${PORTSDIR}/devel/cmake \ protoc:${PORTSDIR}/devel/protobuf RUN_DEPENDS= bash:${PORTSDIR}/shells/bash @@ -30,9 +33,9 @@ JAVA_VERSION= 1.7+ USE_LDCONFIG= yes SHEBANG_FILES= hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/sbin/httpfs.sh hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/libexec/httpfs-config.sh MAKE_ENV+= HADOOP_PROTOC_PATH=${LOCALBASE}/bin/protoc +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src -MANUAL_PACKAGE_BUILD= maven fetches files during build - +TOMCAT_VERSION= 6.0.36 HADOOP_DIST= ${WRKSRC}/hadoop-dist/target/hadoop-${PORTVERSION} HADOOP_LOGDIR= /var/log/hadoop @@ -61,13 +64,12 @@ SUB_LIST= HDFS_USER="${HDFS_USER}" \ HADOOP_RUNDIR="${HADOOP_RUNDIR}" post-patch: - ${MKDIR} ${WRKDIR}/m2 - ${CP} ${FILESDIR}/settings.xml ${WRKDIR} - ${REINPLACE_CMD} -e "s|WORK|${WRKDIR}|" ${WRKDIR}/settings.xml ${REINPLACE_CMD} -e "s#/bin/bash#${LOCALBASE}/bin/bash#" ${WRKSRC}/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/DefaultContainerExecutor.java ${WRKSRC}/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/MRJobConfig.java ${WRKSRC}/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/ContainerLaunch.java ${WRKSRC}/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java do-build: - cd ${WRKSRC} && ${LOCALBASE}/bin/mvn -gs "${WRKDIR}/settings.xml" clean package -Pdist,native -DskipTests + ${MKDIR} ${WRKSRC}/hadoop-hdfs-project/hadoop-hdfs-httpfs/downloads + ${CP} ${DISTDIR}/${DIST_SUBDIR}/apache-tomcat-${TOMCAT_VERSION}.tar.gz ${WRKSRC}/hadoop-hdfs-project/hadoop-hdfs-httpfs/downloads/ + cd ${WRKSRC} && ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/m2 --offline clean package -Pdist,native -DskipTests post-build: ${RM} ${HADOOP_DIST}/etc/hadoop/*.cmd diff --git a/devel/hadoop2/distinfo b/devel/hadoop2/distinfo index f696e4ad0590..0fbc0ea37da9 100644 --- a/devel/hadoop2/distinfo +++ b/devel/hadoop2/distinfo @@ -1,2 +1,6 @@ SHA256 (hadoop/hadoop-2.4.1-src.tar.gz) = 09f897738e9d34bceb7e7d4494bbc75e363fb32993f56dc5a6de8aab3419b990 SIZE (hadoop/hadoop-2.4.1-src.tar.gz) = 15417097 +SHA256 (hadoop/FreeBSD-hadoop2-2.4.1-maven-repository.tar.gz) = b4698f60eff9aca6fa2e9792bc6d0d6745fa7c7e909c6fdd0c8f85daf1f0deea +SIZE (hadoop/FreeBSD-hadoop2-2.4.1-maven-repository.tar.gz) = 71669612 +SHA256 (hadoop/apache-tomcat-6.0.36.tar.gz) = bc1be532d48a239a6945b028bf8f253087d3405f6522229226c484bf8ae4d45e +SIZE (hadoop/apache-tomcat-6.0.36.tar.gz) = 6780936 diff --git a/devel/hadoop2/files/settings.xml b/devel/hadoop2/files/settings.xml deleted file mode 100644 index f3cdff028af4..000000000000 --- a/devel/hadoop2/files/settings.xml +++ /dev/null @@ -1,3 +0,0 @@ -<settings> - <localRepository>WORK/m2</localRepository> -</settings> |