# # Conditional build: # _without_dist_kernel without distribution kernel # Summary: (Secure) SHell FileSystem utilities Summary(pl): Narzędzia obsługujące system plików przez ssh Name: shfs Version: 0.32pre1 %define rel 3 Release: %{rel} License: GPL Group: Applications/System # Source0-md5: eb4840e893da72f6169796b020a77769 Source0: http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/%{name}-%{version}.tar.gz Patch0: %{name}-opt.patch URL: http://shfs.sourceforge.net/ %{!?_without_dist_kernel:BuildRequires: kernel-headers} BuildRequires: %{kgcc_package} BuildRequires: rpmbuild(macros) >= 1.118 Obsoletes: shfsmount BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description SHFS is a simple and easy to use Linux kernel (2.4) module which allows you to mount remote filesystems using plain shell (ssh/rsh) connection. It supports some nice features like number of different caches for access speedup, target system optimisations, etc. This package contains utilities for SHFS. %description -l pl SHFS to prosty i łatwy w użyciu moduł jądra Linuksa (2.4) pozwalający montować zdalne systemy plików przy użyciu zwykłego połączenia ze zdalną powłoką (ssh lub rsh). Obsługuje pewne miłe cechy, takie jak różne sposoby buforowania dla przyspieszenia dostępu, optymalizacje pod kątem zdalnego systemu itp. Ten pakiet zawiera programy narzędziowe dla SHFS. %package -n kernel-fs-shfs Summary: SHell File System Linux kernel module Summary(pl): Moduł jądra Linuksa obsługujący powłokowy system plików Release: %{rel}@%{_kernel_ver_str} Group: Base/Kernel %{!?_without_dist_kernel:%requires_releq_kernel_up} Requires(post,postun): /sbin/depmod Obsoletes: kernel-misc-shfs %description -n kernel-fs-shfs SHell File System Linux kernel module. %description -n kernel-fs-shfs -l pl Moduł jądra Linuksa obsługujący powłokowy system plików. %package -n kernel-smp-fs-shfs Summary: SHell File System Linux SMP kernel module Summary(pl): Moduł jądra Linuksa SMP obsługujący powłokowy system plików Release: %{rel}@%{_kernel_ver_str} Group: Base/Kernel %{!?_without_dist_kernel:%requires_releq_kernel_smp} Requires(post,postun): /sbin/depmod Obsoletes: kernel-smp-misc-shfs %description -n kernel-fs-shfs SHell File System Linux kernel module. %description -n kernel-smp-fs-shfs -l pl Moduł jądra Linuksa obsługujący powłokowy system plików. %prep %setup -q %patch -p1 %build %{__make} -C shfs \ CC="%{kgcc} -D__SMP__" \ OPT="%{rpmcflags}" mv -f shfs/shfs.o shfs.smp.o %{__make} clean -C shfs %{__make} -C shfs \ CC="%{kgcc}" \ OPT="%{rpmcflags}" %{__make} -C shfsmount \ CC="%{__cc}" \ OPT="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/shfs %{__make} install \ ROOT=$RPM_BUILD_ROOT \ MODULESDIR=$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver} \ MAN_PAGE_DIR=%{_mandir} install shfs.smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/shfs/shfs.o %clean rm -rf $RPM_BUILD_ROOT %post -n kernel-fs-shfs %depmod %{_kernel_ver} %postun -n kernel-fs-shfs %depmod %{_kernel_ver} %post -n kernel-smp-fs-shfs %depmod %{_kernel_ver}smp %postun -n kernel-smp-fs-shfs %depmod %{_kernel_ver}smp %files %defattr(644,root,root,755) %doc COPYRIGHT Changelog TODO docs/html %attr(755,root,root) %{_bindir}/* /sbin/* %{_mandir}/man8/* %files -n kernel-fs-shfs %defattr(644,root,root,755) %attr(755,root,root) /lib/modules/%{_kernel_ver}/kernel/fs/shfs/*.o* %files -n kernel-smp-fs-shfs %defattr(644,root,root,755) %attr(755,root,root) /lib/modules/%{_kernel_ver}smp/kernel/fs/shfs/*.o*