File: extra-scripts

package info (click to toggle)
inn2 2.7.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,616 kB
  • sloc: ansic: 101,747; sh: 16,154; perl: 14,839; makefile: 3,962; yacc: 798; python: 268; lex: 262; sql: 192
file content (48 lines) | stat: -rw-r--r-- 1,141 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
--- /dev/null
+++ b/extra/buildinnkeyring
@@ -0,0 +1,36 @@
+#!/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
+
+gpg1 --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=pool.sks-keyservers.net
+
+SERVERKEYS=$(grep fingerprint ${CTLFILE} \
+	| sed -e 's/ //g' -e 's/.*[:=]/0x/' \
+	| grep -v '^#')
+
+for key in $SERVERKEYS; do
+    gpg1 --batch --no-permission-warning --verbose \
+	--no-default-keyring --keyring=${KEYRING} --no-options \
+	--keyserver=${KEYSERVER} --recv-keys ${key}
+done
+
--- /dev/null
+++ b/extra/ginpaths2
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+# Add this line in /etc/news/newsfeeds:
+# !inpaths:*:Tc,WP:/usr/lib/news/bin/ginpaths2
+
+exec /usr/lib/news/bin/ninpaths -p -d /var/log/news/path/inpaths.%d