summaryrefslogtreecommitdiff
path: root/contrib/redhat/openssh.spec
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/redhat/openssh.spec')
-rw-r--r--contrib/redhat/openssh.spec10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec
index e70f43893..e5b2ed894 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -175,6 +175,9 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
175 --datadir=%{_datadir}/openssh \ 175 --datadir=%{_datadir}/openssh \
176 --with-tcp-wrappers \ 176 --with-tcp-wrappers \
177 --with-rsh=%{_bindir}/rsh \ 177 --with-rsh=%{_bindir}/rsh \
178 --with-default-path=/usr/local/bin:/bin:/usr/bin \
179 --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
180 --with-privsep-path=%{_var}/empty/sshd
178%if %{scard} 181%if %{scard}
179 --with-smartcard \ 182 --with-smartcard \
180%endif 183%endif
@@ -187,6 +190,7 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
187 --with-pam --with-kerberos5=/usr/kerberos 190 --with-pam --with-kerberos5=/usr/kerberos
188%endif 191%endif
189 192
193
190%if %{static_libcrypto} 194%if %{static_libcrypto}
191perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile 195perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
192%endif 196%endif
@@ -213,7 +217,7 @@ popd
213rm -rf $RPM_BUILD_ROOT 217rm -rf $RPM_BUILD_ROOT
214mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh 218mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
215mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh 219mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
216mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/run/empty-sshd 220mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
217 221
218make install DESTDIR=$RPM_BUILD_ROOT 222make install DESTDIR=$RPM_BUILD_ROOT
219 223
@@ -275,7 +279,7 @@ fi
275 279
276%pre server 280%pre server
277%{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || : 281%{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
278%{_sbindir}/useradd -d /var/run/empty-sshd -s /bin/false -u %{sshd_uid} \ 282%{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
279 -g sshd -M -r sshd 2>/dev/null || : 283 -g sshd -M -r sshd 2>/dev/null || :
280 284
281%post server 285%post server
@@ -329,7 +333,7 @@ fi
329%if ! %{rescue} 333%if ! %{rescue}
330%files server 334%files server
331%defattr(-,root,root) 335%defattr(-,root,root)
332%dir %attr(0111,root,root) %{_var}/run/empty-sshd 336%dir %attr(0111,root,root) %{_var}/empty/sshd
333%attr(0755,root,root) %{_sbindir}/sshd 337%attr(0755,root,root) %{_sbindir}/sshd
334%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server 338%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
335%attr(0644,root,root) %{_mandir}/man8/sshd.8* 339%attr(0644,root,root) %{_mandir}/man8/sshd.8*