summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 638efff)
raw | patch | inline | side by side (parent: 638efff)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 8 Jan 2007 14:48:30 +0000 (14:48 +0000) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 8 Jan 2007 14:48:30 +0000 (14:48 +0000) |
debian/control | patch | blob | history | |
debian/patches/00list | [new file with mode: 0644] | patch | blob |
debian/patches/netrc-doc.dpatch | [new file with mode: 0644] | patch | blob |
debian/rules | patch | blob | history |
diff --git a/debian/control b/debian/control
index ef8b3f318da005bec003463e1cd3cecdd2e1c061..e16a4c5ed463db53447ef4aa5f49925cb7b9cec8 100644 (file)
--- a/debian/control
+++ b/debian/control
Section: web
Priority: optional
Maintainer: Sebastian Harl <sh@tokkee.org>
-Build-Depends: debhelper (>= 5), libncurses5-dev, libxml2-dev | libxml-dev, libreadline5-dev, zlib1g-dev (>= 1:1.1.3), libneon26-gnutls-dev
+Build-Depends: debhelper (>= 5), libncurses5-dev, libxml2-dev | libxml-dev, libreadline5-dev, zlib1g-dev (>= 1:1.1.3), libneon26-gnutls-dev, dpatch
Standards-Version: 3.7.2
Package: cadaver
diff --git a/debian/patches/00list b/debian/patches/00list
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,2 @@
+netrc-doc.dpatch
+
diff --git a/debian/patches/netrc-doc.dpatch b/debian/patches/netrc-doc.dpatch
--- /dev/null
@@ -0,0 +1,88 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## netrc-doc.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: Document the .netrc file support.
+
+@DPATCH@
+
+--- a/doc/cadaver.1 2007-01-08 15:32:18.000000000 +0100
++++ b/doc/cadaver.1 2007-01-08 15:32:13.000000000 +0100
+@@ -14,6 +14,12 @@
+ .BR smbclient (1).
+ A user familiar with these tools should be quite
+ comfortable with cadaver.
++
++.B cadaver
++supports automatically logging in to servers requiring authentication via
++a .netrc file (similar to
++.BR ftp (1)
++- see section "THE .netrc FILE" below).
+ .SH OPTIONS
+ .IP "-e, --expect100"
+ Enable sending of `Expect: 100-continue' header.
+@@ -93,6 +99,55 @@
+ Logout of authentication session
+ .IP "help [command]"
+ Display help message
++.SH THE .netrc FILE
++The file
++.I ~/.netrc
++may be used to automatically login to a server requiring authentication. The
++following tokens (separated by spaces, tabs or newlines) may be used:
++
++.B machine
++.I host
++.RS
++Identify a remote machine
++.I host
++which is compared with the hostname given on the command line or as an
++argument to the
++.B open
++command.
++Any subsequent tokens up to the end of file or the next
++.B machine
++or
++.B default
++token are associated with this entry.
++.RE
++
++.B default
++.RS
++This is equivalent to the
++.B machine
++token but matches any hostname. Only one
++.B default
++token may be used and it must be after all
++.B machine
++tokens.
++.RE
++
++.B login
++.I username
++.RS
++Specifies the username to use when logging in to the remote machine.
++.RE
++
++.B password
++.I string
++.br
++.B passwd
++.I string
++.RS
++Specifies the password to use when logging in to the remote machine.
++.RE
++
++Any other tokens (as described in ftp(1)) are ignored.
+ .SH EXAMPLES
+ .IP "cadaver http://dav.example.com/"
+ Connects to the server myserver.example.com, opening the root collection.
+@@ -105,6 +160,9 @@
+ .SH FILES
+ .IP "~/.cadaverrc"
+ Individual user settings that can override cadaver defaults.
++.IP "~/.netrc"
++Login and initialization information used by the auto-login process. See
++section "THE .netrc FILE" for details.
+ .SH AUTHOR
+ Joe Orton <cadaver@webdav.org>
+ .SH SEE ALSO
diff --git a/debian/rules b/debian/rules
index 1fdc8d05ff47d09bb3b492363b6eb1189231c799..bf9b99e50f5261160ccfa5bfd20b64064e98e562 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
CFLAGS += -O2
endif
+include /usr/share/dpatch/dpatch.make
+
$(BUILDDIR)/config.status: configure
dh_testdir
[ -e $(BUILDDIR) ] || mkdir $(BUILDDIR)
build: build-stamp
-build-stamp: $(BUILDDIR)/config.status
+build-stamp: $(BUILDDIR)/config.status patch
dh_testdir
dh_clean
touch build-stamp
-clean:
+clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp