Skip to content

Instantly share code, notes, and snippets.

@drizzt
Last active March 10, 2016 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drizzt/478999e752dbee5148bd to your computer and use it in GitHub Desktop.
Save drizzt/478999e752dbee5148bd to your computer and use it in GitHub Desktop.
keepassx 2.0.2 binary for Tails

This gist includes the keepassx 2.0.2 (with Twofish support), built under a Virtual Machine with a vanilla Debian 8.3 (i386) using the following commands (as root):

apt-get install build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev makeself wget ca-certificates

ver=2.0.2
wget https://www.keepassx.org/releases/$ver/keepassx-$ver.tar.gz
tar xzf keepassx-$ver.tar.gz
cd keepassx-$ver
wget -O- https://github.com/drizzt/keepassx/commit/2545bd84d05020d4ca967f4e21fc20266297e4d6.patch | patch -Np1
wget -O- https://github.com/drizzt/keepassx/commit/0c05715ee4da90e6c2d42a3d10917adf359ed3e4.patch | patch -Np1
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
rm -rf ~/keepassx.out
make install DESTDIR=~/keepassx.out
strip --strip-unneeded /root/keepassx.out/usr/local/keepassx

makeself --nox11 ~/keepassx.out/usr/local ~/keepassx.run "keepassx $ver" ./bin/keepassx '--config '\''"$(readlink -f "$(dirname "$0")")"'\''/keepassx2.ini'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment