jailkit/jailkit.spec

67 lines
1.8 KiB
RPMSpec

# $Id: jailkit.spec,v 1.1 2012/08/02 19:43:28 oli4 Exp $
# Authority: dag
Summary: Utilities to limit user accounts to specific files using chroot()
Name: jailkit
Version: 2.19
Release: 1
License: GPLv2
Group: System/Base
URL: http://olivier.sessink.nl/jailkit/
Source: http://olivier.sessink.nl/jailkit/jailkit-%{version}.tar.bz2
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python
%description
Jailkit is a set of utilities to limit user accounts to specific files
using chroot() and or specific commands. Setting up a chroot shell,
a shell limited to some specific command, or a daemon inside a chroot
jail is a lot easier using these utilities.
Jailkit has been in use for a while on CVS servers (in a chroot and
limited to cvs), sftp/scp servers (both in a chroot and limited to
sftp/scp as well as not in a chroot but only limited to sftp/scp),
and also on general servers with accounts where the shell accounts
are in a chroot.
%prep
%setup -n %{name}-%{version}
### Disable broken Makefile :(
%{__perl} -pi.orig -e 's|>>||g' Makefile.in
%build
%configure
#{__make} %{?_smp_mflags}
%make
%install
#{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" \
iniprefix="%{_sysconfdir}/jailkit/" \
prefix="%{_prefix}"
%{__install} -Dp -m0755 extra/jailkit.centos %{buildroot}%{_initrddir}/jailkit
#%post
#cat /etc/shells | grep -v jk_chrootsh >/etc/shells
#echo "/usr/bin/jk_chrootsh" >> /etc/shells
#/sbin/chkconfig --add jailkit
#%postun
#cat /etc/shells | grep -v jk_chrootsh >/etc/shells
%clean
#{__rm} -rf %{buildroot}
%files
%doc README.txt COPYRIGHT
%defattr(-, root, root, 0755)
%{_sbindir}/*
%{_bindir}/*
%{_datadir}/jailkit/
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/jailkit
%config %{_initrddir}/jailkit
%changelog