add irssi-otr

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle 2015-08-25 09:56:18 -07:00
parent 4c050b6ea1
commit bee79d7528

View File

@ -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