User Sensorii has supplied me with an initial version that I'm testing as we speak. On first inspection it looks really good so I'm considering this bounty closed. Please don't start working on it anymore.
Original post
The problem is the following:
I have a 'script' (I use the term loosely) that installs my Mastercoin wallet software on Debian-like distros. I want to add support for Fedora/Redhat/Centos but it's not that easy. Because of legal issues the OpenSSL version that comes with Fedora doesn't include the secp256k1 curve.
I will payout USD 250 in Mastercoin/Bitcoin for the first person who can modify the install script on http://wallet.mastercoin-explorer.com/ to support Fedora and the likes.
#!/bin/bash
if grep 'Ubuntu\|Debian' /etc/issue; then
echo "Debian based distro detected; installing RVM"
sudo apt-get install -y libqt4-gui libqt4-dev cmake libssl-dev libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
elif grep 'Fedora' /etc/issue; then
echo "Fedora detected, not installing RVM"
sudo yum install -y gcc-c++ qt-devel cmake ruby-devel rubygems qtwebkit-devel qtwebkit
fi
gem install mastercoin-wallet
echo "#################################################################"
echo "Please open a new terminal (tab) and start the wallet by typing:"
echo "mastercoin-wallet"
echo "#################################################################"
Requirements:
- It should use RVM if possible
- Preferably install ruby 2.x
- It should not touch the yum installed OpenSSL version; no conflicts should arise
- It should be able to run and configure my wallet client after running the installation script
Please note that the error only happens once you insert your private key in the first run dialog so make sure you test it before submitting. I will also give out a bounty if you can prove that what I want is impossible