aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-08-08 01:43:35 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-08-08 01:43:35 +0800
commit1a327b4334d29feb08a57fc243ef07fa9e6fad80 (patch)
tree27b70fe9c89a3f17de8fbd9c27dda0d8d8ecfe55 /mail
parentd2a61a22233826dd69f790ec59a2aff2e28df982 (diff)
downloadfreebsd-ports-gnome-1a327b4334d29feb08a57fc243ef07fa9e6fad80.tar.gz
freebsd-ports-gnome-1a327b4334d29feb08a57fc243ef07fa9e6fad80.tar.zst
freebsd-ports-gnome-1a327b4334d29feb08a57fc243ef07fa9e6fad80.zip
- Add OPTIONS
- Port cleanups and fixes - Pass maintainership to submitter PR: 137485 Submitted by: Alexey V.Degtyarev <alexey@renatasystems.org>
Diffstat (limited to 'mail')
-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';