Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newnode 2.1.5 (new formula) #162683

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions Formula/n/newnode-helper.rb
@@ -0,0 +1,39 @@
class NewnodeHelper < Formula
desc "Web proxy that uses a distributed p2p network to circumvent censorship"
homepage "https://www.newnode.com/newnode-vpn"
url "https://github.com/clostra/newnode.git",
tag: "2.1.4", revision: "c42a04ded55cfdff857878f4d9234950e530bb00"
license "GPL-2.0-only"

depends_on xcode: ["9.3", :build]
depends_on "automake"
depends_on "coreutils"
depends_on "libtool"
depends_on "mbedtls@2"
theoden8 marked this conversation as resolved.
Show resolved Hide resolved
depends_on "wget"
theoden8 marked this conversation as resolved.
Show resolved Hide resolved

def install

Check failure on line 15 in Formula/n/newnode-helper.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --build-bottle newnode-helper` failed on Linux!

/usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/NewNode.xcframework/. /tmp/newnode-helper-20240214-8348-3j7wuq/NewNode.xcframework /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/constants.h /tmp/newnode-helper-20240214-8348-3j7wuq/constants.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/dht.c /tmp/newnode-helper-20240214-8348-3j7wuq/dht.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/client.c /tmp/newnode-helper-20240214-8348-3j7wuq/client.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/sha1.c /tmp/newnode-helper-20240214-8348-3j7wuq/sha1.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/lsd.c /tmp/newnode-helper-20240214-8348-3j7wuq/lsd.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/bufferevent_utp.h /tmp/newnode-helper-20240214-8348-3j7wuq/bufferevent_utp.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/client_main.c /tmp/newnode-helper-20240214-8348-3j7wuq/client_main.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/.codecov.yml /tmp/newnode-helper-20240214-8348-3j7wuq/.codecov.yml /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/dns_prefetch.h /tmp/newnode-helper-20240214-8348-3j7wuq/dns_prefetch.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/libutp/. /tmp/newnode-helper-20240214-8348-3j7wuq/libutp /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/icmp_handler.h /tmp/newnode-helper-20240214-8348-3j7wuq/icmp_handler.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/timer.h /tmp/newnode-helper-20240214-8348-3j7wuq/timer.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/timer.c /tmp/newnode-helper-20240214-8348-3j7wuq/timer.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/obfoo.h /tmp/newnode-helper-20240214-8348-3j7wuq/obfoo.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/icmp_handler.c /tmp/newnode-helper-20240214-8348-3j7wuq/icmp_handler.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/injector.c /tmp/newnode-helper-20240214-8348-3j7wuq/injector.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/merkle_tree.c /tmp/newnode-helper-20240214-8348-3j7wuq/merkle_tree.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/NewNode.podspec /tmp/newnode-helper-20240214-8348-3j7wuq/NewNode.podspec /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/clean.sh /tmp/newnode-helper-20240214-8348-3j7wuq/clean.sh /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/thread.h /tmp/newnode-helper-20240214-8348-3j7wuq/thread.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/stall_detector.c /tmp/newnode-helper-20240214-8348-3j7wuq/stall_detector.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/build.apple.sh /tmp/newnode-helper-20240214-8348-3j7wuq/build.apple.sh /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/.github/. /tmp/newnode-helper-20240214-8348-3j7wuq/.github /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/g_https_cb.h /tmp/newnode-helper-20240214-8348-3j7wuq/g_https_cb.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/.clang-format /tmp/newnode-helper-20240214-8348-3j7wuq/.clang-format /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/android_export_list /tmp/newnode-helper-20240214-8348-3j7wuq/android_export_list /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/newnode.h /tmp/newnode-helper-20240214-8348-3j7wuq/newnode.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/network.c /tmp/newnode-helper-20240214-8348-3j7wuq/network.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/LICENSE /tmp/newnode-helper-20240214-8348-3j7wuq/LICENSE /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/libunwind-ndk/. /tmp/newnode-helper-20240214-8348-3j7wuq/libunwind-ndk /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/libevent/. /tmp/newnode-helper-20240214-8348-3j7wuq/libevent /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/.git/. /tmp/newnode-helper-20240214-8348-3j7wuq/.git /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/d2d.c /tmp/newnode-helper-20240214-8348-3j7wuq/d2d.c /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/test.sh /tmp/newnode-helper-20240214-8348-3j7wuq/test.sh /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/sha1.h /tmp/newnode-helper-20240214-8348-3j7wuq/sha1.h /usr/bin/env cp -pR /tmp/d20240214-8348-zqu2oi/obfoo.c /tmp/newnode-helper-20240214-8348-3j7wuq/obfoo.c ==>

Check failure on line 15 in Formula/n/newnode-helper.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --build-bottle newnode-helper` failed on macOS Sonoma (14) on Apple Silicon!

/usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/libsodium/. /private/tmp/newnode-helper-20240214-5930-d68jdj/libsodium /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/.clang-format /private/tmp/newnode-helper-20240214-5930-d68jdj/.clang-format /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/.github/. /private/tmp/newnode-helper-20240214-5930-d68jdj/.github /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/bugsnag/. /private/tmp/newnode-helper-20240214-5930-d68jdj/bugsnag /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/Package.swift /private/tmp/newnode-helper-20240214-5930-d68jdj/Package.swift /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/bev_splice.c /private/tmp/newnode-helper-20240214-5930-d68jdj/bev_splice.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/libutp/. /private/tmp/newnode-helper-20240214-5930-d68jdj/libutp /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/https_wget.c /private/tmp/newnode-helper-20240214-5930-d68jdj/https_wget.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/http.c /private/tmp/newnode-helper-20240214-5930-d68jdj/http.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/clean.sh /private/tmp/newnode-helper-20240214-5930-d68jdj/clean.sh /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/sha1.h /private/tmp/newnode-helper-20240214-5930-d68jdj/sha1.h /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/libevent/. /private/tmp/newnode-helper-20240214-5930-d68jdj/libevent /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/icmp_handler.c /private/tmp/newnode-helper-20240214-5930-d68jdj/icmp_handler.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/lsd.h /private/tmp/newnode-helper-20240214-5930-d68jdj/lsd.h /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/d2d.c /private/tmp/newnode-helper-20240214-5930-d68jdj/d2d.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/dns_prefetch.h /private/tmp/newnode-helper-20240214-5930-d68jdj/dns_prefetch.h /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/dht.c /private/tmp/newnode-helper-20240214-5930-d68jdj/dht.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/.git/. /private/tmp/newnode-helper-20240214-5930-d68jdj/.git /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/libunwind-ndk/. /private/tmp/newnode-helper-20240214-5930-d68jdj/libunwind-ndk /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/test.sh /private/tmp/newnode-helper-20240214-5930-d68jdj/test.sh /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/hash_table.c /private/tmp/newnode-helper-20240214-5930-d68jdj/hash_table.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/merkle_tree.h /private/tmp/newnode-helper-20240214-5930-d68jdj/merkle_tree.h /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/bufferevent_utp.c /private/tmp/newnode-helper-20240214-5930-d68jdj/bufferevent_utp.c /usr/bin/env cp -pR /private/tmp/d20240214-5930-43oi4i/client_main.c /private/tmp/newnode-helper-20240214-5930-d68jdj/client_main.c ==> git clone --recurse-submodules https://github.com/clostra/newnode.git Cloning into 'newnode'... Submodule 'blocksruntime' (https://github.com/mackyle/blocksruntime.git) registered for path 'blocksruntime' Submodule 'bugsnag-cocoa' (https://github.com/clostra/bugsnag-cocoa) registered for path 'bugsnag-cocoa' Submodule 'dht' (https://github.com/clostra/dht) registered for path 'dht' Submodule 'ios/NewNode/MMWormhole' (https://github.com/mutualmobile/MMWormhole.git) registered for path 'ios/vpn/MMWormhole' Submodule 'libevent' (https://github.com/clostra/libevent) registered for path 'libevent' Submodule 'libsodium' (https://github.com/clostra/libsodium) registered for path 'libsodium' Submodule 'libunwind-ndk' (https://github.com/clostra/libunwind-ndk.git) registered for path 'libunwind-ndk' Submodule 'libutp' (https://github.com/clostra/libutp) registered for path 'libutp' Submodule 'parson' (https://github.com/kgabis/parson) registered for path 'parson' Cloning into '/private/tmp/newnode-helper-20240214-5930-d68jdj/newnode/b

Check failure on line 15 in Formula/n/newnode-helper.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew install --verbose --build-bottle newnode-helper` failed on macOS Monterey (12) on Apple Silicon!

/usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/base64.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/base64.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/libsodium/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/libsodium /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/.clang-format /private/tmp/newnode-helper-20240214-5895-ylt3sb/.clang-format /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/.github/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/.github /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/bugsnag/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/bugsnag /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/Package.swift /private/tmp/newnode-helper-20240214-5895-ylt3sb/Package.swift /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/bev_splice.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/bev_splice.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/libutp/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/libutp /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/https_wget.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/https_wget.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/http.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/http.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/clean.sh /private/tmp/newnode-helper-20240214-5895-ylt3sb/clean.sh /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/sha1.h /private/tmp/newnode-helper-20240214-5895-ylt3sb/sha1.h /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/libevent/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/libevent /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/icmp_handler.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/icmp_handler.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/lsd.h /private/tmp/newnode-helper-20240214-5895-ylt3sb/lsd.h /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/d2d.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/d2d.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/dns_prefetch.h /private/tmp/newnode-helper-20240214-5895-ylt3sb/dns_prefetch.h /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/dht.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/dht.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/.git/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/.git /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/libunwind-ndk/. /private/tmp/newnode-helper-20240214-5895-ylt3sb/libunwind-ndk /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/test.sh /private/tmp/newnode-helper-20240214-5895-ylt3sb/test.sh /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/hash_table.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/hash_table.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/merkle_tree.h /private/tmp/newnode-helper-20240214-5895-ylt3sb/merkle_tree.h /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/bufferevent_utp.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/bufferevent_utp.c /usr/bin/env cp -pR /private/tmp/d20240214-5895-fznomh/client_main.c /private/tmp/newnode-helper-20240214-5895-ylt3sb/client_main.c ==> git clone --recurse-submodules https://github.com/clostra/newnode.git Cloning into 'newnode'... Submodule 'blocksruntime' (https://github.com/mackyle/blocksruntime.git) registered for path 'blocksruntime' Submodule 'bugsnag-cocoa' (https://github.com/clostra/bugsnag-cocoa) registered for path 'bugsnag-cocoa' Submodule 'dht' (https://github.com/clostra/dht) registered for path 'dht' Submodule 'ios/NewNode/MMWormhole' (https://github.com/mutualmobile/MMWormhole.git) registered for path 'ios/vpn/MMWormhole' Submodule 'libevent' (https://github.com/clostra/libevent) registered for path 'libevent' Submodule 'libsodium' (https://github.com/clostra/libsodium) registered for path 'libsodium' Submodule 'libunwind-ndk' (https://github.com/clostra/libunwind-ndk.git) registered for path 'libunwind-ndk' Submodule 'libutp' (https://github.com/clostra/libutp) registered for path 'libutp' Submodule 'parson' (https://githu

Check failure on line 15 in Formula/n/newnode-helper.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --build-bottle newnode-helper` failed on macOS Ventura (13) on Apple Silicon!

/usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/libsodium/. /private/tmp/newnode-helper-20240214-5777-8wvpic/libsodium /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/.clang-format /private/tmp/newnode-helper-20240214-5777-8wvpic/.clang-format /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/.github/. /private/tmp/newnode-helper-20240214-5777-8wvpic/.github /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/bugsnag/. /private/tmp/newnode-helper-20240214-5777-8wvpic/bugsnag /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/Package.swift /private/tmp/newnode-helper-20240214-5777-8wvpic/Package.swift /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/bev_splice.c /private/tmp/newnode-helper-20240214-5777-8wvpic/bev_splice.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/libutp/. /private/tmp/newnode-helper-20240214-5777-8wvpic/libutp /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/https_wget.c /private/tmp/newnode-helper-20240214-5777-8wvpic/https_wget.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/http.c /private/tmp/newnode-helper-20240214-5777-8wvpic/http.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/clean.sh /private/tmp/newnode-helper-20240214-5777-8wvpic/clean.sh /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/sha1.h /private/tmp/newnode-helper-20240214-5777-8wvpic/sha1.h /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/libevent/. /private/tmp/newnode-helper-20240214-5777-8wvpic/libevent /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/icmp_handler.c /private/tmp/newnode-helper-20240214-5777-8wvpic/icmp_handler.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/lsd.h /private/tmp/newnode-helper-20240214-5777-8wvpic/lsd.h /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/d2d.c /private/tmp/newnode-helper-20240214-5777-8wvpic/d2d.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/dns_prefetch.h /private/tmp/newnode-helper-20240214-5777-8wvpic/dns_prefetch.h /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/dht.c /private/tmp/newnode-helper-20240214-5777-8wvpic/dht.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/.git/. /private/tmp/newnode-helper-20240214-5777-8wvpic/.git /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/libunwind-ndk/. /private/tmp/newnode-helper-20240214-5777-8wvpic/libunwind-ndk /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/test.sh /private/tmp/newnode-helper-20240214-5777-8wvpic/test.sh /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/hash_table.c /private/tmp/newnode-helper-20240214-5777-8wvpic/hash_table.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/merkle_tree.h /private/tmp/newnode-helper-20240214-5777-8wvpic/merkle_tree.h /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/bufferevent_utp.c /private/tmp/newnode-helper-20240214-5777-8wvpic/bufferevent_utp.c /usr/bin/env cp -pR /private/tmp/d20240214-5777-uchc2n/client_main.c /private/tmp/newnode-helper-20240214-5777-8wvpic/client_main.c ==> git clone --recurse-submodules https://github.com/clostra/newnode.git Cloning into 'newnode'... Submodule 'blocksruntime' (https://github.com/mackyle/blocksruntime.git) registered for path 'blocksruntime' Submodule 'bugsnag-cocoa' (https://github.com/clostra/bugsnag-cocoa) registered for path 'bugsnag-cocoa' Submodule 'dht' (https://github.com/clostra/dht) registered for path 'dht' Submodule 'ios/NewNode/MMWormhole' (https://github.com/mutualmobile/MMWormhole.git) registered for path 'ios/vpn/MMWormhole' Submodule 'libevent' (https://github.com/clostra/libevent) registered for path 'libevent' Submodule 'libsodium' (https://github.com/clostra/libsodium) registered for path 'libsodium' Submodule 'libunwind-ndk' (https://github.com/clostra/libunwind-ndk.git) registered for path 'libunwind-ndk' Submodule 'libutp' (https://github.com/clostra/libutp) registered for path 'libutp' Submodule 'parson' (https://github.com/kgabis/parson) registered for path 'parson' Cloning into '/private/tmp/newnode-helper-20240214-5777-8wvpic/newnode/b
system "git", "clone", "--recurse-submodules", "https://github.com/clostra/newnode.git"
theoden8 marked this conversation as resolved.
Show resolved Hide resolved
system "cd newnode && ./build.sh"
bin.install "newnode/client" => "newnode-helper"
path = (var/"newnode-helper")
path.mkpath
path.chmod 0775
theoden8 marked this conversation as resolved.
Show resolved Hide resolved
theoden8 marked this conversation as resolved.
Show resolved Hide resolved
end

service do
run [opt_bin/"newnode-helper", "-p", "8006", "-v"]
keep_alive true
working_dir var/"newnode-helper"
log_path var/"log/newnode-helper.log"
error_log_path var/"log/newnode-helper-error.log"
end

test do
# use wget to try to download a file via the newnode's HTTP proxy
# if that works, newnode vpn is working
ENV["https_proxy"] = "http://localhost:8006"
sleep 5
system "wget", "https://brew.sh"
end
end