sys-cluster/slurm: Add slashes
authorMikle Kolyada <zlogene@gentoo.org>
Sun, 20 Oct 2019 20:26:04 +0000 (23:26 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Sun, 20 Oct 2019 20:27:09 +0000 (23:27 +0300)
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
sys-cluster/slurm/slurm-19.05.3.2.ebuild

index 58a1775accb1330559907f961c0374830599ec8a..9487d67f72c900dacbd4f3fdabfd60fcb2ed26a8 100644 (file)
@@ -177,7 +177,7 @@ src_install() {
        fi
        if use torque; then
                emake DESTDIR="${D}" -C contribs/torque
-               rm -f "${ED}/usr/bin/mpiexec" || die
+               rm -f "${D}"/usr/bin/mpiexec || die
        fi
        use static-libs || find "${ED}" -name '*.la' -exec rm {} +
        # install sample configs
@@ -221,7 +221,7 @@ src_install() {
 
 pkg_preinst() {
        if use munge; then
-               sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${ED}"etc/conf.d/slurm || die
+               sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${D}"/etc/conf.d/slurm || die
        fi
 }
 
@@ -233,11 +233,11 @@ create_folders_and_fix_permissions() {
 
 pkg_postinst() {
        paths=(
-               "${EROOT}"var/${PN}/checkpoint
-               "${EROOT}"var/${PN}
-               "${EROOT}"var/spool/${PN}/slurmd
-               "${EROOT}"var/spool/${PN}
-               "${EROOT}"var/log/${PN}
+               "${EROOT}"/var/${PN}/checkpoint
+               "${EROOT}"/var/${PN}
+               "${EROOT}"/var/spool/${PN}/slurmd
+               "${EROOT}"/var/spool/${PN}
+               "${EROOT}"/var/log/${PN}
                /var/tmp/${PN}/${PN}d
                /var/tmp/${PN}
                /run/${PN}