From 71b4dcec483c823c1770cb2dc356c73659388757 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 18:06:44 +0100 Subject: [PATCH] automatic version update by autodist [release 2.5-1mamba;Thu Jan 16 2014] --- README.md | 13 +++++++ sshfs-1.8-cflags.patch | 9 +++++ sshfs-help2man | 9 +++++ sshfs.spec | 79 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 sshfs-1.8-cflags.patch create mode 100644 sshfs-help2man create mode 100644 sshfs.spec diff --git a/README.md b/README.md index 2ec4ca5..066f57f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # sshfs +SSHFS is a filesystem client based on the SSH File Transfer Protocol. +Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do. +On the client side mounting the filesystem is as easy as logging into the server with ssh. + +The idea of sshfs was taken from the SSHFS filesystem distributed with LUFS, which I found very useful. +There were some limitations of that codebase, so I rewrote it. +Features of this implementation are: + +* Based on FUSE (the best userspace filesystem framework for linux ;-) +* Multithreading: more than one request can be on it's way to the server +* Allowing large reads (max 64k) +* Caching directory contents + diff --git a/sshfs-1.8-cflags.patch b/sshfs-1.8-cflags.patch new file mode 100644 index 0000000..a44d6e9 --- /dev/null +++ b/sshfs-1.8-cflags.patch @@ -0,0 +1,9 @@ +--- Makefile.am.orig 2007-06-01 18:37:39.000000000 +0200 ++++ Makefile.am 2007-06-01 18:39:03.000000000 +0200 +@@ -25,5 +25,5 @@ + rm -f "$(DESTDIR)$(libdir)/sshnodelay.so" + + sshnodelay.so: +- $(CC) -Wall -W -s --shared -fPIC $(sshnodelay_libs) sshnodelay.c -o sshnodelay.so ++ $(CC) $(CFLAGS) -Wall -W --shared -fPIC $(sshnodelay_libs) sshnodelay.c -o sshnodelay.so + endif diff --git a/sshfs-help2man b/sshfs-help2man new file mode 100644 index 0000000..8a3c837 --- /dev/null +++ b/sshfs-help2man @@ -0,0 +1,9 @@ +#!/bin/sh + +PATH=.:$PATH + +if [ "$1" == "--version" ]; then + sshfs $@ 2>&1 | grep SSHFS | tr [:upper:] [:lower:] +else + sshfs $@ 2>&1 +fi diff --git a/sshfs.spec b/sshfs.spec new file mode 100644 index 0000000..7033802 --- /dev/null +++ b/sshfs.spec @@ -0,0 +1,79 @@ +Name: sshfs +Version: 2.5 +Release: 1mamba +Summary: A filesystem client based on the SSH File Transfer Protocol +Group: System/Kernel and Hardware/Drivers +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://fuse.sourceforge.net/sshfs.html +Source: http://downloads.sourceforge.net/fuse/sshfs-fuse-%{version}.tar.gz +Source1: %{name}-help2man +Patch: %{name}-1.8-cflags.patch +License: GPL +BuildRequires: libfuse-devel +BuildRequires: libglib-devel +BuildRequires: help2man +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SSHFS is a filesystem client based on the SSH File Transfer Protocol. +Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do. +On the client side mounting the filesystem is as easy as logging into the server with ssh. + +The idea of sshfs was taken from the SSHFS filesystem distributed with LUFS, which I found very useful. +There were some limitations of that codebase, so I rewrote it. +Features of this implementation are: + +* Based on FUSE (the best userspace filesystem framework for linux ;-) +* Multithreading: more than one request can be on it's way to the server +* Allowing large reads (max 64k) +* Caching directory contents + +%prep +%setup -q -n %{name}-fuse-%{version} +%patch +sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac + +%build +autoreconf -fi +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -m 755 %{S:1} . +install -d %{buildroot}/%{_mandir}/man8 +help2man ./%{name}-help2man > %{buildroot}/%{_mandir}/man8/%{name}.8 +gzip %{buildroot}/%{_mandir}/man8/%{name}.8 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/%{name} +#%{_libdir}/*.so +%{_mandir}/man1/%{name}.1.gz +%{_mandir}/man8/%{name}.8.gz +%doc AUTHORS COPYING +#ChangeLog FAQ.txt NEWS README + +%changelog +* Thu Jan 16 2014 Automatic Build System 2.5-1mamba +- automatic version update by autodist + +* Thu Jan 31 2013 Automatic Build System 2.4-1mamba +- automatic version update by autodist + +* Tue Jan 27 2009 Silvan Calarco 2.2-1mamba +- automatic update by autodist + +* Fri Jun 01 2007 Stefano Cotta Ramusino 1.8-1mamba +- update to 1.8 + +* Thu May 03 2007 Stefano Cotta Ramusino 1.7-1mamba +- package created by autospec +- added man page