aboutsummaryrefslogtreecommitdiff
path: root/mail/lbdb
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-12-26 12:28:01 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-12-26 12:28:01 +0000
commit928c8a709b11da3a36d9b1848b67485bf8d27753 (patch)
tree4c9f4ffe79e7a5cb2eba1d9c49755fe3dd64d5c7 /mail/lbdb
parent2412ec9b5a07c33abfa180211ca1b77f4ed10d84 (diff)
downloadports-928c8a709b11da3a36d9b1848b67485bf8d27753.tar.gz
ports-928c8a709b11da3a36d9b1848b67485bf8d27753.zip
Fix handling of the GETENT plist substitution, add one for ypcat.
GETENT is not a port option, WITH_GETENT is defined if /usr/bin/getent is present on the system, and the handling was broken in r319851 ("Convert to new options framework"). While here, add a check for /usr/bin/ypcat since it is not present when world is built with WITHOUT_NIS. MFH: 2016Q4
Notes
Notes: svn path=/head/; revision=429501
Diffstat (limited to 'mail/lbdb')
-rw-r--r--mail/lbdb/Makefile22
-rw-r--r--mail/lbdb/pkg-plist2
2 files changed, 13 insertions, 11 deletions
diff --git a/mail/lbdb/Makefile b/mail/lbdb/Makefile
index c174beb863d9..6a6a4f16e271 100644
--- a/mail/lbdb/Makefile
+++ b/mail/lbdb/Makefile
@@ -3,7 +3,7 @@
PORTNAME= lbdb
PORTVERSION= 0.39
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://www.spinnaker.de/debian/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -25,12 +25,20 @@ CONFIGURE_ARGS= --enable-lbdb-dotlock \
MAKE_ARGS= install_prefix=${STAGEDIR}
USES= gmake perl5
-.include <bsd.port.options.mk>
-
.if exists (/usr/bin/getent)
-WITH_GETENT= yes
+PLIST_SUB+= GETENT=""
+.else
+PLIST_SUB+= GETENT="@comment "
+.endif
+
+.if exists (/usr/bin/ypcat)
+PLIST_SUB+= YPCAT=""
+.else
+PLIST_SUB+= YPCAT="@comment "
.endif
+.include <bsd.port.options.mk>
+
.if ${PORT_OPTIONS:MGPG}
BUILD_DEPENDS+= gpg:security/gnupg
RUN_DEPENDS+= gpg:security/gnupg
@@ -55,12 +63,6 @@ PLIST_SUB+= EVOLUTION=""
PLIST_SUB+= EVOLUTION="@comment "
.endif
-.if ${PORT_OPTIONS:MGETENT}
-PLIST_SUB+= GETENT=""
-.else
-PLIST_SUB+= GETENT="@comment "
-.endif
-
.if ${PORT_OPTIONS:MLDAP}
RUN_DEPENDS+= p5-perl-ldap>=0:net/p5-perl-ldap
.endif
diff --git a/mail/lbdb/pkg-plist b/mail/lbdb/pkg-plist
index b8f9457129be..3272747e28f4 100644
--- a/mail/lbdb/pkg-plist
+++ b/mail/lbdb/pkg-plist
@@ -23,7 +23,7 @@ libexec/lbdb/m_palm
libexec/lbdb/m_passwd
libexec/lbdb/m_pine
libexec/lbdb/m_wanderlust
-libexec/lbdb/m_yppasswd
+%%YPCAT%%libexec/lbdb/m_yppasswd
libexec/lbdb/munge
libexec/lbdb/munge-keeporder
libexec/lbdb/mutt_ldap_query