From bee79d752852ec4e69532dc78eec35e108a13794 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Tue, 25 Aug 2015 09:56:18 -0700 Subject: [PATCH] add irssi-otr Signed-off-by: Jessica Frazelle --- irssi/Dockerfile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/irssi/Dockerfile b/irssi/Dockerfile index 21e4a8e..25a9a19 100644 --- a/irssi/Dockerfile +++ b/irssi/Dockerfile @@ -4,6 +4,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ libdatetime-perl \ + libgcrypt20-dev \ libglib2.0-0 \ libnotify4 \ libnotify-bin \ @@ -23,6 +24,8 @@ ENV LANG C.UTF-8 RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1 ENV IRSSI_VERSION 0.8.17 +ENV LIB_OTR_VERSION 4.1.0 +ENV IRSSI_OTR_VERSION 1.0.0 RUN buildDeps=' \ autoconf \ @@ -49,12 +52,32 @@ RUN buildDeps=' \ && cd /usr/src/irssi \ && ./configure \ --enable-true-color \ + --prefix="/usr" \ --with-bot \ --with-proxy \ --with-socks \ && make \ && make install \ - && rm -rf /usr/src/irssi \ + && curl -sSL "https://otr.cypherpunks.ca/libotr-${LIB_OTR_VERSION}.tar.gz" -o /tmp/libotr.tar.gz \ + && curl -sSL "https://otr.cypherpunks.ca/libotr-${LIB_OTR_VERSION}.tar.gz.asc" -o /tmp/libotr.tar.gz.asc \ + && curl -sSL "https://otr.cypherpunks.ca/gpgkey.asc" | gpg --import \ + && gpg --verify /tmp/libotr.tar.gz.asc \ + && mkdir -p /usr/src/libotr \ + && tar -xzf /tmp/libotr.tar.gz -C /usr/src/libotr --strip-components 1 \ + && rm /tmp/libotr.tar.gz* \ + && cd /usr/src/libotr \ + && ./configure --with-pic --prefix=/usr \ + && make \ + && make install \ + && mkdir -p /usr/src/irssi-otr \ + && curl -sSL "https://github.com/cryptodotis/irssi-otr/archive/v${IRSSI_OTR_VERSION}.tar.gz" | tar -vxz --strip-components 1 -C /usr/src/irssi-otr \ + && cd /usr/src/irssi-otr \ + && ./bootstrap \ + && ./configure --prefix="/usr" \ + && make \ + && make install \ + && rm -rf /usr/src/irssi* \ + && rm -rf /usr/src/libotr* \ && apt-get purge -y --auto-remove $buildDeps WORKDIR $HOME