--- trunk/include/systemd.sminc 2018/08/03 08:16:23 31492 +++ trunk/include/systemd.sminc 2018/08/08 13:38:20 31493 @@ -5,7 +5,7 @@ INHERITS+=" systemd" DEPEND="${DEPEND} - >= sys-apps/systemd-208" + >= sys-apps/systemd-230" SDEPEND="${SDEPEND} >= dev-util/pkgconfig-0.27" @@ -37,6 +37,21 @@ pkg-config systemd --variable=systemdsystempresetdir } +mget-systemd-tmpfilesdir() +{ + pkg-config systemd --variable=tmpfilesdir +} + +mget-systemd-sysusersdir() +{ + pkg-config systemd --variable=sysusersdir +} + +mget-systemd-sysctldir() +{ + pkg-config systemd --variable=sysctldir +} + # installs systemd units # minstallunit /path/to/unit-file {destfilename} minstallunit() @@ -75,6 +90,7 @@ { local tmpdfile local file + local tmpfilesdir="$(mget-systemd-tmpfilesdir)" [[ -z "$1" ]] && die "No tmpd file given" @@ -94,8 +110,8 @@ fi # needed directory - minstalldir /etc/tmpfiles.d || die + minstalldir ${tmpfilesdir} || die # install our tmpdfile - minstallfile ${file} /etc/tmpfiles.d/${tmpdfile} || die + minstallfile ${file} ${tmpfilesdir}/${tmpdfile} || die }