homebrew-core/Formula/proxytunnel.rb

45 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Proxytunnel < Formula
homepage 'http://proxytunnel.sourceforge.net/'
url 'https://downloads.sourceforge.net/proxytunnel/proxytunnel-1.9.0.tgz'
sha1 '51d816125bb9e9bca267d35f861000eb0fa9d80b'
# Remove conflicting strlcpy/strlcat declarations
2014-03-20 19:05:17 +00:00
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);