Name: rssh
Version: 2.3.2
Release: 6%{?dist}
Summary: Restricted shell for use with OpenSSH, allowing only scp and/or sftp
Group: Applications/Internet
License: BSD
URL: http://www.pizzashack.org/rssh/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: rssh-2.3.2-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssh-server, openssh-clients
BuildRequires: cvs rsync rdist
Requires: openssh-server
Requires(pre): shadow-utils
%description
rssh is a restricted shell for use with OpenSSH, allowing only scp
and/or sftp. For example, if you have a server which you only want
to allow users to copy files off of via scp, without providing shell
access, you can use rssh to do that. It is a alternative to scponly.
%prep
%setup -q
%patch0 -p1 -b .makefile
chmod 644 conf_convert.sh
chmod 644 mkchroot.sh
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%pre
getent group rsshusers >/dev/null || groupadd -r rsshusers
exit 0
%files
%defattr(-, root, root, -)
%doc AUTHORS ChangeLog CHROOT COPYING NEWS README SECURITY TODO
%doc conf_convert.sh mkchroot.sh
%doc %{_mandir}/man1/rssh.1*
%doc %{_mandir}/man5/rssh.conf.5*
%config(noreplace) %{_sysconfdir}/rssh.conf
%attr(750, root, rsshusers) %{_bindir}/rssh
%attr(4750, root, rsshusers) %{_libexecdir}/rssh_chroot_helper
%changelog
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Oct 30 2008 Ian Weller <ianweller@gmail.com> - 2.3.2-5
- Remove pre and post scripts
- https://bugzilla.redhat.com/show_bug.cgi?id=456182#c17
* Wed Aug 11 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.3.2-4
- Fix review issues and apply patch
* Wed Aug 07 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.3.2-3
- Fix postun to remove rssh shell
* Wed Jul 30 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.3.2-2
- Fix BR and defattr. Added a group and shell
* Tue Jul 22 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 2.3.2-1
- initial spec