summaryrefslogtreecommitdiff
path: root/rssh.spec
blob: 4043c7997021789bdd727de73c560df22f6fbb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
###########################################################################
# rssh.spec - spec file for building RPMs of rssh, specifically for Red Hat
# systems, though probably suitable for others.
#

Summary: a restricted shell for scp or sftp
Name: rssh
Version: 2.3.4
Release: 1
License: BSD
Group: System Environment/Shells
Source: http://www.pizzashack.org/rssh/src/%{name}-%{version}.tar.gz
URL: http://www.pizzashack.org/rssh/
Packager: Derek Martin <rssh-discuss at lists dot sourceforge dot net>
Requires: openssh
Provides: rssh

Buildroot: /tmp/%{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

%build
%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
%attr(755, root, root) %{_bindir}/rssh
%attr(4755, root, root) %{_libexecdir}/rssh_chroot_helper

%clean
%{__rm} -rf %{buildroot}