summaryrefslogtreecommitdiff
path: root/homebrew/shadowsockslibev
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/shadowsockslibev
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/shadowsockslibev')
-rw-r--r--homebrew/shadowsockslibev/.beer73
-rw-r--r--homebrew/shadowsockslibev/.make.sh-auto12
-rw-r--r--homebrew/shadowsockslibev/_metadata/description1
-rw-r--r--homebrew/shadowsockslibev/_metadata/homepage1
-rw-r--r--homebrew/shadowsockslibev/_metadata/name1
-rw-r--r--homebrew/shadowsockslibev/_metadata/version1
-rwxr-xr-xhomebrew/shadowsockslibev/download.sh1
7 files changed, 90 insertions, 0 deletions
diff --git a/homebrew/shadowsockslibev/.beer b/homebrew/shadowsockslibev/.beer
new file mode 100644
index 000000000..80a7de9e7
--- /dev/null
+++ b/homebrew/shadowsockslibev/.beer
@@ -0,0 +1,73 @@
+{
+ "name": "ShadowsocksLibev",
+ "description": "Libev port of shadowsocks",
+ "url": "https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.2.5/shadowsocks-libev-3.2.5.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/shadowsocks/shadowsocks-libev",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ },
+ {
+ "depend": "asciidoc",
+ "build-depend": true
+ },
+ {
+ "depend": "xmlto",
+ "build-depend": true
+ },
+ {
+ "depend": "c-ares",
+ "build-depend": false
+ },
+ {
+ "depend": "libev",
+ "build-depend": false
+ },
+ {
+ "depend": "libsodium",
+ "build-depend": false
+ },
+ {
+ "depend": "mbedtls",
+ "build-depend": false
+ },
+ {
+ "depend": "pcre",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV[\"XML_CATALOG_FILES\"] = etc/\"xml/catalog\"",
+ "system \"./autogen.sh\" if build.head?",
+ "system \"./configure\", \"--prefix=#{prefix}\"",
+ "system \"make\"",
+ "(buildpath/\"shadowsocks-libev.json\").write <<~EOS",
+ "{",
+ "\"server\":\"localhost\",",
+ "\"server_port\":8388,",
+ "\"local_port\":1080,",
+ "\"password\":\"barfoo!\",",
+ "\"timeout\":600,",
+ "\"method\":null",
+ "}",
+ "EOS",
+ "etc.install \"shadowsocks-libev.json\"",
+ "inreplace Dir[\"man/*\"], \"/etc/shadowsocks-libev/config.json\", \"#{etc}/shadowsocks-libev.json\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.2.5",
+ "file": "shadowsocks-libev.rb"
+} \ No newline at end of file
diff --git a/homebrew/shadowsockslibev/.make.sh-auto b/homebrew/shadowsockslibev/.make.sh-auto
new file mode 100644
index 000000000..0ab514ef9
--- /dev/null
+++ b/homebrew/shadowsockslibev/.make.sh-auto
@@ -0,0 +1,12 @@
+pkg:setup
+ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
+pkg:configure
+make
+(buildpath/"shadowsocks-libev.json").write <<~EOS
+{
+"server":"localhost", "server_port":8388, "local_port":1080, "password":"barfoo!", "timeout":600, "method":null
+}
+EOS
+etc.install "shadowsocks-libev.json"
+inreplace Dir["man/*"], "/etc/shadowsocks-libev/config.json", "#{etc}/shadowsocks-libev.json"
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/shadowsockslibev/_metadata/description b/homebrew/shadowsockslibev/_metadata/description
new file mode 100644
index 000000000..dbf3c0d64
--- /dev/null
+++ b/homebrew/shadowsockslibev/_metadata/description
@@ -0,0 +1 @@
+Libev port of shadowsocks
diff --git a/homebrew/shadowsockslibev/_metadata/homepage b/homebrew/shadowsockslibev/_metadata/homepage
new file mode 100644
index 000000000..b8539f408
--- /dev/null
+++ b/homebrew/shadowsockslibev/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/shadowsocks/shadowsocks-libev
diff --git a/homebrew/shadowsockslibev/_metadata/name b/homebrew/shadowsockslibev/_metadata/name
new file mode 100644
index 000000000..5bb3f1e43
--- /dev/null
+++ b/homebrew/shadowsockslibev/_metadata/name
@@ -0,0 +1 @@
+ShadowsocksLibev
diff --git a/homebrew/shadowsockslibev/_metadata/version b/homebrew/shadowsockslibev/_metadata/version
new file mode 100644
index 000000000..5ae69bd5f
--- /dev/null
+++ b/homebrew/shadowsockslibev/_metadata/version
@@ -0,0 +1 @@
+3.2.5
diff --git a/homebrew/shadowsockslibev/download.sh b/homebrew/shadowsockslibev/download.sh
new file mode 100755
index 000000000..5e2b65229
--- /dev/null
+++ b/homebrew/shadowsockslibev/download.sh
@@ -0,0 +1 @@
+wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.2.5/shadowsocks-libev-3.2.5.tar.gz \ No newline at end of file