summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-10-25 10:39:21 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-10-25 10:39:21 +0300
commit0fe6ca7eb154cf3127dc563f7041cc517bee417e (patch)
treec803ff83f8ccfb41fc49a4e24b46e4252d907c3d /sys-cluster
parentdev-libs/libffi-compat: amd64 stable wrt bug #698458 (diff)
downloadgentoo-0fe6ca7eb154cf3127dc563f7041cc517bee417e.tar.gz
gentoo-0fe6ca7eb154cf3127dc563f7041cc517bee417e.tar.bz2
gentoo-0fe6ca7eb154cf3127dc563f7041cc517bee417e.zip
sys-cluster/slurm: fix systemd units earlier
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/slurm/slurm-19.05.3.2.ebuild7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys-cluster/slurm/slurm-19.05.3.2.ebuild b/sys-cluster/slurm/slurm-19.05.3.2.ebuild
index 9487d67f72c9..4c9d3cbf4ae4 100644
--- a/sys-cluster/slurm/slurm-19.05.3.2.ebuild
+++ b/sys-cluster/slurm/slurm-19.05.3.2.ebuild
@@ -101,6 +101,7 @@ src_prepare() {
sed \
-e 's:sysconfig/.*:conf.d/slurm:g' \
-e 's:var/run/:run/slurm/:g' \
+ -e '/^EnvironmentFile=.*/d' \
-i "${S}/etc"/*.service.in \
|| die "Can't sed systemd services for sysconfig or var/run/"
@@ -211,12 +212,6 @@ src_install() {
# install systemd files
systemd_newtmpfilesd "${FILESDIR}/slurm.tmpfiles" slurm.conf
systemd_dounit etc/slurmd.service etc/slurmctld.service etc/slurmdbd.service
-
- cd "${D}"/lib/systemd/system || die
-
- for file in slurm*; do
- sed -i -e '/^EnvironmentFile=.*/d' ${file} || die
- done
}
pkg_preinst() {