summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-09-25 00:24:01 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-09-25 00:28:00 -0400
commit4136b2e3a6d3892298b188d677c834b0946c24ef (patch)
treebb99b60ac2d7d217dd2413f105c6ba9dd5514015 /systemd
parent1dff5a4284daed3b65722e008456a21b19e3960f (diff)
Add a 'db-import-keyring' program
It is a bit similar in spirit to the old 'any-to-ours' program. When db-import-pkg imports archlinux32-keyring, it is only released to core-i686, but we need it to be available on all architectures. Currently, this is a manual process. So, add db-import-keyring which imports *only* the -keyring packages, and releases them to [libre] on each architecture.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/db-import-keyring.service11
-rw-r--r--systemd/db-import-keyring.timer9
2 files changed, 20 insertions, 0 deletions
diff --git a/systemd/db-import-keyring.service b/systemd/db-import-keyring.service
new file mode 100644
index 0000000..96ec7bd
--- /dev/null
+++ b/systemd/db-import-keyring.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=db-import-keyring
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=oneshot
+User=repo
+ExecStart=/usr/bin/db-import-keyring
+
+PrivateTmp=true
diff --git a/systemd/db-import-keyring.timer b/systemd/db-import-keyring.timer
new file mode 100644
index 0000000..3818733
--- /dev/null
+++ b/systemd/db-import-keyring.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Daily db-import-keyring
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+
+[Install]
+WantedBy=timers.target