aboutsummaryrefslogtreecommitdiff
path: root/devel/hadoop2
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2014-07-09 16:13:17 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2014-07-09 16:13:17 +0000
commit023eda5851049d00cb0e82b6f5c5b3c592171c56 (patch)
tree5607f5c2d1f018cff1ab8a71c671bdbeedacdb2b /devel/hadoop2
parentd6ef1206351ebbbc7b7da490c5e7b4cf6c63f13c (diff)
downloadports-023eda5851049d00cb0e82b6f5c5b3c592171c56.tar.gz
ports-023eda5851049d00cb0e82b6f5c5b3c592171c56.zip
Notes
Diffstat (limited to 'devel/hadoop2')
-rw-r--r--devel/hadoop2/Makefile3
-rw-r--r--devel/hadoop2/pkg-plist12
2 files changed, 10 insertions, 5 deletions
diff --git a/devel/hadoop2/Makefile b/devel/hadoop2/Makefile
index df91af33c879..a77641eec571 100644
--- a/devel/hadoop2/Makefile
+++ b/devel/hadoop2/Makefile
@@ -56,7 +56,8 @@ PLIST_SUB= PORTVERSION="${PORTVERSION}" \
HADOOP_RUNDIR="${HADOOP_RUNDIR}" \
HDFS_USER="${HDFS_USER}" \
MAPRED_USER="${MAPRED_USER}" \
- HADOOP_GROUP="${HADOOP_GROUP}"
+ HADOOP_GROUP="${HADOOP_GROUP}" \
+ RESETPREFIX=${PREFIX}
SUB_LIST= HDFS_USER="${HDFS_USER}" \
MAPRED_USER="${MAPRED_USER}" \
HADOOP_GROUP="${HADOOP_GROUP}" \
diff --git a/devel/hadoop2/pkg-plist b/devel/hadoop2/pkg-plist
index a20dda906a2d..fd1df6805282 100644
--- a/devel/hadoop2/pkg-plist
+++ b/devel/hadoop2/pkg-plist
@@ -594,10 +594,6 @@ sbin/yarn-daemons.sh
%%DATADIR%%/yarn/lib/xz-1.0.jar
%%DATADIR%%/yarn/lib/zookeeper-3.4.5.jar
%%DATADIR%%/yarn/test/hadoop-yarn-server-tests-2.4.1-tests.jar
-@exec install -d -o root -g %%HADOOP_GROUP%% -m 0775 %%HADOOP_LOGDIR%%
-@exec install -d -o root -g %%HADOOP_GROUP%% -m 0775 %%HADOOP_RUNDIR%%
-@unexec rm -d %%HADOOP_RUNDIR%% 2>/dev/null || true
-@unexec rm -d %%HADOOP_LOGDIR%% 2>/dev/null || true
@dirrm %%EXAMPLESDIR%%/conf
@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%/common/jdiff
@@ -674,3 +670,11 @@ sbin/yarn-daemons.sh
@dirrm %%DATADIR%%/yarn
@dirrm %%DATADIR%%
@dirrmtry %%ETCDIR%%
+@cwd /
+@group %%HADOOP_GROUP%%
+@mode 0775
+@dirrmtry %%HADOOP_LOGDIR%%
+@dirrmtry %%HADOOP_RUNDIR%%
+@cwd %%RESETPREFIX%%
+@group
+@mode