summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server4
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service1
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service1
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5_1.16.bb5
4 files changed, 8 insertions, 3 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server b/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server
index 283592913..e097353c2 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server
+++ b/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server
@@ -1,6 +1,4 @@
1# Automatically generated. If you change anything in this file other than the 1# Automatically generated. If you change anything in this file other than the
2# values of RUN_KADMIND or DAEMON_ARGS, first run dpkg-reconfigure 2# values of DAEMON_ARGS, first run dpkg-reconfigure
3# krb5-admin-server and disable managing the kadmin configuration with 3# krb5-admin-server and disable managing the kadmin configuration with
4# debconf. Otherwise, changes will be overwritten. 4# debconf. Otherwise, changes will be overwritten.
5
6RUN_KADMIND=true
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service b/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service
index 1b4271643..21939a1f0 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service
+++ b/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service
@@ -7,6 +7,7 @@ ConditionPathExists=/etc/krb5.conf
7Type=forking 7Type=forking
8ExecStartPre=/bin/sh -c "test ! -f /var/log/kadmind.log || test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log/kadmind.log" 8ExecStartPre=/bin/sh -c "test ! -f /var/log/kadmind.log || test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log/kadmind.log"
9ExecStart=/usr/sbin/kadmind 9ExecStart=/usr/sbin/kadmind
10EnvironmentFile=-/etc/default/krb5-admin-server
10SuccessExitStatus=1 2 SIGKILL 11SuccessExitStatus=1 2 SIGKILL
11TimeoutStopSec=30 12TimeoutStopSec=30
12 13
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service b/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service
index d5e5a9579..bf37c45ba 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service
+++ b/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service
@@ -6,6 +6,7 @@ ConditionPathExists=/etc/krb5.conf
6[Service] 6[Service]
7Type=forking 7Type=forking
8ExecStart=/usr/sbin/krb5kdc 8ExecStart=/usr/sbin/krb5kdc
9EnvironmentFile=-/etc/default/krb5-kdc
9SuccessExitStatus=1 2 SIGKILL 10SuccessExitStatus=1 2 SIGKILL
10TimeoutStopSec=30 11TimeoutStopSec=30
11 12
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb
index ce2134513..f95240f54 100644
--- a/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb
+++ b/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb
@@ -78,12 +78,17 @@ do_install_append() {
78 mkdir -p ${D}/${sysconfdir}/default/volatiles 78 mkdir -p ${D}/${sysconfdir}/default/volatiles
79 echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \ 79 echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \
80 > ${D}${sysconfdir}/default/volatiles/87_krb5 80 > ${D}${sysconfdir}/default/volatiles/87_krb5
81
82 echo "RUN_KADMIND=true" >> ${D}/${sysconfdir}/default/krb5-admin-server
81 fi 83 fi
82 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 84 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
83 install -d ${D}${sysconfdir}/tmpfiles.d 85 install -d ${D}${sysconfdir}/tmpfiles.d
84 echo "d /run/krb5kdc - - - -" \ 86 echo "d /run/krb5kdc - - - -" \
85 > ${D}${sysconfdir}/tmpfiles.d/krb5.conf 87 > ${D}${sysconfdir}/tmpfiles.d/krb5.conf
86 88
89 mkdir -p ${D}/${sysconfdir}/default
90 install -m 0644 ${WORKDIR}/etc/default/* ${D}/${sysconfdir}/default
91
87 install -d ${D}${systemd_system_unitdir} 92 install -d ${D}${systemd_system_unitdir}
88 install -m 0644 ${WORKDIR}/krb5-admin-server.service ${D}${systemd_system_unitdir} 93 install -m 0644 ${WORKDIR}/krb5-admin-server.service ${D}${systemd_system_unitdir}
89 install -m 0644 ${WORKDIR}/krb5-kdc.service ${D}${systemd_system_unitdir} 94 install -m 0644 ${WORKDIR}/krb5-kdc.service ${D}${systemd_system_unitdir}