app-misc/screen: [QA] call tmpfiles_process in pkg_postinst

This is needed to actually apply the tmpfiles configuration
we've installed in the ebuild. See tmpfiles.eclass documentation.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-07-31 00:29:48 +01:00
parent ea743d2d95
commit d1e4dc10d9
2 changed files with 4 additions and 26 deletions
+2 -13
View File
@@ -143,18 +143,7 @@ pkg_postinst() {
elog "applications. Please check /etc/screenrc for information on these changes."
fi
# Add /tmp/screen in case it doesn't exist yet. This should solve
# problems like bug #508634 where tmpfiles.d isn't in effect.
local rundir="${EROOT}/tmp/${PN}"
if [[ ! -d ${rundir} ]] ; then
if use multiuser || use prefix ; then
tmpfiles_group="root"
else
tmpfiles_group="utmp"
fi
mkdir -m 0775 "${rundir}"
chgrp ${tmpfiles_group} "${rundir}"
fi
tmpfiles_process screen.conf
ewarn "This revision changes the screen socket location to ${rundir}"
ewarn "This revision changes the screen socket location to ${EROOT}/tmp/${PN}"
}
+2 -13
View File
@@ -145,18 +145,7 @@ pkg_postinst() {
elog "applications. Please check /etc/screenrc for information on these changes."
fi
# Add /tmp/screen in case it doesn't exist yet. This should solve
# problems like bug #508634 where tmpfiles.d isn't in effect.
local rundir="${EROOT}/tmp/${PN}"
if [[ ! -d ${rundir} ]] ; then
if use multiuser || use prefix ; then
tmpfiles_group="root"
else
tmpfiles_group="utmp"
fi
mkdir -m 0775 "${rundir}"
chgrp ${tmpfiles_group} "${rundir}"
fi
tmpfiles_process screen.conf
ewarn "This revision changes the screen socket location to ${rundir}"
ewarn "This revision changes the screen socket location to ${EROOT}/tmp/${PN}"
}