You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cd...@apache.org on 2008/12/20 06:56:43 UTC
svn commit: r728242 - in /hadoop/core/trunk: CHANGES.txt
src/contrib/chukwa/build.xml src/contrib/chukwa/default.properties
Author: cdouglas
Date: Fri Dec 19 21:56:43 2008
New Revision: 728242
URL: http://svn.apache.org/viewvc?rev=728242&view=rev
Log:
HADOOP-4889. Fix permissions in RPM packaging. Contributed by Eric Yang
Modified:
hadoop/core/trunk/CHANGES.txt
hadoop/core/trunk/src/contrib/chukwa/build.xml
hadoop/core/trunk/src/contrib/chukwa/default.properties
Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=728242&r1=728241&r2=728242&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Dec 19 21:56:43 2008
@@ -489,6 +489,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/trunk/src/contrib/chukwa/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/build.xml?rev=728242&r1=728241&r2=728242&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/build.xml (original)
+++ hadoop/core/trunk/src/contrib/chukwa/build.xml Fri Dec 19 21:56:43 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/trunk/src/contrib/chukwa/default.properties
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/default.properties?rev=728242&r1=728241&r2=728242&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/default.properties (original)
+++ hadoop/core/trunk/src/contrib/chukwa/default.properties Fri Dec 19 21:56:43 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