File rssh.spec of Package rssh

Summary: A Restricted Shell for scp or sftp
Name: rssh
Version: 2.3.4
Release: 8
License: BSD-2-Clause
Group: Productivity/Networking/SSH
# Source: http://www.pizzashack.org/rssh/src/%%{name}-%%{version}.tar.gz
Source:  %{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Patch0: %{name}-Makefile.am.patch
Patch1: %{name}-Makefile.in.patch
URL: http://www.pizzashack.org/rssh/
Requires: openssh rdist rsync
BuildRequires: openssh rdist rsync
PreReq: %fillup_prereq
PreReq: permissions coreutils grep diffutils

Buildroot: %{_tmppath}/%{name}-%{version}-buildroot

%description
rssh is a restricted shell for use with ssh, which allows the system
administrator to restrict a user's access to a system via scp or sftp, or
both.

%prep
%setup
%patch0 -p0
%patch1 -p0

%build
export SUID_CFLAGS=-fPIE
export SUID_LDFLAGS=-pie

%configure 
%{__make}

%install
%{__rm} -rf %{buildroot}
%makeinstall

%files
%defattr(644, root, root, 0755)
%doc AUTHORS ChangeLog CHROOT COPYING README SECURITY TODO conf_convert.sh mkchroot.sh
%doc %{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/rssh.conf.default
%attr(0755, root, root) %{_bindir}/rssh
%attr(0755, root, root) %{_libexecdir}/rssh_chroot_helper
%verify(not mode) %attr(4755, root, root) %{_libexecdir}/rssh_chroot_helper

%changelog


openSUSE Build Service is sponsored by