# $Id$ # Authority: dag Summary: Utilities to limit user accounts to specific files using chroot() Name: jailkit Version: 2.17 Release: 1.kng%{?dist} License: Open Source Group: System Environment/Base URL: http://olivier.sessink.nl/jailkit/ Source: http://olivier.sessink.nl/jailkit/jailkit-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: binutils, gcc, make BuildRequires: glibc-devel BuildRequires: python Requires: python-hashlib %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 # apparently not needed anymore ### Disable broken Makefile :( #%{__perl} -pi.orig -e 's|>>||g' Makefile.in %build export LIBS="-pthread" %configure %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" %{__install} -Dp -m0755 extra/jailkit %{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 %defattr(-, root, root, 0755) %doc %{_mandir}/man?/* %config(noreplace) %{_sysconfdir}/jailkit/ %config %{_initrddir}/jailkit %{_sbindir}/jk_* %{_bindir}/jk_uchroot %{_datadir}/jailkit/ %changelog * Sun Feb 2 2014 Mustafa Ramadhan - 2.17-1 - recompile for Kloxo-MR and update to 2.17 - add Requeries to python-hashlib * Wed Apr 17 2013 David Hrbáč - 2.15-1 - new upstream release * Wed Jun 02 2010 Steve Huff - 2.11-1 - Updated to release 2.11. * Thu May 15 2008 Dries Verachtert - 2.5-1 - Updated to release 2.5. * Tue Sep 12 2006 Dag Wieers - 2.1-1 - Updated to release 2.1. * Sun Mar 19 2006 Dag Wieers - 2.0-1 - Updated to release 2.0. * Fri May 20 2005 Dag Wieers - 1.3-1 - Initial package. (using DAR)