aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hadoop2
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2014-07-10 00:13:17 +0800
committerdemon <demon@FreeBSD.org>2014-07-10 00:13:17 +0800
commit74acb5c3300ccd1c86f78e130b76f0f9d53d01be (patch)
tree5607f5c2d1f018cff1ab8a71c671bdbeedacdb2b /devel/hadoop2
parentea35e9eff1474220de2c43c8b3d9d78ddcf10c4b (diff)
downloadfreebsd-ports-gnome-74acb5c3300ccd1c86f78e130b76f0f9d53d01be.tar.gz
freebsd-ports-gnome-74acb5c3300ccd1c86f78e130b76f0f9d53d01be.tar.zst
freebsd-ports-gnome-74acb5c3300ccd1c86f78e130b76f0f9d53d01be.zip
Create logdir and piddir in a pervert way to please check-plist.
Submitted by: swills
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