53 lines
1.6 KiB
Ruby
53 lines
1.6 KiB
Ruby
class Proxytunnel < Formula
|
|
desc "Create TCP tunnels through HTTPS proxies"
|
|
homepage "http://proxytunnel.sourceforge.net/"
|
|
url "https://downloads.sourceforge.net/proxytunnel/proxytunnel-1.9.0.tgz"
|
|
sha256 "2ef5bbf8d81ddf291d71f865c5dab89affcc07c4cb4b3c3f23e1e9462721a6b9"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "6632b143edd3bbe2f8620bec9445e78689193d05279f1bb13766d16168bf871f" => :el_capitan
|
|
sha256 "6764d4c9ce6bd4fcf08e7b8042a93977cb5788d316b54552bc6f49348a032c09" => :yosemite
|
|
sha256 "7a0c91840116c8a6cdc492d671f0426dbd1adcf8b20e1d7259ea3c42a3eb1d6f" => :mavericks
|
|
end
|
|
|
|
depends_on "openssl"
|
|
|
|
# Remove conflicting strlcpy/strlcat declarations
|
|
patch :DATA
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "proxytunnel"
|
|
man1.install "proxytunnel.1"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/Makefile b/Makefile
|
|
index 9e9ac73..8244b55 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -56,8 +56,6 @@ PROGNAME = proxytunnel
|
|
# Remove strlcpy/strlcat on (open)bsd/darwin systems
|
|
OBJ = proxytunnel.o \
|
|
base64.o \
|
|
- strlcpy.o \
|
|
- strlcat.o \
|
|
strzcat.o \
|
|
setproctitle.o \
|
|
io.o \
|
|
diff --git a/proxytunnel.h b/proxytunnel.h
|
|
index b948be0..e63c72a 100644
|
|
--- a/proxytunnel.h
|
|
+++ b/proxytunnel.h
|
|
@@ -32,8 +32,6 @@ void closeall();
|
|
void do_daemon();
|
|
void initsetproctitle(int argc, char *argv[]);
|
|
void setproctitle(const char *fmt, ...);
|
|
-size_t strlcat(char *dst, const char *src, size_t siz);
|
|
-size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
size_t strzcat(char *dst, char *format, ...);
|
|
int main( int argc, char *argv[] );
|
|
char * readpassphrase(const char *, char *, size_t, int);
|