aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorSpencer Heywood <l.spencer.heywood@protonmail.com>2020-11-04 02:13:46 +0000
committerSpencer Heywood <l.spencer.heywood@protonmail.com>2020-11-04 02:13:46 +0000
commit5f6359f70c243b4e6be0da4cf54076ce712a4a50 (patch)
tree04ba301c8aab8d678011132ce2d6a14438c02230 /Dockerfile
parentmissing login in release (diff)
downloaddocker-bitlbee-libpurple-5f6359f70c243b4e6be0da4cf54076ce712a4a50.tar.gz
docker-bitlbee-libpurple-5f6359f70c243b4e6be0da4cf54076ce712a4a50.zip
added signald support
Diffstat (limited to '')
-rw-r--r--Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 1a7f686..74a13ff 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -290,6 +290,27 @@ RUN echo MATRIX=${MATRIX} > /tmp/status \
# ---
+FROM bitlbee-build as signald-build
+
+ARG SIGNAL=1
+ARG SIGNAL_VERSION=af18341
+
+RUN echo SIGNAL=${SIGNAL} > /tmp/status \
+ && if [ ${SIGNAL} -eq 1 ]; \
+ then cd /tmp \
+ && git clone -n https://github.com/hoehermann/libpurple-signald \
+ && cd libpurple-signald \
+ && git checkout ${SIGNAL_VERSION} \
+ && make \
+ && make install \
+ && strip /usr/lib/purple-2/libsignald.so; \
+ else mkdir -p /usr/lib/purple-2 \
+ && ln -sf /nowhere /usr/lib/purple-2/libsignald.so; \
+ fi
+
+# ---
+
+
FROM alpine:${ALPINE_VERSION} as bitlbee-plugins
COPY --from=bitlbee-build /usr/sbin/bitlbee /tmp/usr/sbin/bitlbee
@@ -346,6 +367,9 @@ COPY --from=matrix-build /usr/local/lib/libolm.so.3.1.4 /tmp/usr/local/lib/libol
COPY --from=matrix-build /usr/lib/purple-2/libmatrix.so /tmp/usr/lib/purple-2/libmatrix.so
COPY --from=matrix-build /tmp/status /tmp/plugin/matrix
+COPY --from=signald-build /usr/lib/purple-2/libsignald.so /tmp/usr/lib/purple-2/libsignald.so
+COPY --from=signald-build /tmp/status /tmp/plugin/signald
+
RUN apk add --update --no-cache findutils \
&& find /tmp/ -type f -empty -delete \
&& find /tmp/ -type d -empty -delete \