aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/proxytunnel.rb
blob: bf28e2ba93a876296d34ef936d1f384d94758ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'formula'

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
  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);