diff options
author | Cy Schubert <cy@FreeBSD.org> | 2019-02-15 04:37:25 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2019-02-15 04:37:25 +0000 |
commit | 2b1fd74587e210bf5e66537a6cd21a650b508c2a (patch) | |
tree | 9baee8fe6e8cbfa57bbb491afd3d6819c20eac80 /security/krb5-117 | |
parent | 5a9395f43f945db3c79dd52697952ef1d51b3e56 (diff) | |
download | ports-2b1fd74587e210bf5e66537a6cd21a650b508c2a.tar.gz ports-2b1fd74587e210bf5e66537a6cd21a650b508c2a.zip |
Provide a script from which to start krb5kdc through /etc/rc.d/kdc.
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.
Notes
Notes:
svn path=/head/; revision=492968
Diffstat (limited to 'security/krb5-117')
-rw-r--r-- | security/krb5-117/Makefile | 3 | ||||
-rw-r--r-- | security/krb5-117/files/kdc.in | 5 | ||||
-rw-r--r-- | security/krb5-117/pkg-plist | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/security/krb5-117/Makefile b/security/krb5-117/Makefile index 6cde3844060a..a6ddebc147af 100644 --- a/security/krb5-117/Makefile +++ b/security/krb5-117/Makefile @@ -3,6 +3,7 @@ PORTNAME= krb5 PORTVERSION= 1.17 +PORTREVISION= 1 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) @@ -110,6 +111,8 @@ PDF_DOC_DIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/pdf post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/krb5 + @${SED} "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/kdc.in > ${STAGEDIR}${PREFIX}/sbin/kdc; \ + ${CHMOD} +x ${STAGEDIR}${PREFIX}/sbin/kdc # html documentation .if ${PORT_OPTIONS:MKRB5_PDF} pdf_files=`${FIND} ${PDF_DOC_DIR} ! -type d` diff --git a/security/krb5-117/files/kdc.in b/security/krb5-117/files/kdc.in new file mode 100644 index 000000000000..29543c336b5b --- /dev/null +++ b/security/krb5-117/files/kdc.in @@ -0,0 +1,5 @@ +#!/bin/sh - +# $FreeBSD$ + +set -- $(echo "$*" | sed 's/--detach//') +exec %%PREFIX%%/sbin/krb5kdc "$@" diff --git a/security/krb5-117/pkg-plist b/security/krb5-117/pkg-plist index 326337e7f1d3..d843368c2cde 100644 --- a/security/krb5-117/pkg-plist +++ b/security/krb5-117/pkg-plist @@ -155,6 +155,7 @@ sbin/gss-server sbin/kadmin.local sbin/kadmind %%LDAP%%sbin/kdb5_ldap_util +sbin/kdc sbin/kdb5_util sbin/kprop sbin/kpropd |