Add dependency option, defaulting to security/krb5.

This commit is contained in:
Cy Schubert 2014-10-17 19:31:25 +00:00
parent ce5c7f05ba
commit 3e268db6a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371074

View File

@ -14,8 +14,6 @@ COMMENT= Authentication system developed at MIT, successor to Kerberos IV
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