/usr/lib/news/bin/buildinnkeyring is in inn2 2.5.2+20110413-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/bash
. /usr/lib/news/innshellvars
cd $PATHTMP
KEYSURL=ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS
KEYSFILE=PGPKEYS
KEYRING=${NEWSETC}/pgp/pubring.gpg
trap "rm -f $KEYSFILE" 0 1 2 15
rm -f ${KEYSFILE}
${GETFTP} ${KEYSURL}
test -f ${KEYSFILE} || exit 1
gpg --batch --no-permission-warning \
--no-default-keyring --keyring=${KEYRING} --no-options \
--allow-non-selfsigned-uid --fast-import ${KEYSFILE}
exit $$
# this does not work because gpg refuses to use RSA-style fingerprints
KEYSERVER=keyserver.linux.it
SERVERKEYS=$(grep fingerprint ${CTLFILE} \
| sed -e 's/ //g' -e 's/.*[:=]/0x/' \
| grep -v '^#')
for key in $SERVERKEYS; do
gpg --batch --no-permission-warning --verbose \
--no-default-keyring --keyring=${KEYRING} --no-options \
--keyserver=${KEYSERVER} --recv-keys ${key}
done
|