From e643690e6d9ae009a72d555d1a1863e61eb55416 Mon Sep 17 00:00:00 2001 From: Alan Ford Date: Sun, 17 Mar 2002 14:51:50 +0000 Subject: [PATCH] Imported Debian patch 0.4.16-1 --- contrib/abook+vim/README.abook+vim | 57 +++++++++++++++++ debian/changelog | 99 ++++++++++++++++++++++++++++++ debian/control | 14 +++++ debian/copyright | 14 +++++ debian/dirs | 1 + debian/docs | 7 +++ debian/menu | 2 + debian/rules | 75 ++++++++++++++++++++++ 8 files changed, 269 insertions(+) create mode 100644 contrib/abook+vim/README.abook+vim create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/menu create mode 100755 debian/rules diff --git a/contrib/abook+vim/README.abook+vim b/contrib/abook+vim/README.abook+vim new file mode 100644 index 0000000..ad81c3a --- /dev/null +++ b/contrib/abook+vim/README.abook+vim @@ -0,0 +1,57 @@ +NOTE: There's no need to patch abook version 0.4.14 or later. +NOTE2: The command in abook is 'Q' not 'P'. + +--- Original message from Brian Medley --- +Hi, + +I am trying to make abook work better (for me) within vim. I am doing +this because I have 'autoedit' and 'edit_headers' set in mutt. This +means I would like to have easy access to my abook addressbook (from +within the editor). + +To accomplish this I have written a vim plugin (it will need vim 6.0) +and have patched abook. Both are included. The patch is against abook +0.4.13. + +Amongst other things, they allow me to obtain an address listing from +abook and perform a mutt query using abook. Below is an example. + +Suppose I have the following line (the cursor is at the caret): + To: + ^ +I can now hit '\al' to lauch abook. Once inside, I can highlight the +people I want to email. Then I hit 'P'. Their email addresses now +appear. Next, suppose I have: + To: john + ^ +My plugin allows the command '\aq' to perform an alias mutt query using +abook. It uses the word under the cursor, so "john" will be looked up +inside of abook. Next, his email address will appear. + +Summary: + \aq => alias query + \al => alias list + +Note: + - \ is actually LocalLeader + - I am aware that abook can do these things from within *mutt*, but + I want to do them from within vim. + - This plugin does other stuff, as well (like deleting signatures, + and positioning the cursor when you start) because I stole code + from Cedric Duval's mail vimrc. + - Improvements / comments are welcome. + +Todo: + - Documentation :) + - I tried to write this so that another alias query program could be + used (e.g. ldap), but I have not implemented this. + +Bugs: + - I had trouble getting this to work in gvim. I used vim in a + console. + +Basic Installation: + - patch and install abook + - place the mail.vim plugin in ~/.vim/after/ftplugin + +--- --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..997cb4c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,99 @@ +abook (0.4.16-1) unstable; urgency=low + + * New upstream release + * Closes: #129867, #133482 + + -- Alan Ford Sun, 17 Mar 2002 14:51:50 +0000 + +abook (0.4.15-1) unstable; urgency=low + + * New upstream release. Closes: #131309 + * Added some contrib files in /usr/share/doc/abook/ + + -- Alan Ford Sun, 4 Nov 2001 14:50:38 +0000 + +abook (0.4.14-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Sat, 29 Sep 2001 22:49:00 +0100 + +abook (0.4.13-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Wed, 20 Jun 2001 22:16:42 +0100 + +abook (0.4.12-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Tue, 20 Mar 2001 21:51:22 +0000 + +abook (0.4.11-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Tue, 2 Jan 2001 17:08:46 +0000 + +abook (0.4.10-1) unstable; urgency=low + + * New upstream release + * Fixes segfault bug. Closes: #70083 + + -- Alan Ford Sat, 16 Sep 2000 09:52:19 +0100 + +abook (0.4.9-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Thu, 27 Jul 2000 23:00:07 +0100 + +abook (0.4.8-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Wed, 21 Jun 2000 16:33:48 +0100 + +abook (0.4.7-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Sun, 28 May 2000 16:10:59 +0100 + +abook (0.4.6-1) unstable; urgency=low + + * New upstream release + * Makes fields less US-specific. Closes: #62797 + + -- Alan Ford Thu, 11 May 2000 20:03:40 +0100 + +abook (0.4.5-1) unstable; urgency=low + + * New upstream release + * Removed generic INSTALL from doc directory. Closes: #62789 + + -- Alan Ford Fri, 21 Apr 2000 11:50:59 +0100 + +abook (0.4.4-1) unstable; urgency=low + + * New upstream release + * Fixes segfault bug. Closes: #62022 + + -- Alan Ford Sun, 9 Apr 2000 10:39:06 +0100 + +abook (0.4.3-1) unstable; urgency=low + + * New upstream release + + -- Alan Ford Sun, 2 Apr 2000 12:06:23 +0100 + +abook (0.4.2-1) unstable; urgency=low + + * Initial Release. + + -- Alan Ford Sat, 18 Mar 2000 12:38:34 +0000 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7542503 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: abook +Section: mail +Priority: optional +Maintainer: Alan Ford +Standards-Version: 3.5.6 +Build-Depends: debhelper, libncurses5-dev + +Package: abook +Architecture: any +Depends: ${shlibs:Depends} +Description: A text-based ncurses address book application. + abook is a text-based ncurses address book application. It provides many + different fields of user info. abook is designed for use with mutt, but + can be used independently. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fa0f719 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,14 @@ +This package was first debianized by Alan Ford +on Sat, 18 Mar 2000 12:38:34 +0000. + +It was downloaded from +http://abook.sourceforge.net/ + +Upstream Author: Jaakko Heinonen + +Copyright: + +abook is distributed under the terms of the GNU GPL, version 2. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e9f65da --- /dev/null +++ b/debian/docs @@ -0,0 +1,7 @@ +ANNOUNCE +AUTHORS +BUGS +FAQ +README +THANKS +TODO diff --git a/debian/menu b/debian/menu new file mode 100644 index 0000000..ef3c52e --- /dev/null +++ b/debian/menu @@ -0,0 +1,2 @@ +?package(abook):needs=text section=Apps/Tools\ + title="abook" command="/usr/bin/abook" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b05012a --- /dev/null +++ b/debian/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=1 + +build: build-stamp +build-stamp: + dh_testdir + + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) prefix=`pwd`/debian/tmp/usr install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples sample.abookrc contrib/mail2abook.py contrib/vcard2abook.pl + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installmanpages + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install -- 2.39.2