peervpn: migrate to boneyard

due to tuntap requirement
This commit is contained in:
ilovezfs 2016-07-19 01:23:19 -07:00
parent aabd27e0d6
commit eeacd3e606
2 changed files with 1 additions and 57 deletions

View file

@ -1,57 +0,0 @@
class Peervpn < Formula
desc "Peer-to-peer VPN"
homepage "https://peervpn.net/"
url "https://peervpn.net/files/peervpn-0-041.tar.gz"
version "0.041"
sha256 "94a7b649a973c1081d3bd9499bd7410b00b2afc5b4fd4341b1ccf2ce13ad8f52"
bottle do
cellar :any
revision 2
sha256 "d8929fda3ec47bcf8690b5a4f5d8195526e67026543280015c3a51e050da68e6" => :mavericks
end
depends_on "openssl"
depends_on :tuntap
patch :DATA if MacOS.version == :snow_leopard
def install
system "make"
bin.install "peervpn"
etc.install "peervpn.conf"
end
def caveats; <<-EOS.undent
To configure PeerVPN, edit:
#{etc}/peervpn.conf
EOS
end
test do
system "#{bin}/peervpn"
end
end
__END__
diff --git a/platform/io.c b/platform/io.c
index 209666a..0a6c2cf 100644
--- a/platform/io.c
+++ b/platform/io.c
@@ -24,6 +24,16 @@
#if defined(__FreeBSD__)
#define IO_BSD
#elif defined(__APPLE__)
+size_t strnlen(const char *s, size_t maxlen)
+{
+ size_t len;
+
+ for (len = 0; len < maxlen; len++, s++) {
+ if (!*s)
+ break;
+ }
+ return (len);
+}
#define IO_BSD
#define IO_USE_SELECT
#elif defined(WIN32)

View file

@ -193,6 +193,7 @@
"pdfjam": "homebrew/tex",
"pdftoipe": "homebrew/head-only",
"pebble-sdk": "pebble/pebble-sdk",
"peervpn": "homebrew/boneyard",
"pgplot": "homebrew/x11",
"phash": "homebrew/boneyard",
"pixie": "homebrew/x11",