integ/connectivity/openssh/centos/meta_patches/spec-include-TiS-config-fil...

40 lines
960 B
Diff

From f4b2a7d1f5f139ffd622a5617e63cbdc1fd838bd Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Mon, 2 Oct 2017 15:32:15 -0400
Subject: [PATCH 1/7] WRS: spec-include-TiS-config-files.patch
---
SPECS/openssh.spec | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/SPECS/openssh.spec b/SPECS/openssh.spec
index 69a8ae4..2302061 100644
--- a/SPECS/openssh.spec
+++ b/SPECS/openssh.spec
@@ -88,6 +88,10 @@ Source11: sshd.service
Source12: sshd-keygen.service
Source13: sshd-keygen
+# WRS
+Source14: sshd_config
+Source15: ssh_config
+
# Internal debug
Patch0: openssh-5.9p1-wIm.patch
@@ -684,6 +688,11 @@ pushd pam_ssh_agent_auth-%{pam_ssh_agent_ver}
make install DESTDIR=$RPM_BUILD_ROOT
popd
%endif
+
+# WRS: Overwrite with our config
+install -m 0640 %{SOURCE14} $RPM_BUILD_ROOT/etc/ssh/sshd_config
+install -m 0644 %{SOURCE15} $RPM_BUILD_ROOT/etc/ssh/ssh_config
+
%clean
rm -rf $RPM_BUILD_ROOT
--
1.9.1