Verified Commit dff74498 authored by Thiago Perrotta's avatar Thiago Perrotta Committed by Daniel M. Capella
Browse files

Add pacman-syncdb: systemd service and timer for `pacman -Fy`.

`pacman -Fy` is a modern replacement for `pkgfile`[1].

This service/timer makes `pacman -Fy` have feature parity with
`pkgfile`.

The unit files were based on both pkgfile and paccache, for consistency
with the existing ecosystem.

Context: https://bbs.archlinux.org/viewtopic.php?pid=1981076

[1]: https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file

Signed-off-by: default avatarThiago Perrotta <tbperrotta@gmail.com>
Signed-off-by: Daniel M. Capella's avatarDaniel M. Capella <polyzen@archlinux.org>
parent c066a07a
......@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
- pacman-syncdb: systemd service and timer for `pacman -Fy` (https://bbs.archlinux.org/viewtopic.php?pid=1981076)
### Changed
......
......@@ -30,7 +30,8 @@ vim_syntax__DATA = \
systemd_dir = ${libdir}/systemd/system
systemd__DATA = \
paccache.service paccache.timer
paccache.service paccache.timer \
pacman-syncdb.service pacman-syncdb.timer
BASHSCRIPTS = \
checkupdates \
......@@ -50,7 +51,8 @@ OURSCRIPTS = \
$(PERLSCRIPTS)
OURFILES = \
paccache.service
paccache.service \
pacman-syncdb.service
EXTRA_DIST = \
checkupdates.sh.in \
......@@ -60,6 +62,8 @@ EXTRA_DIST = \
pacdiff.sh.in \
paclist.sh.in \
paclog-pkglist.sh.in \
pacman-syncdb.service.in \
pacman-syncdb.timer \
pacscripts.sh.in \
pacsearch.pl.in \
pacsort.c \
......
[Unit]
Description=Download pacman fresh files databases from the server
RequiresMountsFor="/var/lib/pacman/sync"
After=network-online.target nss-lookup.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=@bindir@/pacman -Fy
Nice=19
StandardOutput=null
StandardError=journal
[Unit]
Description=Download pacman fresh files databases from the server weekly
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
[Install]
WantedBy=timers.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment