dsocks: migrate to archive URL

This commit is contained in:
Dominyk Tiller 2016-08-28 17:51:02 +01:00
parent 76776cafd4
commit f5a9024a96
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -1,8 +1,9 @@
class Dsocks < Formula
desc "SOCKS client wrapper for *BSD/OS X"
homepage "https://monkey.org/~dugsong/dsocks/"
url "https://dsocks.googlecode.com/files/dsocks-1.8.tar.gz"
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/dsocks/dsocks-1.8.tar.gz"
sha256 "2b57fb487633f6d8b002f7fe1755480ae864c5e854e88b619329d9f51c980f1d"
head "https://github.com/dugsong/dsocks.git"
bottle do
cellar :any
@ -12,7 +13,8 @@ class Dsocks < Formula
end
def install
system ENV.cc, ENV.cflags, "-shared", "-o", "libdsocks.dylib", "dsocks.c", "atomicio.c", "-lresolv"
system ENV.cc, ENV.cflags, "-shared", "-o", "libdsocks.dylib", "dsocks.c",
"atomicio.c", "-lresolv"
inreplace "dsocks.sh", "/usr/local", HOMEBREW_PREFIX
lib.install "libdsocks.dylib"