* [gentoo-commits] repo/gentoo:master commit in: sys-apps/flatpak/, sys-apps/flatpak/files/
@ 2023-04-06 2:59 Zac Medico
0 siblings, 0 replies; only message in thread
From: Zac Medico @ 2023-04-06 2:59 UTC (permalink / raw
To: gentoo-commits
commit: 70fb119a972f04d0c8192cce7c8ff87e2509c08c
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 3 12:06:26 2023 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Apr 6 02:58:13 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70fb119a
sys-apps/flatpak: add systemd flatpak-update.{service.timer}
Closes: https://github.com/gentoo/gentoo/pull/30459
Closes: https://bugs.gentoo.org/903735
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
sys-apps/flatpak/files/flatpak-update.service | 11 +++++++++++
sys-apps/flatpak/files/flatpak-update.timer | 9 +++++++++
.../{flatpak-1.14.4.ebuild => flatpak-1.14.4-r1.ebuild} | 6 +++++-
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/sys-apps/flatpak/files/flatpak-update.service b/sys-apps/flatpak/files/flatpak-update.service
new file mode 100644
index 000000000000..07330552f7d6
--- /dev/null
+++ b/sys-apps/flatpak/files/flatpak-update.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update system Flatpaks
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/flatpak --system update --assumeyes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sys-apps/flatpak/files/flatpak-update.timer b/sys-apps/flatpak/files/flatpak-update.timer
new file mode 100644
index 000000000000..f34af44de847
--- /dev/null
+++ b/sys-apps/flatpak/files/flatpak-update.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Update user Flatpaks daily
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+
+[Install]
+WantedBy=timers.target
diff --git a/sys-apps/flatpak/flatpak-1.14.4.ebuild b/sys-apps/flatpak/flatpak-1.14.4-r1.ebuild
similarity index 95%
rename from sys-apps/flatpak/flatpak-1.14.4.ebuild
rename to sys-apps/flatpak/flatpak-1.14.4-r1.ebuild
index 16d18d1775bf..859b8ef2a2a8 100644
--- a/sys-apps/flatpak/flatpak-1.14.4.ebuild
+++ b/sys-apps/flatpak/flatpak-1.14.4-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{9,10,11} )
-inherit linux-info python-any-r1
+inherit linux-info python-any-r1 systemd
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
DESCRIPTION="Linux application sandboxing and distribution framework"
@@ -105,4 +105,8 @@ src_install() {
find "${ED}" -name '*.la' -delete || die
# resolve conflict with acct-user/flatpak for #856706
rm -rf "${ED}/usr/lib/sysusers.d"
+
+ if use systemd; then
+ systemd_dounit "${FILESDIR}"/flatpak-update.{service,timer}
+ fi
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-06 2:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 2:59 [gentoo-commits] repo/gentoo:master commit in: sys-apps/flatpak/, sys-apps/flatpak/files/ Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox