diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2020-03-08 18:57:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2020-03-08 18:57:15 +0000 |
commit | 0bf1261ad89fc85c82b01d5b0e60974c6abe12b5 (patch) | |
tree | ee27e0048e793b0147c2d34077feb77da631c898 /testing/websocketd/make.patch | |
parent | 9785f80dfe40631e71fea86b1185aa0987fc4b87 (diff) | |
download | aports-0bf1261ad89fc85c82b01d5b0e60974c6abe12b5.tar.bz2 aports-0bf1261ad89fc85c82b01d5b0e60974c6abe12b5.tar.xz |
testing/websocketd: new aport
Diffstat (limited to 'testing/websocketd/make.patch')
-rw-r--r-- | testing/websocketd/make.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/websocketd/make.patch b/testing/websocketd/make.patch new file mode 100644 index 0000000000..678afdb27c --- /dev/null +++ b/testing/websocketd/make.patch @@ -0,0 +1,33 @@ +diff --git a/Makefile b/Makefile +index 9871b7d..7091128 100644 +--- a/Makefile ++++ b/Makefile +@@ -10,13 +10,7 @@ + # To manually invoke the locally installed Go, use ./go + + # Go installation config. +-GO_VER=1.11.5 +-SYSTEM_NAME:=$(shell uname -s | tr '[:upper:]' '[:lower:]') +-SYSTEM_ARCH:=$(shell uname -m) +-GO_ARCH:=$(if $(filter x86_64, $(SYSTEM_ARCH)),amd64,386) +-GO_VERSION:=$(GO_VER).$(SYSTEM_NAME)-$(GO_ARCH) +-GO_DOWNLOAD_URL:=https://dl.google.com/go/go$(GO_VERSION).tar.gz +-GO_DIR:=go-$(GO_VER) ++GO_DIR:=/usr + + # Build websocketd binary + websocketd: $(GO_DIR)/bin/go $(wildcard *.go) $(wildcard libwebsocketd/*.go) +@@ -24,13 +18,6 @@ websocketd: $(GO_DIR)/bin/go $(wildcard *.go) $(wildcard libwebsocketd/*.go) + + localgo: $(GO_DIR)/bin/go + +-# Download and unpack Go distribution. +-$(GO_DIR)/bin/go: +- mkdir -p $(GO_DIR) +- rm -f $@ +- @echo Downloading and unpacking Go $(GO_VERSION) to $(GO_DIR) +- curl -s $(GO_DOWNLOAD_URL) | tar xf - --strip-components=1 -C $(GO_DIR) +- + # Clean up binary + clean: + rm -rf websocketd |