aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject [01/11] aurora-packaging git commit: Build Kerberos clients in RPM.
Date Tue, 04 Aug 2015 21:44:07 GMT
Repository: aurora-packaging
Updated Branches:
  refs/heads/master [created] 36e42de32


Build Kerberos clients in RPM.

Testing Done:
None - I don't have a test environment for RPMs.

Bugs closed: AURORA-1410

Reviewed at https://reviews.apache.org/r/37047/


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/36e42de3
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/36e42de3
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/36e42de3

Branch: refs/heads/master
Commit: 36e42de32e81647c3f5e2fe0748f92017a2e2140
Parents: 1a7ef26
Author: Kevin Sweeney <kevints@apache.org>
Authored: Mon Aug 3 12:21:09 2015 -0700
Committer: Bill Farner <wfarner@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/rpm/aurora.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/36e42de3/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index 3003ced..5ec516f 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -70,6 +70,7 @@ BuildRequires: gcc
 BuildRequires: gcc-c++
 BuildRequires: git
 BuildRequires: java-%{JAVA_VERSION}-openjdk-devel
+BuildRequires: krb5-devel
 BuildRequires: libcurl-devel
 BuildRequires: patch
 %if 0%{?rhel} && 0%{?rhel} < 7
@@ -102,6 +103,7 @@ resource isolation.
 Summary: A client for scheduling services against the Aurora scheduler
 Group: Development/Tools
 
+Requires: krb5-libs
 %if 0%{?rhel} && 0%{?rhel} < 7
 Requires: python27
 %else
@@ -177,8 +179,8 @@ popd
 ./gradle-%{GRADLE_VERSION}/bin/gradle installDist
 
 # Builds Aurora client PEX binaries.
-./pants binary src/main/python/apache/aurora/admin:aurora_admin
-./pants binary src/main/python/apache/aurora/client:aurora
+./pants binary src/main/python/apache/aurora/kerberos:kaurora
+./pants binary src/main/python/apache/aurora/kerberos:kaurora_admin
 
 # Builds Aurora Thermos and GC executor PEX binaries.
 ./pants binary src/main/python/apache/aurora/executor:thermos_executor
@@ -222,6 +224,10 @@ for pex_binary in %{PEX_BINARIES}; do
   install -m 755 dist/${pex_binary}.pex %{buildroot}%{_bindir}/${pex_binary}
 done
 
+# Strip the "k" from Kerberized client binaries.
+mv %{buildroot}%{_bindir}/kaurora %{buildroot}%{_bindir}/aurora
+mv %{buildroot}%{_bindir}/kaurora_admin %{buildroot}%{_bindir}/aurora_admin
+
 # Installs all support scripting.
 %if 0%{?fedora} || 0%{?rhel} > 6
 install -m 644 build-support/packaging/rpm/%{name}.service %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service


Mime
View raw message