update
[shellsnippets/shellsnippets.git] / posix / pbuilder-hooks / D10wtfrepo
1 #!/bin/sh
2 # $MirOS: contrib/hosted/tg/deb/hookdir/D10wtfrepo,v 1.5 2016/08/23 18:02:06 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|sid)
13         ;;
14 (stretch|buster|bullseye)
15         d=sid
16         ;;
17 (*)
18         echo >&2 W: D10wtfrepo: ignoring unknown DIST "'$DIST'"
19         exit 0
20         ;;
21 esac
22
23 # Import 2015 key
24 apt-key add - <<'EOF'
25 -----BEGIN PGP PUBLIC KEY BLOCK-----
26 Version: GnuPG v1.4.14 (MirBSD)
27
28 mQGNBFSNsycBDADQdl54UXf9oXNjOSjwnzopJbeaK5CJ8tvotnVv69KUg0VGUzkx
29 lndV8rBvg8mWnRq8hWeEQNw0Yt2TDt1kg/cuo3NX+1xrMcfFyeeXxQhFewkd9SSO
30 71EnGaG1NnHytzFx1olcs74aOzXAvyIson86dvwp1oSKrFeyvVpY7X7eltzkeM9X
31 2bpmNWl06NjmgLg5Pmboh6EGAQh6Zpk4zVl5nC1Gq0lYYnYuJNHoSwA3RQCH3zST
32 Im8gKh98smZ8dVaOK7rWzQvSQiWXpkZ2fzWsF4e2sNbwCW+FWHLHM89BLJiPO4k0
33 wEEkBWguYCpddUMWwfmewWzxFU8fjhxiTq31MJSrt4r5LLwh0N1GGQXp2soCmsAN
34 gT1qIV3UUJb3Ion/0iiQSqCnDNZjFlaGziPIiezU4pavOl7+fUy0vq4RXac8f2TJ
35 fda8Hk3uNRRlQAlcMc00mn0a3rdYFGGempitl29c3C4GarD7M3sXwcR/0xBDJnkQ
36 ZRVTfNFYB91BpJEAEQEAAYkBtwQfAQkAIQUCVI2zJxcMgAGQMZVeepek/aMrK4Z2
37 tTSy6ZAH4AIHAAAKCRAwwGD6ILJP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J/gH2TbtXPq7mCswlVdzcTLZiQD/0TG4UZP
54 gENBqZrRjMxIywm04sv4UjybIwHJikeYNMgmlk8hWKdt5mvIioBTxq6r8BifbA/1
55 nBSnBj7EHBDFcWHKwfmXf8DEaznk8tPPLAJ5ZPv3HkqfPYBBvXJ26gQN/TzXM24p
56 sptjizYTgjcFMaB/hIYnoNM=
57 =Ar55
58 -----END PGP PUBLIC KEY BLOCK-----
59 EOF
60
61 cat >>/etc/apt/sources.list <<EOF
62 deb http://www.mirbsd.org/~tg/Debs/ $d wtf
63 EOF
64
65 apt-get update
66 apt-get -y --purge dist-upgrade