forked from cromer/pamac-classic
add a systemd timer unit to monthly generate mirrorlist
This commit is contained in:
parent
c38ae38eac
commit
74d1902cc9
5
Makefile
5
Makefile
@ -41,8 +41,11 @@ install:
|
|||||||
install -Dm644 data/systemd/pamac.service $(libdir)/systemd/system/pamac.service
|
install -Dm644 data/systemd/pamac.service $(libdir)/systemd/system/pamac.service
|
||||||
install -Dm644 data/systemd/pamac-cleancache.service $(libdir)/systemd/system/pamac-cleancache.service
|
install -Dm644 data/systemd/pamac-cleancache.service $(libdir)/systemd/system/pamac-cleancache.service
|
||||||
install -Dm644 data/systemd/pamac-cleancache.timer $(libdir)/systemd/system/pamac-cleancache.timer
|
install -Dm644 data/systemd/pamac-cleancache.timer $(libdir)/systemd/system/pamac-cleancache.timer
|
||||||
|
install -Dm644 data/systemd/pamac-mirrorlist.service $(libdir)/systemd/system/pamac-mirrorlist.service
|
||||||
|
install -Dm644 data/systemd/pamac-mirrorlist.timer $(libdir)/systemd/system/pamac-mirrorlist.timer
|
||||||
mkdir -p $(libdir)/systemd/system/multi-user.target.wants
|
mkdir -p $(libdir)/systemd/system/multi-user.target.wants
|
||||||
ln -srf $(libdir)/systemd/system/pamac-cleancache.timer $(libdir)/systemd/system/multi-user.target.wants
|
ln -srf $(libdir)/systemd/system/pamac-cleancache.timer $(libdir)/systemd/system/multi-user.target.wants
|
||||||
|
ln -srf $(libdir)/systemd/system/pamac-mirrorlist.timer $(libdir)/systemd/system/multi-user.target.wants
|
||||||
install -Dm744 data/networkmanager/99_update_pamac_tray $(sysconfdir)/NetworkManager/dispatcher.d/99_update_pamac_tray
|
install -Dm744 data/networkmanager/99_update_pamac_tray $(sysconfdir)/NetworkManager/dispatcher.d/99_update_pamac_tray
|
||||||
install -Dm644 data/polkit/org.manjaro.pamac.policy $(datadir)/polkit-1/actions/org.manjaro.pamac.policy
|
install -Dm644 data/polkit/org.manjaro.pamac.policy $(datadir)/polkit-1/actions/org.manjaro.pamac.policy
|
||||||
install -Dm644 data/mime/x-alpm-package.xml $(datadir)/mime/packages/x-alpm-package.xml
|
install -Dm644 data/mime/x-alpm-package.xml $(datadir)/mime/packages/x-alpm-package.xml
|
||||||
@ -72,6 +75,8 @@ uninstall:
|
|||||||
rm -f $(libdir)/systemd/system/pamac.service
|
rm -f $(libdir)/systemd/system/pamac.service
|
||||||
rm -f $(libdir)/systemd/system/pamac-cleancache.service
|
rm -f $(libdir)/systemd/system/pamac-cleancache.service
|
||||||
rm -f $(libdir)/systemd/system/pamac-cleancache.timer
|
rm -f $(libdir)/systemd/system/pamac-cleancache.timer
|
||||||
|
rm -f $(libdir)/systemd/system/pamac-mirrorlist.service
|
||||||
|
rm -f $(libdir)/systemd/system/pamac-mirrorlist.timer
|
||||||
rm -f $(libdir)/systemd/system/multi-user.target.wants/pamac-cleancache.timer
|
rm -f $(libdir)/systemd/system/multi-user.target.wants/pamac-cleancache.timer
|
||||||
rm -f $(sysconfdir)/NetworkManager/dispatcher.d/99_update_pamac_tray
|
rm -f $(sysconfdir)/NetworkManager/dispatcher.d/99_update_pamac_tray
|
||||||
rm -f $(datadir)/polkit-1/actions/org.manjaro.pamac.policy
|
rm -f $(datadir)/polkit-1/actions/org.manjaro.pamac.policy
|
||||||
|
6
data/systemd/pamac-mirrorlist.service
Normal file
6
data/systemd/pamac-mirrorlist.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Generate mirrorlist
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/pacman-mirrors -g
|
9
data/systemd/pamac-mirrorlist.timer
Normal file
9
data/systemd/pamac-mirrorlist.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Monthly generate mirrorlist
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=monthly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user