mirror of
https://git.freebsd.org/ports.git
synced 2025-05-19 10:33:12 -04:00
Simply add kdc_enable="YES" and kdc_program="/usr/local/sbin/kdc" to /etc/rc.d. The script removes the Heimdal kdc --detach argument prior to invoking krb5kdc. The other approach that was considered was to replace getopt() in kdc/main.c with getopt_long() however this approach was considered too intrusive.
5 lines
100 B
Bash
5 lines
100 B
Bash
#!/bin/sh -
|
|
# $FreeBSD$
|
|
|
|
set -- $(echo "$*" | sed 's/--detach//')
|
|
exec %%PREFIX%%/sbin/krb5kdc "$@"
|