hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r728243 - in /hadoop/core/branches/branch-0.20: CHANGES.txt src/contrib/chukwa/build.xml src/contrib/chukwa/default.properties
Date Sat, 20 Dec 2008 05:57:05 GMT
Author: cdouglas
Date: Fri Dec 19 21:57:05 2008
New Revision: 728243

URL: http://svn.apache.org/viewvc?rev=728243&view=rev
Log:
HADOOP-4889. Fix permissions in RPM packaging. Contributed by Eric Yang

Modified:
    hadoop/core/branches/branch-0.20/CHANGES.txt
    hadoop/core/branches/branch-0.20/src/contrib/chukwa/build.xml
    hadoop/core/branches/branch-0.20/src/contrib/chukwa/default.properties

Modified: hadoop/core/branches/branch-0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/CHANGES.txt?rev=728243&r1=728242&r2=728243&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.20/CHANGES.txt Fri Dec 19 21:57:05 2008
@@ -474,6 +474,8 @@
 
     HADOOP-4892. Close fds out of Chukwa ExecPlugin. (Ari Rabkin via cdouglas)
 
+    HADOOP-4889. Fix permissions in RPM packaging. (Eric Yang via cdouglas)
+
 Release 0.19.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/core/branches/branch-0.20/src/contrib/chukwa/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/src/contrib/chukwa/build.xml?rev=728243&r1=728242&r2=728243&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/src/contrib/chukwa/build.xml (original)
+++ hadoop/core/branches/branch-0.20/src/contrib/chukwa/build.xml Fri Dec 19 21:57:05 2008
@@ -750,6 +750,8 @@
 
 %define _topdir         ${build.dir}
 %define _prefix         ${rpm.prefix}
+%define uid             ${rpm.uid}
+%define gid             ${rpm.gid}
 %define name            chukwa
 %define summary         Distributed Computing Monitoring Framework.
 %define version         ${chukwaVersion}
@@ -796,7 +798,6 @@
 rm -rf %{buildroot}%{_prefix}/%{name}/build.xml
 %post
 mkdir -p %{_prefix}/%{name}
-chown -R gmon:users %{_prefix}/%{name}
 echo "Congratulation!  You have successfully installed Chukwa."
 echo ""
 echo "To collect Data             : /etc/init.d/chukwa-system-metrics start"
@@ -811,8 +812,9 @@
 echo
 %postun
 %files
-%defattr(-,root,root)
+%defattr(-,%{uid},%{gid})
 %{_prefix}/%{name}/*
+%defattr(-,root,root)
 /etc/init.d/chukwa-data-processors
 /etc/init.d/chukwa-collector
 /etc/init.d/chukwa-agent

Modified: hadoop/core/branches/branch-0.20/src/contrib/chukwa/default.properties
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/src/contrib/chukwa/default.properties?rev=728243&r1=728242&r2=728243&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/src/contrib/chukwa/default.properties (original)
+++ hadoop/core/branches/branch-0.20/src/contrib/chukwa/default.properties Fri Dec 19 21:57:05
2008
@@ -13,3 +13,5 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 rpm.prefix=/usr/local
+rpm.uid=chukwa
+rpm.gid=users



Mime
View raw message