Browse Source

Create static_dnsmasq.sh

MoeClub 5 years ago
parent
commit
5d6d171b5c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      AnyConnect/build/static_dnsmasq.sh

+ 12 - 0
AnyConnect/build/static_dnsmasq.sh

@@ -0,0 +1,12 @@
+#!/bin/bash
+
+cd /tmp
+
+wget --no-check-certificate -4 -O dnsmasq.tar.xz http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.82.tar.xz
+[ -d dnsmasq ] && rm -rf dnsmasq
+mkdir -p dnsmasq; tar -xJ -f dnsmasq.tar.xz -C dnsmasq --strip-components=1;
+cd dnsmasq
+
+make CFLAGS="-I. -Wall -W -fPIC -O2" LDFLAGS="-L. -static -s"
+make PREFIX="/usr" DESTDIR=.. install
+