Last active
August 26, 2015 12:05
-
-
Save BlackMaria/44f798896d828c0cf381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IRSSI_VERSION=0.8.17 | |
OTR_VERSION=4.1.0 | |
PREFIX=/opt/irssi | |
cat <<EOF > /tmp/list.$$ | |
https://otr.cypherpunks.ca/libotr-${OTR_VERSION}.tar.gz | |
https://otr.cypherpunks.ca/libotr-${OTR_VERSION}.tar.gz.asc | |
http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2 | |
http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2.sig | |
EOF | |
mkdir -p ~/SRC/SherSec/OTR/IRSSI | |
cd ~/SRC/SherSec/OTR/IRSSI | |
wget -i /tmp/list.$$ | |
sudo yum install libgcrypt-devel glib2-devel | |
# building irssi with perl support yum install perl-ExtUtils-Embed | |
echo "load otr" >> ~/.irssi/startup | |
#wget 'http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0xDDBEF0E1' | |
gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0x00CCB587DDBEF0E1 | |
gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0xDED64EBB2BA87C5C | |
if ( gpg --verify irssi-${IRSSI_VERSION}.tar.bz2.sig && gpg --verify libotr-${OTR_VERSION}.tar.gz.asc ) ; then | |
tar -xjvf irssi-${IRSSI_VERSION}.tar.bz2 | |
tar -xzvf libotr-${OTR_VERSION}.tar.gz | |
git clone https://github.com/cryptodotis/irssi-otr.git | |
fi | |
pushd irssi-${IRSSI_VERSION} | |
./configure --prefix=${PREFIX}/ --with-perl=yes --with-bot --enable-dane | |
make install | |
popd | |
pushd libotr-${OTR_VERSION} | |
./configure --prefix=/opt/toys ; make install | |
popd | |
pushd irssi-otr | |
./bootstrap | |
./configure --prefix=${PREFIX}/ --with-libotr-inc-prefix=${PREFIX}/include --with-libotr-prefix=${PREFIX}/ --with-irssi-module-dir=${PREFIX}/lib/irssi/modules/ CFLAGS="-I${PREFIX}/include -I${PREFIX}/include/irssi -I${PREFIX}/include/irssi/src/core -I${PREFIX}/include/irssi/src/" LDFLAGS="-L${PREFIX}/lib" | |
make install helpdir="${PREFIX}/share/irssi/help/" | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment