--- /dev/null
+--- mkchroot.sh-orig 2004-07-21 20:47:06.000000000 +0000
++++ mkchroot.sh 2004-07-21 20:55:15.000000000 +0000
+@@ -96,11 +96,11 @@
+ # copy SSH files
+
+ scp_path="/usr/bin/scp"
+-sftp_server_path="/usr/libexec/openssh/sftp-server"
+-rssh_path="/usr/bin/rssh"
+-chroot_helper_path="/usr/libexec/rssh_chroot_helper"
++sftp_server_path="/usr/lib/openssh/sftp-server"
++rssh_path="/bin/rssh"
++chroot_helper_path="/usr/lib/rssh_chroot_helper"
+
+-for jail_path in `dirname "$jail_dir$scp_path"` `dirname "$jail_dir$sftp_server_path"` `dirname "$jail_dir$chroot_helper_path"`; do
++for jail_path in `dirname "$jail_dir$scp_path"` `dirname "$jail_dir$sftp_server_path"` `dirname "$jail_dir$chroot_helper_path"` `dirname "$jail_dir$rssh_path"`; do
+
+ echo "setting up $jail_path"
+
Summary(pl): Okrojona pow³oka daj±ca dostêp tylko do scp i sftp
Name: rssh
Version: 2.2.1
-Release: 1
+Release: 2
License: BSD-like
Group: Applications/Shells
Source0: http://www.pizzashack.org/rssh/src/%{name}-%{version}.tar.gz
# Source0-md5: 2d427ee7f4ea46b075fa0ab3f39b4089
Patch0: %{name}-userbuild.patch
+Patch1: %{name}-mkchroot.patch
URL: http://rssh.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
+%patch1
%build
%{__aclocal}
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
+%doc AUTHORS ChangeLog README CHROOT SECURITY mkchroot.sh
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rssh.conf
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/scpsh