2011-02-16 18:03:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Proxytunnel < Formula
|
2011-02-16 18:03:13 +00:00
|
|
|
homepage 'http://proxytunnel.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/proxytunnel/proxytunnel-1.9.0.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '51d816125bb9e9bca267d35f861000eb0fa9d80b'
|
2011-02-16 18:03:13 +00:00
|
|
|
|
2013-12-12 20:00:36 +00:00
|
|
|
# Remove conflicting strlcpy/strlcat declarations
|
2014-03-20 19:05:17 +00:00
|
|
|
patch :DATA
|
2013-11-10 05:22:22 +00:00
|
|
|
|
2013-12-12 20:00:36 +00:00
|
|
|
def install
|
2011-02-16 18:03:13 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "proxytunnel"
|
|
|
|
man1.install "proxytunnel.1"
|
|
|
|
end
|
|
|
|
end
|
2013-12-12 20:00:36 +00:00
|
|
|
|
|
|
|
__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);
|