Return-Path: X-Original-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B28E7873 for ; Tue, 27 Dec 2011 23:57:41 +0000 (UTC) Received: (qmail 42245 invoked by uid 500); 27 Dec 2011 23:57:41 -0000 Delivered-To: apmail-incubator-bigtop-commits-archive@incubator.apache.org Received: (qmail 42208 invoked by uid 500); 27 Dec 2011 23:57:41 -0000 Mailing-List: contact bigtop-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-commits@incubator.apache.org Received: (qmail 42201 invoked by uid 99); 27 Dec 2011 23:57:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 23:57:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 23:57:38 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4E66C23889EA; Tue, 27 Dec 2011 23:57:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1225055 - /incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec Date: Tue, 27 Dec 2011 23:57:17 -0000 To: bigtop-commits@incubator.apache.org From: rvs@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111227235717.4E66C23889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rvs Date: Tue Dec 27 23:57:16 2011 New Revision: 1225055 URL: http://svn.apache.org/viewvc?rev=1225055&view=rev Log: BIGTOP-320. hive RPM spec uses missing __rmdir macros Modified: incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec Modified: incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec?rev=1225055&r1=1225054&r2=1225055&view=diff ============================================================================== --- incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec (original) +++ incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/rpm/hive/SPECS/hive.spec Tue Dec 27 23:57:16 2011 @@ -136,6 +136,9 @@ cp $RPM_SOURCE_DIR/hive-site.xml . %__install -m 0644 $RPM_SOURCE_DIR/hadoop-hive-metastore.default $RPM_BUILD_ROOT/etc/default/hadoop-hive-metastore %__install -m 0644 $RPM_SOURCE_DIR/hadoop-hive-server.default $RPM_BUILD_ROOT/etc/default/hadoop-hive-server +%__install -d -m 0755 $RPM_BUILD_ROOT/%{_localstatedir}/log/hive +%__install -d -m 0755 $RPM_BUILD_ROOT/%{_localstatedir}/run/hive + for service in %{hive_services} do init_file=$RPM_BUILD_ROOT/%{initd_dir}/%{name}-${service} @@ -148,9 +151,6 @@ done getent group hive >/dev/null || groupadd -r hive getent passwd hive >/dev/null || useradd -c "Hive" -s /sbin/nologin -g hive -r -d %{var_lib_hive} hive 2> /dev/null || : -%__install -d -m 0755 -o hive -g hive /var/log/hive -%__install -d -m 0755 -o hive -g hive /var/run/hive - # Manage configuration symlink %post @@ -172,10 +172,6 @@ if [ "$1" = 0 ]; then %{alternatives_cmd} --remove hive-conf %{etc_hive}/conf.dist || : fi -%__rmdir /var/log/hive 2>/dev/null || : -%__rmdir /var/run/hive 2>/dev/null || : - - ####################### #### FILES SECTION #### ####################### @@ -185,6 +181,8 @@ fi %{usr_lib_hive} %{bin_hive}/hive %{var_lib_hive} +%attr(0755,hive,hive) %dir %{_localstatedir}/log/hive +%attr(0755,hive,hive) %dir %{_localstatedir}/run/hive %attr(1777,root,root) %{var_lib_hive}/metastore %doc %{doc_hive} %{man_dir}/man1/hive.1.*