[lake@localhost source]$ git clone --depth 1 --branch sshfs_2_5 https://github.com/libfuse/sshfs
Cloning into 'sshfs'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 19 (delta 0), reused 11 (delta 0), pack-reused 0
Receiving objects: 100% (19/19), 50.07 KiB | 178.00 KiB/s, done.
Note: switching to '6b4415ada44e0cbf1924f534cd04d117a5a4dbd3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
[lake@localhost source]$ cd sshfs/
[lake@localhost sshfs]$ git branch
* (no branch)
[lake@localhost sshfs]$ git log
commit 6b4415ada44e0cbf1924f534cd04d117a5a4dbd3 (grafted, HEAD, tag: sshfs_2_5)
Author: Miklos Szeredi <[email protected]>
Date: Tue Jan 14 15:23:31 2014 +0100
Released 2.5
[lake@localhost sshfs]$
[remote@server sshfs]$ ls
AUTHORS cache.h compat COPYING Makefile.am README sshfs.c
cache.c ChangeLog configure.ac generate-faq.sh NEWS sshfs.1 sshnodelay.c
[remote@server sshfs]$ aclocal
[remote@server sshfs]$ autoconf
[remote@server sshfs]$ autoheader
[remote@server sshfs]$ automake --foreign --add-missing --copy
configure.ac:6: installing './compile'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
Makefile.am: installing './depcomp'
[remote@server sshfs]$
### Need fuse-dev and Gnome/glib2-devel-2.56.1-2.el7.x86_64 & gthread on Centos7
[root@localhost yum.repos.d]# rpm -qa |grep fuse
fuse-sshfs-2.5-1.el7.rf.x86_64
fuse-2.9.2-11.el7.x86_64
fuse-libs-2.9.2-11.el7.x86_64
fuse-devel-2.9.2-11.el7.x86_64
[remote@server sshfs]$
[lake@localhost sshfs]$ ./configure --prefix=/home/lake/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for library containing dlsym... -ldl
checking OpenSSH version... 7.4 >= 4.4, disabling NODELAY workaround
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SSHFS... yes
checking for fuse_opt_parse... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[lake@localhost sshfs]$ make -j8
make all-am
make[1]: Entering directory `/home/lake/source/sshfs'
gcc -DHAVE_CONFIG_H -I. -D_REENTRANT -DFUSE_USE_VERSION=26 -DLIBDIR=\"/home/lake/usr/lib\" -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/fuse -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -Wall -W -MT sshfs-sshfs.o -MD -MP -MF .deps/sshfs-sshfs.Tpo -c -o sshfs-sshfs.o `test -f 'sshfs.c' || echo './'`sshfs.c
gcc -DHAVE_CONFIG_H -I. -D_REENTRANT -DFUSE_USE_VERSION=26 -DLIBDIR=\"/home/lake/usr/lib\" -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/fuse -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -Wall -W -MT sshfs-cache.o -MD -MP -MF .deps/sshfs-cache.Tpo -c -o sshfs-cache.o `test -f 'cache.c' || echo './'`cache.c
sshfs.c: In function ‘main’:
sshfs.c:3810:2: warning: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:265) [-Wdeprecated-declarations]
g_thread_init(NULL);
^
mv -f .deps/sshfs-cache.Tpo .deps/sshfs-cache.Po
mv -f .deps/sshfs-sshfs.Tpo .deps/sshfs-sshfs.Po
gcc -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/fuse -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -Wall -W -o sshfs sshfs-sshfs.o sshfs-cache.o -pthread -lfuse -lgthread-2.0 -lglib-2.0
make[1]: Leaving directory `/home/lake/source/sshfs'
[lake@localhost sshfs]$ ls
aclocal.m4 ChangeLog config.log depcomp Makefile.in sshfs.1 stamp-h1
AUTHORS compat config.status generate-faq.sh missing sshfs.c
autom4te.cache compile configure install-sh NEWS sshfs-cache.o
cache.c config.h configure.ac Makefile README sshfs-sshfs.o
cache.h config.h.in COPYING Makefile.am sshfs sshnodelay.c
[lake@localhost sshfs]$ strip sshfs
########## sshfs mount/umount Test (normal user, no root)
[remote@server source]$ ./sshfs [email protected]:/home/lake mount/
[remote@server source]$ ls mount
nfs opt source usb video
[remote@server source]$ fusermount -u mount/
[remote@server source]$