
9 changed files with 40 additions and 2 deletions
@ -1,3 +1,9 @@
|
||||
|
||||
* symlink the files you like into /etc/apt/* |
||||
* create-gpgring.sh can create new files for trusted.gpg.d/ from public keys and should be preferred over apt-key add |
||||
|
||||
Key sources: |
||||
|
||||
* https://jenkins-ci.org/debian/jenkins-ci.org.key |
||||
* https://debian.lighttpd.net/jenkins-lighttpd.net.gpg |
||||
* `osc signkey` for OBS projects |
||||
|
@ -0,0 +1,29 @@
|
||||
#!/bin/bash |
||||
|
||||
set -e |
||||
|
||||
tmpdir=$(mktemp --tmpdir -d refresh-obs-keys-XXXXXXX) |
||||
trap 'rm -rf "${tmpdir}"' EXIT |
||||
|
||||
self=`readlink -f "$0"` |
||||
basedir=`dirname "${self}"` |
||||
keyringdir="${basedir}/trusted.gpg.d" |
||||
|
||||
cd "${tmpdir}" |
||||
|
||||
obs_get() { |
||||
local proj="$1" |
||||
local target="$2" |
||||
|
||||
echo "Fetching key for ${proj}" |
||||
osc signkey --notravers "${proj}" > "public.key" |
||||
|
||||
echo "Converting to keyring" |
||||
"${basedir}/create-gpgring.sh" -o "keyring.gpg" -- "public.key" |
||||
|
||||
mv "keyring.gpg" "${target}" |
||||
} |
||||
|
||||
obs_get "home:stbuehler" "${keyringdir}/obs-home-stbuehler.gpg" |
||||
obs_get "server:http" "${keyringdir}/obs-server-http.gpg" |
||||
obs_get "openSUSE:Tools" "${keyringdir}/obs-openSUSE-Tools.gpg" |
@ -0,0 +1 @@
|
||||
deb http://pkg.jenkins-ci.org/debian binary/ |
@ -0,0 +1 @@
|
||||
deb http://download.opensuse.org/repositories/home:/stbuehler/Debian_7.0 ./ |
@ -0,0 +1 @@
|
||||
deb http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_7.0/ ./ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue