Davfs

General support questions
Post Reply
milan
Posts: 5
Joined: 2014/08/10 18:11:06

Davfs

Post by milan » 2014/08/10 18:51:27

Hello,
Please advice how to mount DAVFS directory in CentOS 7? I have not found a package fuse-wdfs or davfs2 in the repository EPEL and rpmforge.

Thank you

urwen
Posts: 1
Joined: 2014/09/09 14:20:51

Re: Davfs

Post by urwen » 2014/09/09 14:22:57

sudo yum install cadaver

milan
Posts: 5
Joined: 2014/08/10 18:11:06

Re: Davfs

Post by milan » 2014/09/12 12:58:56

yum install cadaver
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 27 kB 00:00:00
epel | 4.4 kB 00:00:00
extras | 3.4 kB 00:00:00
rpmforge | 1.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 26 kB 00:00:00
(2/4): epel/x86_64/group_gz | 250 kB 00:00:02
(3/4): epel/x86_64/primary_db | 3.1 MB 00:00:09
(4/4): updates/7/x86_64/primary_db | 2.9 MB 00:00:13
(1/2): epel/x86_64/updateinfo | 1.6 kB 00:00:00
(2/2): epel/x86_64/pkgtags
No package cadaver available.
Error: Nothing to do

larry.m
Posts: 2
Joined: 2014/12/14 00:58:45

Re: Davfs

Post by larry.m » 2014/12/14 01:57:42

I'm pretty sure there isn't one. But, it's easy enough to build from the SRPM from CentOS 6,
Here's how I did it:

I. Download the SRPM for CentOS 6 from rpmforge: http://pkgs.repoforge.org/fuse-wdfs/fus ... rf.src.rpm

II. I'm assuming you already have a build environment set up in your home dir; if not, do that first.

Code: Select all

mkdir -pv ~/rpmbuild/{BUILD,LOGS,RPMS/{i386,i486,i586,i686,noarch,x86_64},SOURCES,SPECS,SRPMS}
The LOGS directory isn't strictly necessary; I find it useful, though, so I create it. The directory structure you're after is:

Code: Select all

rpmbuild
    |-- BUILD
    |-- LOGS
    |-- RPMS
    |   |-- i386
    |   |-- i486
    |   |-- i586
    |   |-- i686
    |   |-- noarch
    |   `-- x86_64
    |-- SOURCES
    |-- SPECS
    `-- SRPMS
Don't forget to create a basic ~/.rpmmacros file. Mine doesn't contain a whole lot; generally, I haven't found they need to:

Code: Select all

%dist           .ecs
%_topdir        /export/home/lmorley/rpmbuild
%_initddir      /etc/rc.d/init.d
%_buildlogs     %{_topdir}/LOGS
III. Install the SRPM. I installed it with

Code: Select all

rpm -ivh fuse-wdfs-1.4.2-1.rf.src.rpm
IV. Read the .spec file and make sure you have all of the requisite software installed for building the package:

Code: Select all

BuildRequires: fuse-devel >= 2.5
BuildRequires: neon-devel
Requires: fuse >= 2.5
V. Edit the .spec file - at a minimum, make a fresh changelog entry. I always also define dist to my company's acronym or my initials. Then, build it.

Code: Select all

cd ~/rpmbuild
rpmbuild -ba SPECS/fuse-wdfs.spec 2>&1 |& LOGS/fuse-wdfs.log
Note that the instructions for I/O redirection here assume that you're using sh, bash, etc. (though it's entirely possible to adapt this for the C shell and many others). I usually log build attempts so I can see what went wrong (as opposed to trying to read whatever is flying by my eyes on my monitor). If you want to see what's happening in real time and still log it, change the pipe-ampersand redirection operator in the above to

Code: Select all

|& tee LOGS/fuse-wdfs.log
That will slow the build down somewhat, but will write output to the display and to your log file simultaneously.

VI. Install it.

Code: Select all

yum -y install ~RPMS/x86_64/fuse-wdfs-1.4.2-1ecs.x86_64.rpm
When you go to use it with gnote, remember to put a trailing / on the path: i.e., http://my.server/webdav/.
Hope this helps.

- Larry

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Davfs

Post by gerald_clark » 2014/12/14 03:41:23

You can also expect future problems.
You have incompatible repos enabled and no priorities.

larry.m
Posts: 2
Joined: 2014/12/14 00:58:45

Re: Davfs

Post by larry.m » 2014/12/16 05:57:17

Ah, yes; the obvious :=)...

You're absolutely right; EPEL plus RPMForge without any
priorities will likely == a nasty taste of painting oneself into
a corner, at some point. But, then, I needed to learn to not
do that, too.

Post Reply

Return to “CentOS 7 - General Support”