import lbdb,

Little Brother Database is a simple email address database,
originally designed for Mutt, but working with other software.
It can query multiple backends, including local files of many
formats, and some network sources, including finger and
YP/NIS. LDAP support is available in the lbdb-ldap package.

requested by marco@
This commit is contained in:
sthen 2008-06-15 07:22:57 +00:00
parent a02fbdd612
commit bc7412fbf0
9 changed files with 153 additions and 0 deletions

55
databases/lbdb/Makefile Normal file
View File

@ -0,0 +1,55 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
COMMENT-main = little brother's database, email address query tools
COMMENT-ldap = LDAP support for little brother's database
DISTNAME = lbdb_0.35.1
PKGNAME = ${DISTNAME:S/_/-/}
FULLPKGNAME-main = ${PKGNAME}
CATEGORIES = databases mail
HOMEPAGE = http://www.spinnaker.de/lbdb/
MULTI_PACKAGES = -main -ldap
# GPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
RUN_DEPENDS-main = ::textproc/gsed \
::sysutils/ggrep
RUN_DEPENDS-ldap = ::databases/p5-ldap \
:${FULLPKGNAME-main}:databases/lbdb
WANTLIB = c
MASTER_SITES = http://www.spinnaker.de/debian/
MAKE_ENV = install_prefix=${WRKINST}
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --libdir=${PREFIX}/lib/lbdb \
--without-abook \
--without-addr-email \
--without-niscat \
--without-gpg \
--without-pgpk \
--without-pgp \
--without-evolution-addressbook-export \
--enable-lbdb-dotlock
WRKDIST = ${WRKDIR}/${DISTNAME:S/_/-/}
post-install:
${INSTALL_DATA_DIR} ${WRKINST}/${TRUEPREFIX}/share/examples/lbdb
mv ${WRKINST}/etc/lbdb.rc ${WRKINST}/etc/lbdb_ldap.rc \
${WRKINST}/${TRUEPREFIX}/share/examples/lbdb
.include <bsd.port.mk>

5
databases/lbdb/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (lbdb_0.35.1.tar.gz) = KdzpAxXLJA+TGO9fcFqzeA==
RMD160 (lbdb_0.35.1.tar.gz) = HCAsUy25Pz3sBmt2L3WijjfQHRo=
SHA1 (lbdb_0.35.1.tar.gz) = M8d2eySMxCiYlOCksH7VUUJITsw=
SHA256 (lbdb_0.35.1.tar.gz) = GHnFXGN8AKANeEFX//9khf1Wy5Xjf5FQ2XUMYCdfsJY=
SIZE (lbdb_0.35.1.tar.gz) = 108502

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lbdb_lib_sh_in,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
--- lbdb_lib.sh.in.orig Tue Mar 11 22:51:11 2008
+++ lbdb_lib.sh.in Tue Mar 11 22:51:37 2008
@@ -67,7 +67,7 @@ lbdb_hostname()
if test "x$hn" = "x" ; then
hn=`lbdb_hn_sendmail`
if test "x$hn" = "xNONE" ; then
- for i in /etc/HOSTNAME /etc/hostname ; do
+ for i in /etc/myname /etc/HOSTNAME /etc/hostname ; do
if test -f $i ; then
hn="`cat $i`"
break;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lbdb_rc_in,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
--- lbdb.rc.in.orig Tue Mar 11 22:51:52 2008
+++ lbdb.rc.in Tue Mar 11 22:52:05 2008
@@ -51,8 +51,8 @@ METHODS="m_inmail m_passwd m_finger"
#
# If it isn't possible to find out the correct mail domain name of
-# your system in /etc/mailname, by reading sendmail.cf, /etc/hostname
-# or /etc/HOSTNAME, you can specify it in the variable
+# your system in /etc/mailname, by reading sendmail.cf, /etc/myname,
+# /etc/hostname or /etc/HOSTNAME, you can specify it in the variable
# MAIL_DOMAIN_NAME. This overrides all other mechanisms.
#
#MAIL_DOMAIN_NAME=does-not-exist.org

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-m_muttalias_sh_in,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
--- m_muttalias.sh.in.orig Tue Mar 11 23:27:20 2008
+++ m_muttalias.sh.in Tue Mar 11 23:27:35 2008
@@ -33,13 +33,13 @@ m_muttalias_query()
if [ -f "$file" ]
then
- grep -ia "$@" $file \
- | grep -a '^alias[ ][ ]*[^,][^,]*[ ][ ]*\([^,]\|\\\".*\\\"\)*$' \
- | sed -e 's/^alias[ ][ ]*\([^ ][^ ]*\)[ ][ ]*<\([^ >][^ >]*\)>[ ][ ]*(\([^<>()]*\))[^()<>]*$/\2 \3 alias \1/' \
+ ggrep -ia "$@" $file \
+ | ggrep -a '^alias[ ][ ]*[^,][^,]*[ ][ ]*\([^,]\|\\\".*\\\"\)*$' \
+ | gsed -e 's/^alias[ ][ ]*\([^ ][^ ]*\)[ ][ ]*<\([^ >][^ >]*\)>[ ][ ]*(\([^<>()]*\))[^()<>]*$/\2 \3 alias \1/' \
-e 's/^alias[ ][ ]*\([^ ][^ ]*\)[ ][ ]*\(\\\".*\\\"[^<>()]*\|[^<>()]*\)<\([^<>()]*\)>[^<>]*$/\3 \2 alias \1/' \
-e 's/^alias[ ][ ]*\([^ ][^ ]*\)[ ][ ]*\([^<>()]*\)(\(\\\".*\\\"[^<>()]*\|[^<>()]*\))[^()<>]*$/\2 \3 alias \1/' \
-e 's/\\\"//g' \
- | grep -va '^alias[ ][ ]*[^,][^,]*[ ][ ]*[^,]*$'
+ | ggrep -va '^alias[ ][ ]*[^,][^,]*[ ][ ]*[^,]*$'
fi
done
}

View File

@ -0,0 +1 @@
LDAP support for Little Brother Database.

View File

@ -0,0 +1,5 @@
Little Brother Database is a simple email address database,
originally designed for Mutt, but working with other software.
It can query multiple backends, including local files of many
formats, and some network sources, including finger and
YP/NIS. LDAP support is available in the lbdb-ldap package.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST-ldap,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
lib/lbdb/m_ldap
lib/lbdb/mutt_ldap_query
@man man/man1/mutt_ldap_query.1
share/examples/lbdb/lbdb_ldap.rc
@sample ${SYSCONFDIR}/lbdb_ldap.rc

View File

@ -0,0 +1,34 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2008/06/15 07:22:57 sthen Exp $
bin/lbdb-fetchaddr
@bin bin/lbdb_dotlock
bin/lbdbq
bin/nodelist2lbdb
lib/lbdb/
@bin lib/lbdb/fetchaddr
lib/lbdb/lbdb-munge
lib/lbdb/lbdb_bbdb_query.el
lib/lbdb/lbdb_lib
lib/lbdb/m_bbdb
lib/lbdb/m_fido
lib/lbdb/m_finger
lib/lbdb/m_getent
lib/lbdb/m_gnomecard
lib/lbdb/m_inmail
lib/lbdb/m_muttalias
lib/lbdb/m_palm
lib/lbdb/m_passwd
lib/lbdb/m_pine
lib/lbdb/m_wanderlust
lib/lbdb/m_yppasswd
lib/lbdb/munge
lib/lbdb/munge-keeporder
lib/lbdb/palm_lsaddr
@bin lib/lbdb/qpto8bit
lib/lbdb/tac
@man man/man1/lbdb-fetchaddr.1
@man man/man1/lbdb_dotlock.1
@man man/man1/lbdbq.1
@man man/man1/nodelist2lbdb.1
share/examples/lbdb/
share/examples/lbdb/lbdb.rc
@sample ${SYSCONFDIR}/lbdb.rc