Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2019 04:37:25 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492968 - in head/security: krb5-115 krb5-115/files krb5-116 krb5-116/files krb5-117 krb5-117/files krb5-devel krb5-devel/files
Message-ID:  <201902150437.x1F4bP4q039802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Feb 15 04:37:25 2019
New Revision: 492968
URL: https://svnweb.freebsd.org/changeset/ports/492968

Log:
  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.

Added:
  head/security/krb5-115/files/kdc.in   (contents, props changed)
  head/security/krb5-116/files/kdc.in   (contents, props changed)
  head/security/krb5-117/files/kdc.in   (contents, props changed)
  head/security/krb5-devel/files/kdc.in   (contents, props changed)
Modified:
  head/security/krb5-115/Makefile
  head/security/krb5-115/pkg-plist
  head/security/krb5-116/Makefile
  head/security/krb5-116/pkg-plist
  head/security/krb5-117/Makefile
  head/security/krb5-117/pkg-plist
  head/security/krb5-devel/Makefile
  head/security/krb5-devel/pkg-plist

Modified: head/security/krb5-115/Makefile
==============================================================================
--- head/security/krb5-115/Makefile	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-115/Makefile	Fri Feb 15 04:37:25 2019	(r492968)
@@ -3,6 +3,7 @@
 
 PORTNAME=		krb5
 PORTVERSION=		1.15.5
+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)
@@ -109,6 +110,8 @@ PDF_DOC_DIR=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc
 
 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`

Added: head/security/krb5-115/files/kdc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/krb5-115/files/kdc.in	Fri Feb 15 04:37:25 2019	(r492968)
@@ -0,0 +1,5 @@
+#!/bin/sh -
+# $FreeBSD$
+
+set -- $(echo "$*" | sed 's/--detach//')
+exec %%PREFIX%%/sbin/krb5kdc "$@"

Modified: head/security/krb5-115/pkg-plist
==============================================================================
--- head/security/krb5-115/pkg-plist	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-115/pkg-plist	Fri Feb 15 04:37:25 2019	(r492968)
@@ -149,6 +149,7 @@ sbin/gss-server
 sbin/kadmin.local
 sbin/kadmind
 %%LDAP%%sbin/kdb5_ldap_util
+sbin/kdc
 sbin/kdb5_util
 sbin/kprop
 sbin/kpropd

Modified: head/security/krb5-116/Makefile
==============================================================================
--- head/security/krb5-116/Makefile	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-116/Makefile	Fri Feb 15 04:37:25 2019	(r492968)
@@ -3,6 +3,7 @@
 
 PORTNAME=		krb5
 PORTVERSION=		1.16.3
+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)
@@ -106,6 +107,8 @@ PDF_DOC_DIR=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc
 
 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`

Added: head/security/krb5-116/files/kdc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/krb5-116/files/kdc.in	Fri Feb 15 04:37:25 2019	(r492968)
@@ -0,0 +1,5 @@
+#!/bin/sh -
+# $FreeBSD$
+
+set -- $(echo "$*" | sed 's/--detach//')
+exec %%PREFIX%%/sbin/krb5kdc "$@"

Modified: head/security/krb5-116/pkg-plist
==============================================================================
--- head/security/krb5-116/pkg-plist	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-116/pkg-plist	Fri Feb 15 04:37:25 2019	(r492968)
@@ -153,6 +153,7 @@ sbin/gss-server
 sbin/kadmin.local
 sbin/kadmind
 %%LDAP%%sbin/kdb5_ldap_util
+sbin/kdc
 sbin/kdb5_util
 sbin/kprop
 sbin/kpropd

Modified: head/security/krb5-117/Makefile
==============================================================================
--- head/security/krb5-117/Makefile	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-117/Makefile	Fri Feb 15 04:37:25 2019	(r492968)
@@ -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
 
 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`

Added: head/security/krb5-117/files/kdc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/krb5-117/files/kdc.in	Fri Feb 15 04:37:25 2019	(r492968)
@@ -0,0 +1,5 @@
+#!/bin/sh -
+# $FreeBSD$
+
+set -- $(echo "$*" | sed 's/--detach//')
+exec %%PREFIX%%/sbin/krb5kdc "$@"

Modified: head/security/krb5-117/pkg-plist
==============================================================================
--- head/security/krb5-117/pkg-plist	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-117/pkg-plist	Fri Feb 15 04:37:25 2019	(r492968)
@@ -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

Modified: head/security/krb5-devel/Makefile
==============================================================================
--- head/security/krb5-devel/Makefile	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-devel/Makefile	Fri Feb 15 04:37:25 2019	(r492968)
@@ -3,6 +3,7 @@
 
 PORTNAME=		krb5
 PORTVERSION=		1.18.${MIT_COMMIT_DATE}
+PORTREVISION=		1
 CATEGORIES=		security
 .if !defined(MASTERDIR)
 PKGNAMESUFFIX=		-devel
@@ -107,6 +108,8 @@ CONFIGURE_ARGS+=	--program-transform-name="${PROGRAM_T
 post-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/krb5
 	${ECHO_CMD} @dir share/doc/krb5 >> ${TMPPLIST}
+	@${SED} "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/kdc.in > ${STAGEDIR}${PREFIX}/sbin/kdc; \
+	${CHMOD} +x ${STAGEDIR}${PREFIX}/sbin/kdc
 
 post-install-LDAP-on:
 	${MKDIR} ${STAGEDIR}${DATADIR}

Added: head/security/krb5-devel/files/kdc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/krb5-devel/files/kdc.in	Fri Feb 15 04:37:25 2019	(r492968)
@@ -0,0 +1,5 @@
+#!/bin/sh -
+# $FreeBSD$
+
+set -- $(echo "$*" | sed 's/--detach//')
+exec %%PREFIX%%/sbin/krb5kdc "$@"

Modified: head/security/krb5-devel/pkg-plist
==============================================================================
--- head/security/krb5-devel/pkg-plist	Fri Feb 15 03:09:33 2019	(r492967)
+++ head/security/krb5-devel/pkg-plist	Fri Feb 15 04:37:25 2019	(r492968)
@@ -154,6 +154,7 @@ sbin/gss-server
 sbin/kadmin.local
 sbin/kadmind
 %%LDAP%%sbin/kdb5_ldap_util
+sbin/kdc
 sbin/kdb5_util
 sbin/kprop
 sbin/kpropd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902150437.x1F4bP4q039802>