[lbdb/f16] lbdb 0.38

Christophe Fergeau teuf at fedoraproject.org
Tue Mar 6 22:07:29 UTC 2012


commit 16441ee24637ac6f1161f29cea9bcd7f3f135fb0
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Tue Mar 6 23:01:55 2012 +0100

    lbdb 0.38

 .gitignore               |    1 +
 lbdb-0.32-evolution.diff |   23 ++++++
 lbdb-0.38-evolution.diff |   33 +++++++++
 lbdb-hostname.diff       |   29 ++++++++
 lbdb.rc.diff             |   13 ++++
 lbdb.spec                |  170 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 7 files changed, 270 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a50bf18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lbdb_0.38.tar.gz
diff --git a/lbdb-0.32-evolution.diff b/lbdb-0.32-evolution.diff
new file mode 100644
index 0000000..820e861
--- /dev/null
+++ b/lbdb-0.32-evolution.diff
@@ -0,0 +1,23 @@
+Index: lbdb-0.37/m_evolution.sh.in
+===================================================================
+--- lbdb-0.37.orig/m_evolution.sh.in
++++ lbdb-0.37/m_evolution.sh.in
+@@ -28,9 +28,16 @@
+ m_evolution_query ()
+ {
+     AWK=@AWK@
+-    EVOLUTION_ADDRESSBOOK_EXPORT=@EVOLUTION_ADDRESSBOOK_EXPORT@
++    EVOLUTION_ADDRESSBOOK_EXPORT=''
+ 
+-    if [ -x $EVOLUTION_ADDRESSBOOK_EXPORT ]; then
++    for i in @EVOLUTION_ADDRESSBOOK_EXPORT@; do
++	    if [ -x "$i" ]; then
++		    EVOLUTION_ADDRESSBOOK_EXPORT="$i"
++		    break;
++	    fi
++    done
++
++    if [ -x "$EVOLUTION_ADDRESSBOOK_EXPORT" ]; then
+         $EVOLUTION_ADDRESSBOOK_EXPORT 2>/dev/null \
+         | $AWK 'BEGIN {
+                     FS = ":"
diff --git a/lbdb-0.38-evolution.diff b/lbdb-0.38-evolution.diff
new file mode 100644
index 0000000..8cab276
--- /dev/null
+++ b/lbdb-0.38-evolution.diff
@@ -0,0 +1,33 @@
+diff --git a/m_evolution.sh.in b/m_evolution.sh.in
+index e0c02cb..29fed4d 100644
+--- a/m_evolution.sh.in
++++ b/m_evolution.sh.in
+@@ -28,10 +28,10 @@
+ m_evolution_query ()
+ {
+     AWK=@AWK@
+-    EVOLUTION_ADDRESSBOOK_EXPORT=@EVOLUTION_ADDRESSBOOK_EXPORT@
++    EVOLUTION_ADDRESSBOOK_EXPORT=''
+ 
+     if [ "$EVOLUTION_ADDRESSBOOK_EXPORT" = "auto" ]; then
+-	for e in /usr/lib/evolution/*/evolution-addressbook-export
++	for e in /usr/libexec/evolution/*/evolution-addressbook-export
+ 	do
+ 	    if [ -x $e ]; then
+ 		EVOLUTION_ADDRESSBOOK_EXPORT=$e
+@@ -39,7 +39,14 @@ m_evolution_query ()
+ 	done
+     fi
+ 
+-    if [ -x $EVOLUTION_ADDRESSBOOK_EXPORT ]; then
++    for i in @EVOLUTION_ADDRESSBOOK_EXPORT@; do
++	if [ -x "$i" ]; then
++	    EVOLUTION_ADDRESSBOOK_EXPORT="$i"
++	    break;
++	fi
++    done
++
++    if [ -x "$EVOLUTION_ADDRESSBOOK_EXPORT" ]; then
+         $EVOLUTION_ADDRESSBOOK_EXPORT 2>/dev/null \
+         | $AWK 'BEGIN {
+                     FS = ":"
diff --git a/lbdb-hostname.diff b/lbdb-hostname.diff
new file mode 100644
index 0000000..d83093b
--- /dev/null
+++ b/lbdb-hostname.diff
@@ -0,0 +1,29 @@
+Index: lbdb-0.34/lbdb_lib.sh.in
+===================================================================
+--- lbdb-0.34.orig/lbdb_lib.sh.in
++++ lbdb-0.34/lbdb_lib.sh.in
+@@ -55,21 +55,18 @@ lbdb_hostname()
+ 	if test "x$MAIL_DOMAIN_NAME" != "x" ; then
+ 		hn=$MAIL_DOMAIN_NAME
+ 	elif test -f /etc/mailname; then
+-		hn=`cat /etc/mailname`
++		read hn < /etc/mailname
+ 	else
+ 		hn=""
+ 		if test -r /etc/resolv.conf ; then
+-			hn="`sed -n -e 's/^[ 	]*domain[ 	]\{1,\}\([^ ]*\)/\1/p' /etc/resolv.conf`"
+-			if test "x$hn" = "x" ; then
+-				hn="`sed -n -e 's/^[ 	]*search[ 	]\{1,\}\([^ ]*\)/\1/p' /etc/resolv.conf`"
+-			fi
++			hn=`awk '/^#/{next}($1 == "search" || $1 == "domain" ) && $2 != "" {print $2;exit}' < /etc/resolv.conf`
+ 		fi
+ 		if test "x$hn" = "x" ; then
+ 			hn=`lbdb_hn_sendmail`
+ 			if test "x$hn" = "xNONE" ; then
+ 				for i in /etc/HOSTNAME /etc/hostname ; do
+ 					if test -f $i ; then
+-						hn="`cat $i`"
++						read hn < $i
+ 						break;
+ 					fi
+ 				done
diff --git a/lbdb.rc.diff b/lbdb.rc.diff
new file mode 100644
index 0000000..784284a
--- /dev/null
+++ b/lbdb.rc.diff
@@ -0,0 +1,13 @@
+Index: lbdb.rc.in
+===================================================================
+--- lbdb.rc.in.orig
++++ lbdb.rc.in
+@@ -40,7 +40,7 @@
+ # - m_evolution  search in the Ximan Evolution addressbook.
+ # - m_vcf        search a vcard (according to RFC2426) file.
+ 
+-METHODS="m_inmail m_passwd m_finger"
++METHODS="m_inmail m_finger m_getent m_gpg"
+ 
+ 
+ #
diff --git a/lbdb.spec b/lbdb.spec
new file mode 100644
index 0000000..0051e38
--- /dev/null
+++ b/lbdb.spec
@@ -0,0 +1,170 @@
+#
+# spec file for package lbdb
+#
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 Red Hat, Inc
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugzilla.redhat.com
+#
+
+Name:           lbdb
+Summary:        Address Database for mutt
+Version:        0.38
+Release:        2%{?dist}
+License:        GPLv2+
+Url:            http://www.spinnaker.de/lbdb/
+Group:          Applications/Communications
+Source:         http://www.spinnaker.de/debian/lbdb_%{version}.tar.gz
+# change default modules list
+Patch:          lbdb.rc.diff
+# fix path of evolution-addressbook-export
+Patch1:         lbdb-0.38-evolution.diff
+# fix hostname lookup if multiple domains are listed in resolv.conf
+Patch2:         lbdb-hostname.diff
+Requires:       perl(Net::LDAP)
+Requires:       perl(Getopt::Long)
+
+%description
+The Little Brother's Database (lbdb) consists of a set of small tools
+that collect mail addresses from several sources and offer these
+addresses to the external query feature of the Mutt mail reader.
+
+
+%prep
+%setup -q -n lbdb-%{version}
+%patch -p0
+%patch1 -p1
+%patch2 -p1
+
+
+%build
+export EVOLUTION_ADDRESSBOOK_EXPORT='/usr/libexec/evolution/*/evolution-addressbook-export'
+# lbdb uses libdir in most of its helper programs to find the absolute path
+# to these binaries, that's why it's forcefully set to %_libexecdir/lbdb.
+# Another option would be to s/libdir/libexecdir in the helpers, but there
+# are about 15 programs to patch, so this approach is easier.
+%configure --libdir=%{_libexecdir}/lbdb
+make %{?_smp_mflags}
+
+
+%install
+BUILD_ROOT=${RPM_BUILD_ROOT} make \
+        install_prefix=${RPM_BUILD_ROOT} \
+        sysconfdir=%{_sysconfdir} \
+        mandir=%{_mandir} \
+        libdir=%{_libexecdir}/lbdb \
+        install
+
+
+%files
+%doc README COPYING INSTALL TODO
+%config(noreplace) %{_sysconfdir}/*
+%{_bindir}/*
+%{_libexecdir}/lbdb/*
+%dir %{_libexecdir}/lbdb
+%doc %{_mandir}/man?/*
+
+%changelog
+* Sun Mar 04 2012 Christophe Fergeau <cfergeau at redhat.com> - 0.38-2
+- add %%{?dist} in release
+- remove use of BuildRoot:
+- remove use of %%defattr
+- remove usage instruction from %%description
+- comment patches
+
+* Mon Sep 19 2011 Christophe Fergeau <cfergeau at redhat.com> - 0.38-1
+- new version 0.38
+  * adapt the spec file for fedora use
+
+* Tue Feb  8 2011 lnussel at suse.de
+- Suggest perl(Net::LDAP) (bnc#669969)
+* Wed May 19 2010 lnussel at suse.de
+- new version 0.37
+  * Fix bashisms in m_bbdb
+  * Fix query shell functions to catch non-zero exit status in case they
+    get invoked in set -e context.
+  * m_evolution: support line breaks and long lines.
+  * Fix documentation concerning the quotes on lbdbq call
+- fix path to evolution-addressbook-export
+* Tue Nov  3 2009 coolo at novell.com
+- updated patches to apply with fuzz=0
+* Thu Oct  2 2008 lnussel at suse.de
+- new version 0.36
+  * Remove duplicate "See also: mutt" from lbdbq.man.
+  * Update configure using autconf 2.61.
+  * Apply charset conversation patch by Peter Colberg based on code by
+    Tobias Schlemmer.
+  * Remove duplicate declaration of $ignorant.
+  * Handle mail addresses in mutt_ldap_query correct. Thanks to Colin
+    Watson <cjwatson at debian.org> for providing a patch.
+  * Mention ldapi URIs in mutt_ldap_query man page.
+  * Protect "make distclean" by checking whether makefile exists.
+  * Upgrade to Standards-Version 3.8.0:
+  - Fix Homepage header in control file.
+  * Add copyright holders to debian/copyright file.
+  * Remove outdated override.Lintian.
+* Fri Aug 10 2007 lnussel at suse.de
+- new version 0.35.1
+  * supports ldaps
+* Wed May 16 2007 lnussel at suse.de
+- new version 0.34
+  * vcquery: avoid free() on unallocated memory if fullname is not set.
+  * vcquery: Use value of concatenated N fields if FN field is missing.
+- fix hostname lookup if multiple domains are listed in resolv.conf
+* Mon Oct 16 2006 lnussel at suse.de
+- new version 0.33
+  * Add SORT_OUTPUT=reverse_comment to do reverse sort by the third column
+    (most recent m_inmail timestamp at the top).
+  * Comment out LDAP_NICKS in lbdb.rc because this should only be an
+    example and if it is set there it overrides other LDAP settings
+* Thu Aug 24 2006 lnussel at suse.de
+- new version 0.32
+- fix path to evolution-addressbook-export
+* Wed Jan 25 2006 mls at suse.de
+- converted neededforbuild to BuildRequires
+* Mon May  9 2005 lnussel at suse.de
+- update to version 0.30
+* Fri Feb 27 2004 lnussel at suse.de
+- run configure similar to the original debian package to reduce
+  neededforbuild and to fix evolution addressbook query
+- add gpg to default address query methods
+* Thu Feb 26 2004 lnussel at suse.de
+- update to version 0.29
+* Sun Feb  8 2004 lnussel at suse.de
+- update to version 0.28.2
+- use %%optflags, fix aliasing problems
+* Wed Feb 12 2003 lnussel at suse.de
+- new version 0.26.2
+  * new ldap option $ignorant
+  * support for multiple abook address books
+* Fri Aug 16 2002 ro at suse.de
+- removed emtpy post/postun scripts (#17916)
+* Thu Apr 25 2002 lnussel at suse.de
+- new version 0.26
+- now uses m_getent instead of m_passwd (lbdb.rc.dif)
+- moved files from %%{_prefix}/lib to %%{_libdir}/lbdb
+* Tue Jul 24 2001 lnussel at suse.de
+- new version 0.25
+* Tue Mar 20 2001 lnussel at suse.de
+- new version 0.24
+- added finger to neededforbuild
+* Wed Feb  7 2001 lnussel at suse.de
+- new version 0.23
+- neededforbuild: ypbind -> yp-tools
+* Thu Nov 30 2000 ro at suse.de
+- neededforbuild: ypclient -> ypbind
+* Thu Oct 12 2000 lnussel at suse.de
+- new version 0.21.1
+- cleaned up spec file
+- changed Group to Applications/Mail
+* Tue Aug 29 2000 lnussel at suse.de
+- initial check in
diff --git a/sources b/sources
index e69de29..df0a0ac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a8e65f1400c90818ff324dc4fd67eba2  lbdb_0.38.tar.gz


More information about the scm-commits mailing list