1 Summary: A restricted shell for assigning scp- or sftp-only access
2 Summary(pl): Okrojona pow³oka daj±ca dostêp tylko do scp i sftp
7 Group: Applications/Shells
8 Source0: http://www.pizzashack.org/rssh/src/%{name}-%{version}.tar.gz
9 # Source0-md5: 2d427ee7f4ea46b075fa0ab3f39b4089
10 Patch0: %{name}-userbuild.patch
11 Patch1: %{name}-mkchroot.patch
12 URL: http://rssh.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: openssh-clients >= 3.5p1
16 Requires: openssh-server >= 3.5p1
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 rssh is a small shell that provides the ability for system
23 administrators to give specific users access to a given system via scp
27 rssh jest ma³ym shellem, który pozwala administratorowi ograniczyæ
28 dostêp na danym koncie tylko do scp i/lub sftp.
40 --with-scp=/usr/bin/scp \
41 --with-sftp-server=/usr/lib/openssh/sftp-server
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
51 ln -sf rssh $RPM_BUILD_ROOT/bin/scpsh
52 ln -sf rssh $RPM_BUILD_ROOT/bin/sftpsh
55 rm -rf $RPM_BUILD_ROOT
59 if [ ! -f /etc/shells ]; then
60 echo "%{_bindir}/%{name}" > /etc/shells
61 echo "%{_bindir}/scpsh" >> /etc/shells
62 echo "%{_bindir}/sftpsh" >> /etc/shells
64 if ! grep -q '^%{_bindir}/%{name}$' /etc/shells; then
65 echo "%{_bindir}/%{name}" >> /etc/shells
67 if ! grep -q '^%{_bindir}/scpsh$' /etc/shells; then
68 echo "%{_bindir}/scpsh" >> /etc/shells
70 if ! grep -q '^%{_bindir}/sftpsh$' /etc/shells; then
71 echo "%{_bindir}/sftpsh" >> /etc/shells
77 if [ "$1" = "0" ]; then
78 grep -v %{_bindir}/%{name} /etc/shells | grep -v %{_bindir}/scpsh | grep -v %{_bindir}/sftpsh > /etc/shells.new
79 mv -f /etc/shells.new /etc/shells
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog README CHROOT SECURITY mkchroot.sh
85 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rssh.conf
86 %attr(755,root,root) %{_bindir}/%{name}
87 %attr(755,root,root) %{_bindir}/scpsh
88 %attr(755,root,root) %{_bindir}/sftpsh
89 %attr(4755,root,root) %{_libdir}/rssh_chroot_helper