shadowsocks-libev 2.3.2

Closes Homebrew/homebrew#43869.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Daniel 2015-09-14 15:32:20 +08:00 committed by Alex Dunn
parent 8ea2d9dc30
commit 8a844f6fb3

View file

@ -1,8 +1,8 @@
class ShadowsocksLibev < Formula
desc "Libev port of shadowsocks"
homepage "https://github.com/shadowsocks/shadowsocks-libev"
url "https://github.com/shadowsocks/shadowsocks-libev/archive/v2.3.1.tar.gz"
sha256 "34d6f62feefb239ca443abae4b0878a89557de064c8405b170d0df509150f33c"
url "https://github.com/shadowsocks/shadowsocks-libev/archive/v2.3.2.tar.gz"
sha256 "789b42e45efce85bdc983574282cab0092f32443630d7fedda667cfbf85e5b40"
head "https://github.com/shadowsocks/shadowsocks-libev.git"
bottle do
@ -20,8 +20,7 @@ class ShadowsocksLibev < Formula
system "./configure", *args
system "make"
bin.install "src/ss-local"
bin.install "src/ss-tunnel"
bin.install "src/ss-local", "src/ss-tunnel", "src/ss-server", "src/ss-manager"
(buildpath/"shadowsocks-libev.json").write <<-EOS.undent
{
@ -35,8 +34,10 @@ class ShadowsocksLibev < Formula
EOS
etc.install "shadowsocks-libev.json"
inreplace "shadowsocks-libev.8", "/etc/shadowsocks-libev/config.json", "#{etc}/shadowsocks-libev.json"
man8.install "shadowsocks-libev.8"
rm "man/ss-redir.1"
inreplace Dir["man/*"], "/etc/shadowsocks-libev/config.json", "#{etc}/shadowsocks-libev.json"
man8.install Dir["man/*.8"]
man1.install Dir["man/*.1"]
end
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/shadowsocks-libev/bin/ss-local -c #{HOMEBREW_PREFIX}/etc/shadowsocks-libev.json"