[Cadaver] Command-line WebDAV Tool — Compilation on Solaris 10

Just compiled cadaver, the command-line tool for accessing webdav services on the web. The setup is pretty straight forward, but in case this can help someone here is what I did to compile and use cadaver on Solaris 10 (Sparc) with OpenSSL:

Download Dependencies

First download the cadaver source (at the time of this post, the latest version of cadaver is cadaver-0.23.3.  The download the following dependencies:

  1. gcc 3.4.6
  2. openssl 1.0a
  3. ncurse 5.7
  4. expat 2.0.1
  5. zlib 1.2.5
  6. neon 0.25.5
  7. make 3.82 (this is GNUMake)
  8. libintl 3.4.0
  9. libiconv 1.11

Feel free to install them in the order listed above. Below is a “copy and pate” listing if you have curl installed on your machine.

curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/neon-0.25.5-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/openssl-1.0.0a-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/ncurses-5.7-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/expat-2.0.1-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/zlib-1.2.5-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/neon-0.25.5-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/gcc-3.4.6-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/make-3.82-sol10-sparc-local.gz"
curl -O "ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/libintl-3.4.0-sol10-sparc-local.gz"

Gunzip and Install Downloaded Packages

Provided the above files were all download to a single directory you can:

# gunzip *.gz
# pkgadd -d <sol-package>

repeat the pkgadd for each package downloaded.

Setup Environment Variables

# export PATH=$PATH:/usr/local/bin:/usr/local/ssl/bin
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Gunzip Cadaver and Compile

# gunzip < cadaver-0.23.3.tar.gz | tar xvf –
# cd cadaver-0.23.3
# ./configure –with-ssl
…edited output…
configure: Configured to build cadaver 0.23.3:

Install prefix:        /usr/local
Compiler:              gcc
Neon library:          included libneon (0.29.1)
XML Parser:            expat
SSL library:           SSL support enabled, using OpenSSL (0.9.7 or later)
Internationalization:  Built using native support
GNU readline support:  enabled
…edited output…

# make
# make install

Launch and test ‘cadaver’ from the command prompt making sure everything is working as expected.

# cadaver
dav:!> help
Available commands:
ls         cd         pwd        put        get        mget       mput
edit       less       mkcol      cat        delete     rmcol      copy
move       lock       unlock     discover   steal      showlocks  version
checkin    checkout   uncheckout history    label      propnames  chexec
propget    propdel    propset    search     set        open       close
echo       quit       unset      lcd        lls        lpwd       logout
help       describe   about
Aliases: rm=delete, mkdir=mkcol, mv=move, cp=copy, more=less, quit=exit=bye

Advertisements
This entry was posted in *Nix, Security. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s