heinzmuell

synology_wireguard_spk_build_fix

May 26th, 2026
3,367
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | Fixit | 0 0
  1. 1. build.sh extrahieren
  2. (sudo) docker run --rm --entrypoint /bin/bash blackvoidclub/synobuild73 -c "cat /source/WireGuard/build.sh" > /local/path/build.sh.fixed
  3.  
  4. 2. change line 27:
  5. from
  6. export LIBMNL_VERSION=$(wget -q 'https://www.netfilter.org/projects/libmnl/files/?C=M;O=D' -O - | grep -oP 'a href="libmnl-\K[0-9.]*' | head -n 1 | sed 's/.\{1\}$//')
  7. to
  8. export LIBMNL_VERSION=$(wget -q 'https://www.netfilter.org/pub/libmnl/?C=M;O=D' -O - | grep -oP 'a href="libmnl-\K[0-9.]*' | head -n 1 | sed 's/.\{1\}$//')
  9.  
  10. 3. create a dockerfile:
  11. /bin/bash:
  12. cat > /local/path/dockerfile.fixed << 'EOF'
  13. FROM blackvoidclub/synobuild73
  14. COPY /local/path/build.sh.fixed /source/WireGuard/build.sh
  15. RUN chmod +x /source/WireGuard/build.sh
  16. EOF
  17.  
  18. 4. build new docker:
  19. (sudo) docker build -f /local/path/dockerfile.fixed -t mycontainer .
  20.  
  21. 5. run new fixed dockerimage:
  22. docker run \
  23. --rm \
  24. --privileged \
  25. --env PACKAGE_ARCH=<yourNASarch> \
  26. --env DSM_VER=7.3 \
  27. -v /volume1/docker/synowirespk73:/result_spk \
  28. mycontainer:latest
  29.  
  30. build WireGuard-<yourNASarch>-1.0.20220627.spk successfully - May'26
  31.  
  32. Thanks to: https://www.blackvoid.club/wireguard-spk-for-your-synology-nas/
Advertisement