diff options
Diffstat (limited to 'sys-apps/flatpak')
-rw-r--r-- | sys-apps/flatpak/files/flatpak-update.service | 11 | ||||
-rw-r--r-- | sys-apps/flatpak/files/flatpak-update.timer | 9 | ||||
-rw-r--r-- | sys-apps/flatpak/flatpak-1.14.4-r1.ebuild (renamed from sys-apps/flatpak/flatpak-1.14.4.ebuild) | 6 |
3 files changed, 25 insertions, 1 deletions
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 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 } |