aboutsummaryrefslogtreecommitdiffstats
path: root/net/openldap22-server
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-02 07:56:17 +0800
committereik <eik@FreeBSD.org>2004-05-02 07:56:17 +0800
commit0efb0f4925217cf0af64a494db98046717f6bfc4 (patch)
tree505484574bcd0717d6e363b18ea52469c7f49dfd /net/openldap22-server
parentd1a252e586143a370784778a8b5c433dfdfe49bc (diff)
downloadfreebsd-ports-gnome-0efb0f4925217cf0af64a494db98046717f6bfc4.tar.gz
freebsd-ports-gnome-0efb0f4925217cf0af64a494db98046717f6bfc4.tar.zst
freebsd-ports-gnome-0efb0f4925217cf0af64a494db98046717f6bfc4.zip
Fix upgrading via portupgrade, reported by Chuck Swiger <cswiger@mac.com>
Prepare for slave ports with SASL support
Diffstat (limited to 'net/openldap22-server')
-rw-r--r--net/openldap22-server/Makefile22
-rw-r--r--net/openldap22-server/pkg-install2
2 files changed, 18 insertions, 6 deletions
diff --git a/net/openldap22-server/Makefile b/net/openldap22-server/Makefile
index 29fc20f58db3..f8e91678d872 100644
--- a/net/openldap22-server/Makefile
+++ b/net/openldap22-server/Makefile
@@ -50,8 +50,13 @@ OPENLDAP_PORTREVISION= ${PORTREVISION_CLIENT}
OPENLDAP_PKGNAMESUFFIX= ${PKGNAMESUFFIX_CLIENT}
OPENLDAP_PKGFILESUFX= .client
-CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[013-9].* \
- ${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.[013-9].*
+.if defined(WITH_SASL)
+CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.* \
+ ${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.[!2].*
+.else
+CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[!2].* \
+ ${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.*
+.endif
.if !defined(NOPORTDOCS)
PORTDOCS= drafts rfc
@@ -65,10 +70,17 @@ OPENLDAP_PORTREVISION= ${PORTREVISION_SERVER}
OPENLDAP_PKGNAMESUFFIX= ${PKGNAMESUFFIX_SERVER}
OPENLDAP_PKGFILESUFX=
+.if defined(WITH_SASL)
+RUN_DEPENDS= ${LOCALBASE}/lib/libldap.so.202:${PORTSDIR}/net/openldap22-sasl-client
+#RUN_DEPENDS= ${LOCALBASE}/lib/libldap-2.2.so.7:${PORTSDIR}/net/openldap22-sasl-client
+CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-server-2.* \
+ ${PKGNAMEPREFIX}${PORTNAME}-sasl-server-2.[!2].*
+.else
RUN_DEPENDS= ${LOCALBASE}/lib/libldap.so.202:${PORTSDIR}/net/openldap22-client
#RUN_DEPENDS= ${LOCALBASE}/lib/libldap-2.2.so.7:${PORTSDIR}/net/openldap22-client
-CONFLICTS+= ${PKGNAMEPREFIX}${PORTNAME}-server-2.[013-9].* \
- ${PKGNAMEPREFIX}${PORTNAME}-sasl-server-2.[013-9].*
+CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-server-2.[!2].* \
+ ${PKGNAMEPREFIX}${PORTNAME}-sasl-server-2.*
+.endif
.if ${PORTREVISION_CLIENT} != 0
SUF1_CLIENT= _${PORTREVISION_CLIENT}
@@ -131,7 +143,7 @@ INSTALLS_SHLIB= yes
USE_RC_SUBR= yes
-SED_SCRIPT+= -e 's,%%PKGNAME_CLIENT%%,${PKGNAME_CLIENT},g' \
+SED_SCRIPT+= -e 's,%%PKGNAME_CLIENT%%,${PKGNAME_CLIENT:R}.*,g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
-e 's,%%RC_DIR%%,${RC_DIR},g' \
-e 's,%%RC_SUFX%%,${RC_SUFX},g'
diff --git a/net/openldap22-server/pkg-install b/net/openldap22-server/pkg-install
index 593e92c14a5e..34ee897a1996 100644
--- a/net/openldap22-server/pkg-install
+++ b/net/openldap22-server/pkg-install
@@ -13,7 +13,7 @@ FTPUSERS=/etc/ftpusers
case $2 in
PRE-INSTALL)
- if ! ${PKG_INFO} -e '%%PKGNAME_CLIENT%%'; then
+ if [ -z "`${PKG_INFO} -I '%%PKGNAME_CLIENT%%' 2> /dev/null`" ]; then
${ECHO_CMD} "===> %%PKGNAME%% requires %%PKGNAME_CLIENT%%."
${ECHO_CMD}
${ECHO_CMD} " Please install %%PKGNAME_CLIENT%% manually."