update from MirBSD CVS
[shellsnippets/shellsnippets.git] / posix / pbuilder-hooks / D10wtfrepo
1 #!/bin/sh
2 # $MirOS: contrib/hosted/tg/deb/hookdir/D10wtfrepo,v 1.7 2019/03/23 19:48:13 tg Exp $
3 #-
4 # Not complicated enough for copyright.
5
6 unset LANGUAGE
7 LC_ALL=C; export LC_ALL
8
9 d=${DIST%/*}
10 d=${d%-backports*}
11 case $d in
12 (sarge|etch|lenny|squeeze|wheezy|jessie|stretch|buster|sid)
13         ;;
14 (bullseye)
15         d=sid
16         ;;
17 (*)
18         echo >&2 W: D10wtfrepo: ignoring unknown DIST "'$DIST'"
19         exit 0
20         ;;
21 esac
22
23 # Import 2018 key
24 apt-key add - <<'EOF'
25 -----BEGIN PGP PUBLIC KEY BLOCK-----
26
27 mQGNBFlP41MBDADGjAsxl0jbdknmg2CHKf7gQPBxOBk5/qw6F5HAOthBM/14sohA
28 iwXyXW7oEcmPAKc7v8yn+A/JjrCfsp6rXUnMlB37zr5qb0JIO1o3p0guekGGJ/in
29 48NClFMQU71MmOvaRWIKrNVtFIhLcFncCU9k6bB1hCnhhSmHGBlsIIGhInIHbv4o
30 5IZYKb0BWJ1SqiOLAwYblstUIcFGR2K+z3l+hwFgMFM0VhMCi0fCyrdEWw9Qs1I1
31 l0K3hzG2WUOhWO+aY4qoOyPlMc3a9zXBFdc0JHptRgh3JTBf2gK3kO6wcPfdG5Hq
32 btCstesRFYS9nOoKwyxg80iZYpV4+q6POeS43Xfi2APXB+3tXAQJ5+dCYam/jlzu
33 oyPAEZxai5R8m1q9SD+c16nx8F5GSuEoAcvfyAc7EqhCfnjh3o2/QokOPPboMRWW
34 s46FaIWZiuNf8p1hfgj6cjH1ny124AbvvClddCDPuFwwXVxRji3ApeOwPUkqoFDn
35 zebsA4OA2+ggEGEAEQEAAbQxU2lnbmluZyBrZXkgMjAxOCBmb3Ig4oCcV1RG4oCd
36 IHBhY2thZ2UgcmVwb3NpdG9yeYkBuwQTAQkAJQUCWU/jUwIbAwUJBqIMAAULCAQJ
37 BwUVCQoDCAMWAgACHgECF4AACgkQAgir6mZzodkl2AwAlAi4FT+HBrER5ZxtFNdX
38 nuSLUxMnzqp9k+lO1Kd3i5qGclosdLcrVMCDadzf3ZI1NOQvnzQ9TPlyWD0jBk1E
39 E0Vg68B7lySoBvJFOoSwZaZs7HCc7EcEFKPK58ITBx4UVXYoW1CLZ4Q51oXT7iSx
40 RRPby+vMFaeYA1foRffAUFe1pmY3RBuMBxT8NKZIxlC72k10b4y68jMuBBR2UjVV
41 6YebyHtxMKiGNuJIrhl5hS3p0G1l+KQ6CnBVvqHiECRSE2hsUetg3SO+HbxH2E88
42 iuPzblqdfsypmIoyia46dAqq97JY6tW9U+CSql4w9Gx4xVj+ai4PNdRv3HImtbEV
43 L95v4UeZparZmFgJtnUcGe71i8OdqseoRB9+lDLMPShbs06c6eg9RVjMqpbPRXdf
44 U52L8r+zYDN9mAXKsA1n5mBIZSIG5MVynGkmk0IZFWMZZ5UiTswGJGAAjNyC1eWy
45 dLtQUGt1ST6gH+fenw0EZ3erzXih9roLsJWip8UweJer
46 =t3xZ
47 -----END PGP PUBLIC KEY BLOCK-----
48 EOF
49
50 cat >>/etc/apt/sources.list <<EOF
51 deb http://www.mirbsd.org/~tg/Debs/ $d wtf
52 EOF
53
54 # note: sarge/wtf almost certainly needs sarge-backports
55
56 test x"$d" = x"squeeze" && cat >>/etc/apt/sources.list <<EOF
57 deb http://www.mirbsd.org/~tg/Debs/ lenny wtf
58 EOF
59
60 apt-get update
61 apt-get -y --purge dist-upgrade