Minor clean up

This commit is contained in:
hwdsl2
2017-12-06 05:25:36 -06:00
parent 2e9a0e286d
commit 38deb86170
+2 -2
View File
@@ -1,7 +1,7 @@
FROM debian:stretch
LABEL maintainer="Lin Song <linsongui@gmail.com>"
ENV REFRESHED_AT 2017-10-26
ENV REFRESHED_AT 2017-12-06
ENV SWAN_VER 3.22
WORKDIR /opt/src
@@ -21,7 +21,7 @@ RUN apt-get -yqq update \
&& tar xzf "libreswan.tar.gz" \
&& rm -f "libreswan.tar.gz" \
&& cd "libreswan-${SWAN_VER}" \
&& sed -i '/^#define LSWBUF_CANARY/s/-2$/((char) -2)/' include/lswlog.h \
&& { [ "$SWAN_VER" = "3.22" ] && sed -i '/^#define LSWBUF_CANARY/s/-2$/((char) -2)/' include/lswlog.h || true; } \
&& printf 'WERROR_CFLAGS =\nUSE_DNSSEC = false\nUSE_SYSTEMD_WATCHDOG = false\n' > Makefile.inc.local \
&& make -s base \
&& make -s install-base \