summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2014-02-12 22:40:36 +0100
committerHolger Paradies <retabell@gmx.de>2014-02-12 23:26:21 +0100
commit12dedf9ed1ce946f9745a629ab6eb7a758e3df90 (patch)
tree088b8bab67d77b27371173f61b3979b2777eb91e
parent09d08a1e1f785fe35f5a69cb89929ac8a57f61a8 (diff)
downloadkanotix-12dedf9ed1ce946f9745a629ab6eb7a758e3df90.zip
kanotix-12dedf9ed1ce946f9745a629ab6eb7a758e3df90.tar.gz
create steam.list in apt/sources.list.d/steam.list
-rwxr-xr-xconfig/chroot_local-hooks/00-sources.list4
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9010-hotfixes8
-rw-r--r--config/repositories/steam4
3 files changed, 14 insertions, 2 deletions
diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list
index 976b539..88609e8 100755
--- a/config/chroot_local-hooks/00-sources.list
+++ b/config/chroot_local-hooks/00-sources.list
@@ -7,4 +7,8 @@ for x in /etc/apt/sources.list.d/*.list; do
fi
done
+if [ -f /etc/apt/sources.list.d/steam.list ]; then
+ rm -f /etc/apt/sources.list.d/steam.list
+fi
+
sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list
diff --git a/config/chroot_local-includes/lib/live/config/9010-hotfixes b/config/chroot_local-includes/lib/live/config/9010-hotfixes
index edd86c4..70c3757 100755
--- a/config/chroot_local-includes/lib/live/config/9010-hotfixes
+++ b/config/chroot_local-includes/lib/live/config/9010-hotfixes
@@ -70,6 +70,14 @@ deb http://dl.google.com/linux/talkplugin/deb/ stable main
EOT
fi
+# steam list hack
+if [ -x /var/lib/dpkg/info/steam-launcher.postinst ]; then
+cat <<EOT >/etc/apt/sources.list.d/steam.list
+deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
+deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
+EOT
+fi
+
# reconfigure console-setup
rm -f /etc/default/console-setup
. /etc/default/locale
diff --git a/config/repositories/steam b/config/repositories/steam
index 15e41bb..26cfb32 100644
--- a/config/repositories/steam
+++ b/config/repositories/steam
@@ -1,2 +1,2 @@
-deb http://repo.steampowered.com/steam/ precise steam
-deb-src http://repo.steampowered.com/steam/ precise steam
+deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
+deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam