[Lunar-commits] <moonbase-other> heimdal: Added systemd files
Stefan Wold
ratler at lunar-linux.org
Wed Aug 1 00:19:23 CEST 2012
commit 9bb6ec67bba4da1fdc38e17b02d89c9150b7b1e4
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 31 Jul 2012 15:19:23 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/9bb6ec67bba4da1fdc38e17b02d89c9150b7b1e4
heimdal: Added systemd files
- Created a patch that silently ignore errors from setgpid() or
kadmind will not start under systemd. The patch should probably
be smarter and only ignore EPERM, but that will have to be improved
later.
---
crypto/heimdal/BUILD +4/-3
crypto/heimdal/DETAILS +3/-0
crypto/heimdal/systemd.d/heimdal-kadmind.service +10/-0
crypto/heimdal/systemd.d/heimdal-kadmind.socket +10/-0
crypto/heimdal/systemd.d/heimdal-kadmind at .service +10/-0
crypto/heimdal/systemd.d/heimdal-kdc.service +10/-0
crypto/heimdal/systemd.d/heimdal-kpasswdd.service +10/-0
7 files changed, 57 insertions (+), 3 deletions (-)
--- a/crypto/heimdal/BUILD
+++ b/crypto/heimdal/BUILD
@@ -1,11 +1,11 @@
(
export CFLAGS="$CFLAGS -I/usr/include/et" &&
export CXXFLAGS="$CXXFLAGS -I/usr/include/et" &&
-
+
# When -O1 and --as-needed are set together for the linker you get both
-# -Wl,-O1,--as-needed and -Wl,--as-needed. The --as-needed causes heimdal
-# to fail linking. Instead of adding 2 bad_flags to we just need a , in front
+# -Wl,-O1,--as-needed and -Wl,--as-needed. The --as-needed causes heimdal
+# to fail linking. Instead of adding 2 bad_flags to we just need a , in front
# of --as-needed to fix it.
bad_flags ",--as-needed" &&
@@ -50,6 +50,7 @@
patch_it $SOURCE3 1 &&
patch_it $SOURCE4 1 &&
patch_it $SOURCE5 1 &&
+ patch_it $SOURCE6 1 &&
mkdir -p $SOURCE_DIRECTORY/__heimdest/ &&
--- a/crypto/heimdal/DETAILS
+++ b/crypto/heimdal/DETAILS
@@ -5,16 +5,19 @@
SOURCE3=$MODULE-1.3.1-k-prefixes.patch
SOURCE4=$MODULE-1.5.1-suid_fix.patch
SOURCE5=$MODULE-1.5.2-perl5.16-getopts-fix.patch
+ SOURCE6=$MODULE-1.5.2-ignore-setpgid-eperm.patch
SOURCE_URL=http://www.h5l.org/dist/src
SOURCE2_URL=$PATCH_URL
SOURCE3_URL=$PATCH_URL
SOURCE4_URL=$PATCH_URL
SOURCE5_URL=$PATCH_URL
+ SOURCE6_URL=$PATCH_URL
SOURCE_VFY=sha256:22603f282f31173533b939d289f3374258aa1ccccbe51ee088d7568d321279ec
SOURCE2_VFY=sha256:aaa5a7c3a3520ffa288f77d4e29b49a2c5600b6df15f9b825984d8fda04508be
SOURCE3_VFY=sha1:1a15fbee5de1027babcd151ce23fb5fbeea1c763
SOURCE4_VFY=sha256:71f697b2e2f7f20b0489e4636a835e72d779c2dc3046fdd4fe8925585248490c
SOURCE5_VFY=sha256:91b77b2d3277ae4a5da0b354ec96d97e942bd63d2fff42250baf445360ab440b
+ SOURCE6_VFY=sha256:a72b3b65ac6770c5ee3f833a6f5a695df463bcde396239816305df0aae84b109
WEB_SITE=http://www.h5l.org/
MAINTAINER=ratler at lunar-linux.org
ENTERED=20041026
--- /dev/null
+++ b/crypto/heimdal/systemd.d/heimdal-kadmind.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Heimdal Admin Server Daemon
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/sbin/kadmind
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/crypto/heimdal/systemd.d/heimdal-kadmind.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=Heimdal Admin Server - no daemon version
+Conflicts=heimdal-kadmind.servicew
+
+[Socket]
+ListenStream=749
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
--- /dev/null
+++ b/crypto/heimdal/systemd.d/heimdal-kadmind at .service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Heimdal Admin Server - no daemon version
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/kadmind
+StandardInput=socket
+
+[Install]
+WantedBy=network.target
--- /dev/null
+++ b/crypto/heimdal/systemd.d/heimdal-kdc.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Heimdal Kerberos 5 Server
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/sbin/kdc
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/crypto/heimdal/systemd.d/heimdal-kpasswdd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Heimdal kpasswd Daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/kpasswdd
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
More information about the Lunar-commits
mailing list