Summary: Tool that builds a chrooted environment Summary(pl.UTF-8): Narzędzie tworzące środowisko w chroocie Name: jail Version: 1.9a Release: 3 License: GPL Group: Applications/Communications Source0: http://www.jmcresearch.com/static/dwn/projects/jail/%{name}_%{version}.tar.gz # Source0-md5: 06824a1255ce3da1bb86cb806bf15535 Patch0: %{name}-install.patch URL: http://www.jmcresearch.com/projects/jail/ BuildRequires: rpmbuild(macros) >= 1.202 Requires(postun): /usr/sbin/groupdel Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd Requires: strace Provides: group(jail) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Jail Chroot Project is an attempt of write a tool that builds a chrooted environment. The main goal of Jail is to be as simple as possible, and highly portable. The most difficult step when building a chrooted environment is to set up the right libraries and files. Here, Jail comes to the rescue with a tool to automagically configures and builds all the required files, directories and libraries. %description -l pl.UTF-8 Jail Chroot Project to próba napisania narzędzia tworzącego środowisko w chroocie. Głównym celem Jaila jest bycie tak prostym jak to tylko możliwe, a przy tym bardzo przenośnym. Najtrudniejszym krokiem przy tworzeniu środowiska w chroocie jest właściwe dobranie bibliotek i plików. Tutaj z pomocą przychodzi Jail z narzędziem automatycznie konfigurującym i tworzącym wszystkie wymagane pliki, katalogi i biblioteki. %prep %setup -q -n %{name} %patch0 -p1 %build %{__make} -C src \ CC="%{__cc}" \ CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT %{__make} -C src install \ DESTDIR=$RPM_BUILD_ROOT \ PREFIX=%{_prefix} \ SYSCONFDIR=%{_sysconfdir} %clean rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 35 jail %postun if [ "$1" = "0" ]; then %groupremove jail fi %files %defattr(644,root,root,755) %doc CHANGELOG README TODO %attr(755,root,root) %{_bindir}/[!j]* %attr(4750,root,jail) %{_bindir}/jail %{_prefix}/lib/jail %attr(640,root,root) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/jail.conf