sys-apps/tmpfilesd: inherit tmpfiles

This commit is contained in:
Sandino Araico Sanchez
2023-10-23 13:20:11 -06:00
parent 49a08827b7
commit 6c51e2f5c4
2 changed files with 26 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
AUX tmpfilesd-clean 51 BLAKE2B 7d27a24f9f46a297436b244d10ba5ed684d956437e03f191eb842ce7b7c47258f4d4eded090710c1c49b8e9f605dfe48188efaf579821c8ee4ba2a3ee0676674 SHA512 86ead978377868c02bc4c615299febbd96f4c80f3e0f67b2ee73fd3ca66488240c85e585bb9efc6392f3bd7edf1bf0ba76db18a0fe2ec645a71790b7df3d4251 AUX tmpfilesd-clean 51 BLAKE2B 7d27a24f9f46a297436b244d10ba5ed684d956437e03f191eb842ce7b7c47258f4d4eded090710c1c49b8e9f605dfe48188efaf579821c8ee4ba2a3ee0676674 SHA512 86ead978377868c02bc4c615299febbd96f4c80f3e0f67b2ee73fd3ca66488240c85e585bb9efc6392f3bd7edf1bf0ba76db18a0fe2ec645a71790b7df3d4251
AUX tmpfilesd-dev.initd 326 BLAKE2B 26bdb25b009e5dc827ffe7bac8cedbbeec769fe5cafb548ee3954cff9aa9c0e929a3016e46ae9031e3f41c36a383b8e1fbc41ef2fef8ba982d0fded4376dacaa SHA512 aa071f44c059b3e91991de06a33117ce06cbbedd4b743481c19815fd4279019422790b642ca41ff08240cef11e42c3b16d20984c31a47bff62d0e75ed6dee600 AUX tmpfilesd-dev.initd 326 BLAKE2B 26bdb25b009e5dc827ffe7bac8cedbbeec769fe5cafb548ee3954cff9aa9c0e929a3016e46ae9031e3f41c36a383b8e1fbc41ef2fef8ba982d0fded4376dacaa SHA512 aa071f44c059b3e91991de06a33117ce06cbbedd4b743481c19815fd4279019422790b642ca41ff08240cef11e42c3b16d20984c31a47bff62d0e75ed6dee600
AUX tmpfilesd-setup.initd 309 BLAKE2B d1826d2ef6e8ac0e189ec5bc352d435b34aa1b7052b73bea214260da839f40d27aacb9181d423ef0ba73c47b7719af26baf34921dea9794b8174882d104805c8 SHA512 290e786fa684c148ba24b7768c611e55c8992462064bbeffc6fd5e71045bb67ab61e67c6e175c58478a35dcb6020990179060aecbeb9bea0458bde7be3c30d80 AUX tmpfilesd-setup.initd 309 BLAKE2B d1826d2ef6e8ac0e189ec5bc352d435b34aa1b7052b73bea214260da839f40d27aacb9181d423ef0ba73c47b7719af26baf34921dea9794b8174882d104805c8 SHA512 290e786fa684c148ba24b7768c611e55c8992462064bbeffc6fd5e71045bb67ab61e67c6e175c58478a35dcb6020990179060aecbeb9bea0458bde7be3c30d80
EBUILD tmpfilesd-9999.ebuild 1027 BLAKE2B a62169d3b79b6bff37441d29b017ed7ca136102b2a630edf70c7bab0731a5f10e39c50c4318582e07c766afca2a3efc04cab8b9f7fd417448d995b93956df0cf SHA512 abbd5aec0821b6ff3ea0de0904b5e378962910184b648d067afb1c0218b8ba3102279b7edde77f3bd6fddb0c9d46f6b54441eab6f870899a0ef3766205a58e6b EBUILD tmpfilesd-9999.ebuild 2050 BLAKE2B 5f3fdeeb6de957eceb74300a1ffe0134f4cda0a787d2a9f124a718a2080b91ffa979d51afebf0dc50d1c9aaa4a4873f14c59ed49168bb4844654ed375948e47c SHA512 05d3bb8d00a72820fb24eaf6a4cd5f3b965ff1641f480ffe62aed5d0d380fc973793a084cca062fc5b150dfa51c21af4d825bd5a333b1c5bcf64f50f9294530e
MISC metadata.xml 338 BLAKE2B 924465e40fbfba90989180d6b963eeb53c84dffe507da0cdb6f8274917b4392299ebbe910c7772c4baf07200816a72ad5168e9142cc23ea6ab27a008130e7ce4 SHA512 191c4613d18a73a3cb89e33ee0986c6a1479f4dd8d7ed6a476fe8bd32a9eef6a6e0e1572969e31a752ce4105434519f2b205ddcfac2811e3beaacebfcef4988b MISC metadata.xml 338 BLAKE2B 924465e40fbfba90989180d6b963eeb53c84dffe507da0cdb6f8274917b4392299ebbe910c7772c4baf07200816a72ad5168e9142cc23ea6ab27a008130e7ce4 SHA512 191c4613d18a73a3cb89e33ee0986c6a1479f4dd8d7ed6a476fe8bd32a9eef6a6e0e1572969e31a752ce4105434519f2b205ddcfac2811e3beaacebfcef4988b

View File

@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
inherit prefix inherit tmpfiles
if [[ ${PV} = 9999* ]]; then if [[ ${PV} = 9999* ]]; then
inherit git-r3 inherit git-r3
@@ -15,18 +15,33 @@ HOMEPAGE="https://github.com/juur/tmpfilesd"
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
src_prepare() {
default
sed -i -e "/tmpfiles-d/d" Makefile.in || die
}
src_configure() {
econf --bindir="${EPREFIX}"/bin
}
src_install() { src_install() {
emake DESTDIR="${ED}" install emake DESTDIR="${ED}" install
einstalldocs einstalldocs
cd misc cd misc
dotmpfiles tmpfiles-d/etc.conf # Sets /etc/localtime to UTC
dotmpfiles tmpfiles-d/legacy.conf # Not sure if this is needed
dotmpfiles tmpfiles-d/sap.conf # harmless if not using sap; Consider USE=sap
#dotmpfiles tmpfiles-d/systemd-nologin.conf # should be provided by systemd
#dotmpfiles tmpfiles-d/systemd.conf # should be provided by systemd
#dotmpfiles tmpfiles-d/tmp.conf # should be provided by systemd
dotmpfiles tmpfiles-d/var.conf # changed permissions should be investigated
dotmpfiles tmpfiles-d/x11.conf # Xorg creates these. Consider USE=X
exeinto /etc/cron.daily exeinto /etc/cron.daily
doexe "${FILESDIR}"/tmpfilesd-clean doexe "${FILESDIR}"/tmpfilesd-clean
for f in tmpfilesd-dev tmpfilesd-setup; do for f in tmpfilesd-dev tmpfilesd-setup; do
newconfd tmpfilesd.sysconfig ${f} newconfd tmpfilesd.sysconfig ${f}
newinitd "${FILESDIR}/${f}.initd" ${f} newinitd "${FILESDIR}/${f}.initd" ${f}
done done
} }
add_service() { add_service() {
@@ -39,6 +54,14 @@ add_service() {
} }
pkg_postinst() { pkg_postinst() {
tmpfiles_process etc.conf
tmpfiles_process legacy.conf
tmpfiles_process sap.conf
#tmpfiles_process systemd-nologin.conf # should be provided by systemd
#tmpfiles_process systemd.conf # should be provided by systemd
#tmpfiles_process tmp.conf # should be provided by systemd
tmpfiles_process var.conf
tmpfiles_process x11.conf
if [[ -z $REPLACING_VERSIONS ]]; then if [[ -z $REPLACING_VERSIONS ]]; then
add_service tmpfilesd-dev sysinit add_service tmpfilesd-dev sysinit
add_service tmpfilesd-setup boot add_service tmpfilesd-setup boot