rc.d: Fix Kerberos rc scripts

Split the Kerberos rc scripts into two sections, one for MIT Kerberos
and one for Heimdal.  Don't install Heimdal-specific rc scripts (e.g.,
kfd) for the MIT case.

This does not include an OptionalObsoleteFiles change (even though one
is needed) because that will be fixed later in a different way.

Reviewed by:		des (previous version)
Differential Revision:	https://reviews.freebsd.org/D51830
This commit is contained in:
Lexi Winter
2025-08-10 13:26:44 +01:00
parent 10eecc467f
commit 992d2f9284
+23 -12
View File
@@ -29,12 +29,8 @@ CONFS= DAEMON \
iovctl \
ip6addrctl \
ipsec \
${_kadmind} \
${_kdc} \
${_kfd} \
kld \
kldxref \
${_kpasswdd} \
ldconfig \
linux \
local \
@@ -288,17 +284,32 @@ LPPACKAGE= lp
.endif
.if ${MK_KERBEROS} != "no"
CONFS+= ipropd_master
CONFS+= ipropd_slave
_kadmind= kadmind
_kdc= kdc
_kfd= kfd
_kpasswdd= kpasswdd
.if ${MK_MITKRB5} == "no"
DIRS+= VAR_HEMIDAL
# Heimdal rc scripts
CONFGROUPS+= HEIMDAL
HEIMDAL= ipropd_master \
ipropd_slave \
kadmind \
kdc \
kfd \
kpasswdd
HEIMDALPACKAGE= kerberos
DIRS+= VAR_HEMIDAL
VAR_HEMIDAL= /var/heimdal
VAR_HEMIDAL_MODE= 700
.endif
.else # ${MK_MITKRB5} != "no"
# MIT KRB5 rc scripts
CONFGROUPS+= KRB5
KRB5= kadmind \
kdc
KRB5PACKAGE= kerberos-kdc
.endif # ${MK_MITKRB5}
.endif # ${MK_KERBEROS}
.if ${MK_NIS} != "no"
CONFGROUPS+= YP