Update your WGETs:
http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8m-2_i386.deb
http://ftp.de.debian.org/debian/pool/main/o/openssl/openssl_0.9.8m-2_i386.deb
http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl-dev_0.9.8m-2_i386.deb
"0.9.8k-5" is no longer there (not sure where to get "archived" versions of said packages... or how to wget with a wildcard for absolutely latest version).
I also added the third package, as it also removed errors I got on aptitude update/upgrades FOLLOWING your "All-in-One" code (I got the third one from another guide somewhere). Without the libssl-dev, I kept getting "dependancy not found" errors. Adding it fixed that perplexing problem for me.
Only question I have is how do you git a certain revision of Mangos core? "git $SOURCE $PATH $REV" doesn't work for me, or maybe I just have something wrong.
And I've also had "git am" fail on me recently in the script I'm building. On the prompt it works, but not in the script. Makes me sad lol.
Otherwise, thanks for the how-to. Much appreciated. Great starting point