From 8a844f6fb3a3972e6ffbdc4ac52836af209bc0b5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 14 Sep 2015 15:32:20 +0800 Subject: [PATCH] shadowsocks-libev 2.3.2 Closes Homebrew/homebrew#43869. Signed-off-by: Alex Dunn --- Formula/shadowsocks-libev.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Formula/shadowsocks-libev.rb b/Formula/shadowsocks-libev.rb index 72539a0a2f..fe4ebb0484 100644 --- a/Formula/shadowsocks-libev.rb +++ b/Formula/shadowsocks-libev.rb @@ -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"