aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2022-04-07 21:27:36 +0000
committerezkrg <ezkrg@ezkrg.me>2022-04-07 21:27:36 +0000
commiteadfa2d503ffef722ca2ebeeb1a4d440d9beff5c (patch)
treeda1f4904bdb4c099a9c46e09a8a6e716d3ba2841 /Dockerfile
parentupdate matrix (diff)
downloaddocker-bitlbee-libpurple-eadfa2d503ffef722ca2ebeeb1a4d440d9beff5c.tar.gz
docker-bitlbee-libpurple-eadfa2d503ffef722ca2ebeeb1a4d440d9beff5c.zip
update signal
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5dcc717..9e7fa5f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -300,16 +300,19 @@ FROM bitlbee-build as signald-build
ARG SIGNAL=1
ARG SIGNAL_VERSION
+COPY signal-login.c.patch /tmp/login.c.patch
+
RUN echo SIGNAL=${SIGNAL} > /tmp/status \
&& if [ ${SIGNAL} -eq 1 ]; \
then cd /tmp \
- && apk --no-cache add file-dev libmagic \
+ && apk --no-cache add file-dev libmagic patch \
&& git clone -n https://github.com/hoehermann/libpurple-signald \
&& cd libpurple-signald \
&& git checkout ${SIGNAL_VERSION} \
&& git submodule init \
&& git submodule update \
- && make -j$(nproc --ignore 2) SUPPORT_EXTERNAL_ATTACHMENTS=1 \
+ && patch < ../login.c.patch \
+ && make -j$(nproc --ignore 2) SUPPORT_EXTERNAL_ATTACHMENTS=1 libsignald.so \
&& make install \
&& strip /usr/lib/purple-2/libsignald.so; \
else mkdir -p /usr/lib/purple-2 \