You can always download the source package, compare the source with the original distributed source, all it takes is a simple diff, and then build your own package out of it.
Last time I tried, I had compilation errors.
I've just tried again, I get:
$ uname -a
Linux aptosidbox 2.6.38-1.slh.4-aptosid-686 #1 SMP PREEMPT Sat Mar 26 13:12:20 UTC 2011 i686 GNU/Linux
$ make -
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/util.o util.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/script.o script.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/db.o db.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/net.o net.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/irc.o irc.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/main.o main.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/include/wx-2.9" -I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/rpc.o rpc.cpp
In file included from /usr/include/boost/asio/ssl/context_service.hpp:30:0,
from /usr/include/boost/asio/ssl/context.hpp:22,
from /usr/include/boost/asio/ssl.hpp:19,
from rpc.cpp:12:
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp: In member function void boost::asio::ssl::detail::openssl_context_service::create(SSL_CTX*&, boost::asio::ssl::context_base::method):
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:73:28: error: ::SSLv2_method has not been declared
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:76:28: error: ::SSLv2_client_method has not been declared
/usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:79:28: error: ::SSLv2_server_method has not been declared
make: *** [obj/nogui/rpc.o] Erreur 1
I suspect it's because I have too a recent version of openssl:
$ apt-cache policy openssl libssl-dev
libssl-dev:
Installé : 1.0.0c-2
Candidat : 1.0.0c-2
Table de version :
*** 1.0.0c-2 0
100 /var/lib/dpkg/status
0.9.8o-5 0
500 http://ftp.fr.debian.org/debian/ sid/main i386 Packages
openssl:
Installé : 1.0.0c-2
Candidat : 1.0.0c-2
Table de version :
*** 1.0.0c-2 0
100 /var/lib/dpkg/status
0.9.8o-5 0
500 http://ftp.fr.debian.org/debian/ sid/main i386 Packages
I've just downgraded openssl, and now I get:
make: *** No rule to make target `cryptopp/obj/sha.o', needed by `bitcoind'. Stop.