diff options
author | Sam James <sam@gentoo.org> | 2021-07-30 23:54:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-31 00:29:48 +0100 |
commit | d1e4dc10d99e8adcd96464129f3393d3518d4e33 (patch) | |
tree | 6351c04097d8a530e696193308f77fadb8851faa /app-misc/screen | |
parent | app-misc/fhem: [QA] call tmpfiles_process in pkg_postinst (diff) | |
download | gentoo-d1e4dc10d99e8adcd96464129f3393d3518d4e33.tar.gz gentoo-d1e4dc10d99e8adcd96464129f3393d3518d4e33.tar.bz2 gentoo-d1e4dc10d99e8adcd96464129f3393d3518d4e33.zip |
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>
Diffstat (limited to 'app-misc/screen')
-rw-r--r-- | app-misc/screen/screen-4.8.0-r3.ebuild | 15 | ||||
-rw-r--r-- | app-misc/screen/screen-9999.ebuild | 15 |
2 files changed, 4 insertions, 26 deletions
diff --git a/app-misc/screen/screen-4.8.0-r3.ebuild b/app-misc/screen/screen-4.8.0-r3.ebuild index 565bb0f58b8a..dd1d7780d693 100644 --- a/app-misc/screen/screen-4.8.0-r3.ebuild +++ b/app-misc/screen/screen-4.8.0-r3.ebuild @@ -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}" } diff --git a/app-misc/screen/screen-9999.ebuild b/app-misc/screen/screen-9999.ebuild index dad214f37c40..e41146f416bf 100644 --- a/app-misc/screen/screen-9999.ebuild +++ b/app-misc/screen/screen-9999.ebuild @@ -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}" } |