Skip to content

Commit

Permalink
security/krb5*: Flavorize with default and ldap flavors
Browse files Browse the repository at this point in the history
This provides a binary package to users who require MIT KRB5 with LDAP
support. This patch does not change the current, now default, package
name.

PR:		277015
  • Loading branch information
cschuber committed Feb 13, 2024
1 parent 0707093 commit 9926898
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
11 changes: 10 additions & 1 deletion security/krb5-119/Makefile
Expand Up @@ -4,8 +4,11 @@ PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
.if !defined(MASTERDIR)
PKGNAMESUFFIX= -119
PKGNAME_X= -${FLAVOR:S/default//}-119
.else
PKGNAME_X= -${FLAVOR:S/default//}
.endif
PKGNAMESUFFIX= ${PKGNAME_X:S/--/-/:C/-$//}

DEPRECATED= Desupported by MIT following 1.21
EXPIRATION_DATE= 2024-06-06
Expand Down Expand Up @@ -44,6 +47,8 @@ CPE_VENDOR= mit
CPE_VERSION= 5-${PORTVERSION}
CPE_PRODUCT= kerberos

FLAVORS= default ldap

OPTIONS_DEFINE= EXAMPLES NLS KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP LMDB
OPTIONS_DEFAULT= KRB5_PDF KRB5_HTML READLINE
OPTIONS_RADIO= CMD_LINE_EDITING
Expand All @@ -69,6 +74,10 @@ LIBEDIT_CONFIGURE_WITH= libedit
LIBEDIT_BASE_CONFIGURE_WITH= libedit
LIBEDIT_BASE_DESC= Use libedit in FreeBSD base

.if ${FLAVOR:U} == ldap
OPTIONS_DEFAULT+= LDAP LMDB
.endif

.if defined(KRB5_HOME)
PREFIX= ${KRB5_HOME}
.endif
Expand Down
11 changes: 10 additions & 1 deletion security/krb5-120/Makefile
Expand Up @@ -4,8 +4,11 @@ PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
.if !defined(MASTERDIR)
PKGNAMESUFFIX= -120
PKGNAME_X= -${FLAVOR:S/default//}-120
.else
PKGNAME_X= -${FLAVOR:S/default//}
.endif
PKGNAMESUFFIX= ${PKGNAME_X:S/--/-/:C/-$//}

PATCH_SITES= http://web.mit.edu/kerberos/advisories/
PATCH_DIST_STRIP= -p2
Expand Down Expand Up @@ -37,6 +40,8 @@ CPE_VENDOR= mit
CPE_VERSION= 5-${PORTVERSION}
CPE_PRODUCT= kerberos

FLAVORS= default ldap

OPTIONS_DEFINE= EXAMPLES NLS KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP LMDB
OPTIONS_DEFAULT= KRB5_PDF KRB5_HTML READLINE
OPTIONS_RADIO= CMD_LINE_EDITING
Expand All @@ -62,6 +67,10 @@ LIBEDIT_CONFIGURE_WITH= libedit
LIBEDIT_BASE_CONFIGURE_WITH= libedit
LIBEDIT_BASE_DESC= Use libedit in FreeBSD base

.if ${FLAVOR:U} == ldap
OPTIONS_DEFAULT+= LDAP LMDB
.endif

.if defined(KRB5_HOME)
PREFIX= ${KRB5_HOME}
.endif
Expand Down
11 changes: 10 additions & 1 deletion security/krb5-121/Makefile
Expand Up @@ -4,8 +4,11 @@ PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
.if !defined(MASTERDIR)
PKGNAMESUFFIX= -121
PKGNAME_X= -${FLAVOR:S/default//}-121
.else
PKGNAME_X= -${FLAVOR:S/default//}
.endif
PKGNAMESUFFIX= ${PKGNAME_X:S/--/-/:C/-$//}

PATCH_SITES= http://web.mit.edu/kerberos/advisories/
PATCH_DIST_STRIP= -p2
Expand Down Expand Up @@ -37,6 +40,8 @@ CPE_VENDOR= mit
CPE_VERSION= 5-${PORTVERSION}
CPE_PRODUCT= kerberos

FLAVORS= default ldap

OPTIONS_DEFINE= EXAMPLES NLS KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP LMDB
OPTIONS_DEFAULT= KRB5_PDF KRB5_HTML READLINE
OPTIONS_RADIO= CMD_LINE_EDITING
Expand All @@ -62,6 +67,10 @@ LIBEDIT_CONFIGURE_WITH= libedit
LIBEDIT_BASE_CONFIGURE_WITH= libedit
LIBEDIT_BASE_DESC= Use libedit in FreeBSD base

.if ${FLAVOR:U} == ldap
OPTIONS_DEFAULT+= LDAP LMDB
.endif

.if defined(KRB5_HOME)
PREFIX= ${KRB5_HOME}
.endif
Expand Down
8 changes: 7 additions & 1 deletion security/krb5-devel/Makefile
Expand Up @@ -2,7 +2,7 @@ PORTNAME= krb5
PORTVERSION= 1.22.${MIT_COMMIT_DATE}
CATEGORIES= security
.if !defined(MASTERDIR)
PKGNAMESUFFIX= -devel
PKGNAMESUFFIX= -${FLAVOR}-devel
.endif
HASH= f5ad07bd3
MIT_COMMIT_DATE= 2024.01.24
Expand Down Expand Up @@ -38,6 +38,8 @@ CPE_VENDOR= mit
CPE_VERSION= 5-${PORTVERSION}
CPE_PRODUCT= kerberos

FLAVORS= default ldap

OPTIONS_DEFINE= EXAMPLES NLS DNS_FOR_REALM LDAP LMDB
OPTIONS_DEFAULT= KRB5_PDF KRB5_HTML READLINE
OPTIONS_RADIO= CMD_LINE_EDITING
Expand All @@ -61,6 +63,10 @@ LIBEDIT_CONFIGURE_WITH= libedit
LIBEDIT_BASE_CONFIGURE_WITH= libedit
LIBEDIT_BASE_DESC= Use libedit in FreeBSD base

.if ${FLAVOR:U} == ldap
OPTIONS_DEFAULT+= LDAP LMDB
.endif

.if defined(KRB5_HOME)
PREFIX= ${KRB5_HOME}
.endif
Expand Down
2 changes: 2 additions & 0 deletions security/krb5/Makefile
Expand Up @@ -5,4 +5,6 @@ KRB5_VERSION?= 121

MASTERDIR= ${.CURDIR}/../krb5-${KRB5_VERSION}

FLAVORS= default ldap

.include "${MASTERDIR}/Makefile"

0 comments on commit 9926898

Please sign in to comment.