summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-05-13 13:26:57 +1000
committerDamien Miller <djm@mindrot.org>2002-05-13 13:26:57 +1000
commitb7cb96934e527032fa06dfbbf5bfefc48b84cab6 (patch)
tree709ac865e8a9d87242f072bb121f62fc3215e101 /contrib
parentf58c672f0ed61507f0d4b56e7c31478bd580b809 (diff)
- (djm) Update RPM spec file: different superuser path, use
/var/empty/sshd for privsep
Diffstat (limited to 'contrib')
-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 e70f4389..e5b2ed89 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -175,6 +175,9 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
--datadir=%{_datadir}/openssh \
--with-tcp-wrappers \
--with-rsh=%{_bindir}/rsh \
+ --with-default-path=/usr/local/bin:/bin:/usr/bin \
+ --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
+ --with-privsep-path=%{_var}/empty/sshd
%if %{scard}
--with-smartcard \
%endif
@@ -187,6 +190,7 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
--with-pam --with-kerberos5=/usr/kerberos
%endif
+
%if %{static_libcrypto}
perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
%endif
@@ -213,7 +217,7 @@ popd
rm -rf $RPM_BUILD_ROOT
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
-mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/run/empty-sshd
+mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
make install DESTDIR=$RPM_BUILD_ROOT
@@ -275,7 +279,7 @@ fi
%pre server
%{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
-%{_sbindir}/useradd -d /var/run/empty-sshd -s /bin/false -u %{sshd_uid} \
+%{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
-g sshd -M -r sshd 2>/dev/null || :
%post server
@@ -329,7 +333,7 @@ fi
%if ! %{rescue}
%files server
%defattr(-,root,root)
-%dir %attr(0111,root,root) %{_var}/run/empty-sshd
+%dir %attr(0111,root,root) %{_var}/empty/sshd
%attr(0755,root,root) %{_sbindir}/sshd
%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
%attr(0644,root,root) %{_mandir}/man8/sshd.8*