aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2017-06-09 21:57:17 +0800
committerdemon <demon@FreeBSD.org>2017-06-09 21:57:17 +0800
commit3c995ab61a47ec534266b9d08406c5648ea73f65 (patch)
tree12563c5f4d71007c5ed98bdb536f83c4a7ab1d5e /devel
parent4d0e1988fef86b8abb72572a66f63ecddfb12dc0 (diff)
downloadfreebsd-ports-gnome-3c995ab61a47ec534266b9d08406c5648ea73f65.tar.gz
freebsd-ports-gnome-3c995ab61a47ec534266b9d08406c5648ea73f65.tar.zst
freebsd-ports-gnome-3c995ab61a47ec534266b9d08406c5648ea73f65.zip
Fix permissions for some scripts;
install kms-env.sh and httpfs-env.sh with sane defaults; PR: 219872
Diffstat (limited to 'devel')
-rw-r--r--devel/hadoop2/Makefile7
-rw-r--r--devel/hadoop2/files/httpfs-env.sh.in4
-rw-r--r--devel/hadoop2/files/kms-env.sh.in4
-rw-r--r--devel/hadoop2/pkg-plist2
4 files changed, 15 insertions, 2 deletions
diff --git a/devel/hadoop2/Makefile b/devel/hadoop2/Makefile
index 44226a9c8321..6526a21d9bd9 100644
--- a/devel/hadoop2/Makefile
+++ b/devel/hadoop2/Makefile
@@ -7,7 +7,7 @@
# no problems encountered so far. Thanks.
PORTNAME= hadoop
PORTVERSION= 2.7.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel java
MASTER_SITES= APACHE/${PORTNAME}/common/hadoop-${PORTVERSION} \
LOCAL/demon/:maven \
@@ -55,7 +55,7 @@ HADOOP_GROUP= hadoop
USERS= ${HDFS_USER} ${MAPRED_USER}
GROUPS= ${HADOOP_GROUP}
-SUB_FILES= hadoop-layout.sh
+SUB_FILES= hadoop-layout.sh httpfs-env.sh kms-env.sh
USE_RC_SUBR= historyserver nodemanager resourcemanager webappproxyserver datanode namenode secondarynamenode journalnode zkfc
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
@@ -106,11 +106,14 @@ do-install:
${LN} -sf libhdfs.so.0 ${STAGEDIR}${PREFIX}/lib/libhdfs.so
${LN} -sf libhadoop.so.1 ${STAGEDIR}${PREFIX}/lib/libhadoop.so
cd ${HADOOP_DIST}/share/hadoop && ${COPYTREE_SHARE} "*" ${STAGEDIR}${DATADIR}/ "! -name *-sources.jar -and ! -name sources"
+ ${CHMOD} a+x ${STAGEDIR}${DATADIR}/kms/tomcat/bin/*.sh ${STAGEDIR}${DATADIR}/httpfs/tomcat/bin/*.sh
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/conf
cd ${HADOOP_DIST}/etc/hadoop && ${COPYTREE_SHARE} "*" ${STAGEDIR}${EXAMPLESDIR}/conf/
${INSTALL_DATA} ${WRKSRC}/hadoop-hdfs-project/hadoop-hdfs/target/classes/hdfs-default.xml ${WRKSRC}/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/classes/httpfs-default.xml ${WRKSRC}/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/classes/yarn-default.xml ${WRKSRC}/hadoop-common-project/hadoop-common/target/classes/core-default.xml ${WRKSRC}/hadoop-tools/hadoop-distcp/target/classes/distcp-default.xml ${WRKSRC}/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/target/classes/mapred-default.xml ${STAGEDIR}/${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/hadoop-layout.sh ${STAGEDIR}${PREFIX}/libexec/
${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKDIR}/httpfs-env.sh ${STAGEDIR}${PREFIX}/etc/hadoop/
+ ${INSTALL_DATA} ${WRKDIR}/kms-env.sh ${STAGEDIR}${PREFIX}/etc/hadoop/
${MKDIR} ${STAGEDIR}${HADOOP_LOGDIR}
${MKDIR} ${STAGEDIR}${HADOOP_RUNDIR}
diff --git a/devel/hadoop2/files/httpfs-env.sh.in b/devel/hadoop2/files/httpfs-env.sh.in
new file mode 100644
index 000000000000..4bcc994f7bb7
--- /dev/null
+++ b/devel/hadoop2/files/httpfs-env.sh.in
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+export HTTPFS_LOG=/var/log/hadoop
+export HTTPFS_TEMP=/var/tmp
diff --git a/devel/hadoop2/files/kms-env.sh.in b/devel/hadoop2/files/kms-env.sh.in
new file mode 100644
index 000000000000..939022d07176
--- /dev/null
+++ b/devel/hadoop2/files/kms-env.sh.in
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+export KMS_LOG=/var/log/hadoop
+export KMS_TEMP=/var/tmp
diff --git a/devel/hadoop2/pkg-plist b/devel/hadoop2/pkg-plist
index 98ee762636cb..913c2310c3f4 100644
--- a/devel/hadoop2/pkg-plist
+++ b/devel/hadoop2/pkg-plist
@@ -3,6 +3,8 @@ bin/hadoop-rcc
bin/hdfs
bin/mapred
bin/yarn
+etc/hadoop/httpfs-env.sh
+etc/hadoop/kms-env.sh
include/Pipes.hh
include/SerialUtils.hh
include/StringUtils.hh