summaryrefslogtreecommitdiff
path: root/libre/pacman/pacman-keyring.initd
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-04-23 00:25:45 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-04-28 08:44:53 -0400
commita36ad55338890560d55d628ecf055f7061d16cf4 (patch)
tree9e2a836443db116f64451f16b2370264d14103e6 /libre/pacman/pacman-keyring.initd
parenteb2a14416eca0aa2b5d7f70c3b85274419374fba (diff)
downloadabslibre-a36ad55338890560d55d628ecf055f7061d16cf4.tar.gz
abslibre-a36ad55338890560d55d628ecf055f7061d16cf4.tar.bz2
abslibre-a36ad55338890560d55d628ecf055f7061d16cf4.zip
[pacman]: upgrade to v6.0.1
also: * added keyring update openrc service file * add dummy.conf empty.conf and the remaining changes were mainly to minimize the diff against arch
Diffstat (limited to 'libre/pacman/pacman-keyring.initd')
-rw-r--r--libre/pacman/pacman-keyring.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/libre/pacman/pacman-keyring.initd b/libre/pacman/pacman-keyring.initd
new file mode 100644
index 000000000..1945af58b
--- /dev/null
+++ b/libre/pacman/pacman-keyring.initd
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+
+# This is not a daemon; but a short-lived process,
+# which only needs to run occasionally.
+# Running it as a pseudo-service,
+# simplifies the install (rather than requiring a cron deamon).
+# Users must only add it to the 'default' runlevel.
+
+
+name="pacman-keyring"
+description="Refresh pacman keyring"
+
+
+depend() {
+ need net
+ after logger
+}
+
+# Custom start() function with wrapper, to always exit "success" status.
+# The command will exit non-zero upon any failed key retrieval;
+# which is common if not likely, due to the large number of keys it fetches.
+start() {
+ ebegin "Starting ${RC_SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/bash -- -c '/usr/bin/pacman-key --refresh-keys || :'
+ eend $?
+}