update
[shellsnippets/shellsnippets.git] / posix / pbuilder-hooks / D10wtfrepo
index bf37299..f7ff532 100644 (file)
@@ -1,17 +1,65 @@
 #!/bin/sh
-# $MirOS: contrib/hosted/tg/deb/hookdir/D10wtfrepo,v 1.1 2012/01/03 16:57:19 tg Exp $
+# $MirOS: contrib/hosted/tg/deb/hookdir/D10wtfrepo,v 1.5 2016/08/23 18:02:06 tg Exp $
 #-
 # Not complicated enough for copyright.
 
 unset LANGUAGE
 LC_ALL=C; export LC_ALL
 
-dpkg -i /tmp/wtf-debian-keyring_*.deb /tmp/ca-bundle_*.deb
-apt-get -y --force-yes -o Dpkg::Options::=--force-confnew,confmiss -f install
-apt-get -y --purge install apt-transport-https
+d=${DIST%/*}
+d=${d%-backports*}
+case $d in
+(sarge|etch|lenny|squeeze|wheezy|jessie|sid)
+       ;;
+(stretch|buster|bullseye)
+       d=sid
+       ;;
+(*)
+       echo >&2 W: D10wtfrepo: ignoring unknown DIST "'$DIST'"
+       exit 0
+       ;;
+esac
 
-cat >>/etc/apt/sources.list <<'EOF'
-deb https://www.freewrt.org/~tg/debs sid wtf
+# Import 2015 key
+apt-key add - <<'EOF'
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.14 (MirBSD)
+
+mQGNBFSNsycBDADQdl54UXf9oXNjOSjwnzopJbeaK5CJ8tvotnVv69KUg0VGUzkx
+lndV8rBvg8mWnRq8hWeEQNw0Yt2TDt1kg/cuo3NX+1xrMcfFyeeXxQhFewkd9SSO
+71EnGaG1NnHytzFx1olcs74aOzXAvyIson86dvwp1oSKrFeyvVpY7X7eltzkeM9X
+2bpmNWl06NjmgLg5Pmboh6EGAQh6Zpk4zVl5nC1Gq0lYYnYuJNHoSwA3RQCH3zST
+Im8gKh98smZ8dVaOK7rWzQvSQiWXpkZ2fzWsF4e2sNbwCW+FWHLHM89BLJiPO4k0
+wEEkBWguYCpddUMWwfmewWzxFU8fjhxiTq31MJSrt4r5LLwh0N1GGQXp2soCms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