aboutsummaryrefslogtreecommitdiff
path: root/mail/lbdb
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-08-07 17:43:35 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-08-07 17:43:35 +0000
commit68acfff416c165a7213a2280f71fa69264e7f522 (patch)
treefec37b3a0f61de662d16427b155b2b147fa47524 /mail/lbdb
parent2de0fb7e3817f95c101f7c9c645cf1dd848f3d58 (diff)
downloadports-68acfff416c165a7213a2280f71fa69264e7f522.tar.gz
ports-68acfff416c165a7213a2280f71fa69264e7f522.zip
- Add OPTIONS
- Port cleanups and fixes - Pass maintainership to submitter PR: 137485 Submitted by: Alexey V.Degtyarev <alexey@renatasystems.org>
Notes
Notes: svn path=/head/; revision=239096
Diffstat (limited to 'mail/lbdb')
-rw-r--r--mail/lbdb/Makefile30
-rw-r--r--mail/lbdb/files/patch-mutt_ldap_query10
2 files changed, 22 insertions, 18 deletions
diff --git a/mail/lbdb/Makefile b/mail/lbdb/Makefile
index eebe4d1951a1..71912d3748a1 100644
--- a/mail/lbdb/Makefile
+++ b/mail/lbdb/Makefile
@@ -11,38 +11,29 @@ CATEGORIES= mail
MASTER_SITES= http://www.spinnaker.de/debian/
DISTNAME= ${PORTNAME}_${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= alexey@renatasystems.org
COMMENT= Set of tools for use with mutt's external mail address query feature
-RUN_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
+RUN_DEPENDS= gsed:${PORTSDIR}/textproc/gsed \
+ p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
+
+OPTIONS= ABOOK "Enable abook address book support" off \
+ EVOLUTION "Enable Ximan Evolution support" off \
+ GPG "Enable GNU Privacy Guard support" off
WRKSRC= ${WRKDIR}/lbdb-${PORTVERSION}
-GNU_CONFIGURE= YES
+GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc \
--libdir=${PREFIX}/libexec --enable-lbdb-dotlock
-USE_GMAKE= YES
+USE_GMAKE= yes
USE_PERL5= yes
.include <bsd.port.pre.mk>
-.if exists (${LOCALBASE}/bin/gpg)
-WITH_GPG= yes
-.endif
-.if exists (${LOCALBASE}/bin/abook)
-WITH_ABOOK= yes
-.endif
-.if exists (${LOCALBASE}/bin/evolution)
-WITH_EVOLUTION= yes
-.endif
.if exists (/usr/bin/getent)
WITH_GETENT= yes
.endif
-.if defined(PACKAGE_BUILDING)
-WITH_GPG= yes
-WITH_ABOOK= yes
-.endif
-
.if defined(WITH_GPG)
BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
@@ -50,6 +41,7 @@ PLIST_SUB+= GPG=""
.else
PLIST_SUB+= GPG="@comment "
.endif
+
.if defined(WITH_ABOOK)
BUILD_DEPENDS+= abook:${PORTSDIR}/mail/abook
RUN_DEPENDS+= abook:${PORTSDIR}/mail/abook
@@ -57,6 +49,7 @@ PLIST_SUB+= ABOOK=""
.else
PLIST_SUB+= ABOOK="@comment "
.endif
+
.if defined(WITH_EVOLUTION)
BUILD_DEPENDS+= evolution:${PORTSDIR}/mail/evolution
RUN_DEPENDS+= evolution:${PORTSDIR}/mail/evolution
@@ -64,6 +57,7 @@ PLIST_SUB+= EVOLUTION=""
.else
PLIST_SUB+= EVOLUTION="@comment "
.endif
+
.if defined(WITH_GETENT)
PLIST_SUB+= GETENT=""
.else
diff --git a/mail/lbdb/files/patch-mutt_ldap_query b/mail/lbdb/files/patch-mutt_ldap_query
new file mode 100644
index 000000000000..eff99d3497c3
--- /dev/null
+++ b/mail/lbdb/files/patch-mutt_ldap_query
@@ -0,0 +1,10 @@
+--- mutt_ldap_query.pl.in.orig 2008-06-14 14:24:46.000000000 +0400
++++ mutt_ldap_query.pl.in 2009-08-06 13:36:39.000000000 +0400
+@@ -33,6 +33,7 @@
+ my $version = 0;
+ my $ldap_server_nickname = '';
+ my $config_file = '';
++my $prefix = '@prefix@';
+
+ # hostname of your ldap server
+ our $ldap_server = 'ldap.four11.com';