Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2014 19:31:26 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371074 - head/security/krb5-appl
Message-ID:  <201410171931.s9HJVQ5F029450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Oct 17 19:31:25 2014
New Revision: 371074
URL: https://svnweb.freebsd.org/changeset/ports/371074
QAT: https://qat.redports.org/buildarchive/r371074/

Log:
  Add dependency option, defaulting to security/krb5.

Modified:
  head/security/krb5-appl/Makefile

Modified: head/security/krb5-appl/Makefile
==============================================================================
--- head/security/krb5-appl/Makefile	Fri Oct 17 19:29:35 2014	(r371073)
+++ head/security/krb5-appl/Makefile	Fri Oct 17 19:31:25 2014	(r371074)
@@ -14,8 +14,6 @@ COMMENT=		Authentication system develope
 
 BUILD_DEPENDS=		gm4:${PORTSDIR}/devel/m4 \
 			krb5-config:${PORTSDIR}/security/krb5
-LIB_DEPENDS=		libkrb5support.so:${PORTSDIR}/security/krb5
-RUN_DEPENDS=		kinit:${PORTSDIR}/security/krb5
 
 CONFLICTS=		krb4-[0-9]* krb5-1.[0-7].* heimdal-[0-9]* srp-[0-9]*
 
@@ -33,14 +31,33 @@ MAKE_ARGS=		INSTALL="${INSTALL}"
 PATCH_DIST_STRIP=	-p1
 
 OPTIONS_DEFINE=	KRB5_RENAME_FTP KRB5_RENAME_TELNET KRB5_RENAME_RLOGIN KRB5_RENAME_RSH KRB5_RENAME_RCP
+OPTIONS_DEFAULT=	KRB5_PORT
+OPTIONS_SINGLE=		KRB5_VERSION
+OPTIONS_SINGLE_KRB5_VERSION=	KRB5_PORT KRB5_111_PORT KRB5_112_PORT
 KRB5_RENAME_FTP_DESC=		Rename ftp to kftp
 KRB5_RENAME_TELNET_DESC=	Rename telnet to ktelnet
 KRB5_RENAME_RLOGIN_DESC=	Rename rlogin to krlogin
 KRB5_RENAME_RSH_DESC=		Rename rsh to krsh
 KRB5_RENAME_RCP_DESC=		Rename rcp to krcp
+KRB5_PORT_DESC=			Depend on security/krb5
+KRB5_111_PORT_DESC=		Depend on security/krb5-111
+KRB5_112_PORT_DESC=		Depend on security/krb5-112
 
 .include <bsd.port.pre.mk>
 
+.if ${PORT_OPTIONS:MKRB5_PORT}
+LIB_DEPENDS=		libkrb5support.so:${PORTSDIR}/security/krb5
+RUN_DEPENDS=		kinit:${PORTSDIR}/security/krb5
+.elif ${PORT_OPTIONS:MKRB5_111_PORT}
+LIB_DEPENDS=		libkrb5support.so:${PORTSDIR}/security/krb5-111
+RUN_DEPENDS=		kinit:${PORTSDIR}/security/krb5-111
+.elif ${PORT_OPTIONS:MKRB5_112_PORT}
+LIB_DEPENDS=		libkrb5support.so:${PORTSDIR}/security/krb5-112
+RUN_DEPENDS=		kinit:${PORTSDIR}/security/krb5-112
+.else
+BROKEN=			krb5 dependency not selected
+.endif
+
 .if ${PORT_OPTIONS:MKRB5_DOC}
 BUILD_DEPENDS+=		texi2dvi:${PORTSDIR}/print/texinfo \
 			dvips:${PORTSDIR}/print/dvipsk-tetex



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410171931.s9HJVQ5F029450>