<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[116078] users/raimue/ports/sysutils</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/116078">116078</a></dd>
<dt>Author</dt> <dd>raimue@macports.org</dd>
<dt>Date</dt> <dd>2014-01-17 08:56:57 -0800 (Fri, 17 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>sysutils/ori:
New port</pre>

<h3>Added Paths</h3>
<ul>
<li>users/raimue/ports/sysutils/ori/</li>
<li><a href="#usersraimueportssysutilsoriPortfile">users/raimue/ports/sysutils/ori/Portfile</a></li>
<li>users/raimue/ports/sysutils/ori/files/</li>
<li><a href="#usersraimueportssysutilsorifilespatchcxxtr1diff">users/raimue/ports/sysutils/ori/files/patch-cxx-tr1.diff</a></li>
<li><a href="#usersraimueportssysutilsorifilespatchdestdirdiff">users/raimue/ports/sysutils/ori/files/patch-destdir.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="usersraimueportssysutilsoriPortfile"></a>
<div class="addfile"><h4>Added: users/raimue/ports/sysutils/ori/Portfile (0 => 116078)</h4>
<pre class="diff"><span>
<span class="info">--- users/raimue/ports/sysutils/ori/Portfile                                (rev 0)
+++ users/raimue/ports/sysutils/ori/Portfile        2014-01-17 16:56:57 UTC (rev 116078)
</span><span class="lines">@@ -0,0 +1,77 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                ori
+version             0.8.0
+categories          sysutils
+platforms           darwin
+maintainers         raimue
+license             ISC Permissive
+
+description         A secure distributed file system
+
+long_description \
+    Ori is a distributed file system built for offline operation and empowers \
+    the user with control over synchronization operations and conflict \
+    resolution. It provides history through light weight snapshots and allow \
+    users to verify the history has not been tampered with. Through the use of \
+    replication instances can be resilient and recover damaged data from other \
+    nodes.
+
+homepage            http://ori.scs.stanford.edu/
+master_sites        https://bitbucket.org/orifs/ori/downloads/
+use_xz yes
+
+checksums           rmd160  9861edad04ab6df399525256df97862234acd507 \
+                    sha256  0589db3480e733dbeba2a1f6be6553701684b283507437c7500ad069f4b49631
+
+depends_build       port:scons \
+                    path:bin/pkg-config:pkgconfig
+depends_lib         path:lib/pkgconfig/fuse.pc:fuse4x \
+                    port:libevent \
+                    port:boost \
+                    port:openssl
+
+patchfiles          patch-cxx-tr1.diff \
+                    patch-destdir.diff
+patch.pre_args      -p1
+
+use_configure       no
+
+build.cmd           scons
+build.target
+build.args          CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CPPFLAGS=&quot;${configure.cppflags}&quot; \
+                    CFLAGS=&quot;${configure.cflags} [get_canonical_archflags cc]&quot; \
+                    LINKFLAGS=&quot;${configure.ldflags} [get_canonical_archflags ld]&quot; \
+                    PREFIX=${prefix} \
+                    BUILDTYPE=RELEASE \
+                    WITH_FUSE=1 \
+                    WITH_HTTPD=0 \
+                    WITH_ORILOCAL=0 \
+                    WITH_MDNS=0 \
+                    VERBOSE=1
+
+# libs3 is GPLv3, linking would make this non-distributable
+build.args-append   WITH_LIBS3=0
+
+destroot.cmd        scons
+eval destroot.args  ${build.args}
+destroot.destdir    DESTDIR=${destroot}
+
+default_variants    +mdns +httpd
+
+variant mdns description {Include Zeroconf/mDNS support} {
+    build.args-replace WITH_MDNS=0 WITH_MDNS=1
+}
+
+variant httpd description {Include HTTPD server} {
+    build.args-replace WITH_HTTPD=0 WITH_HTTPD=1
+}
+
+variant checkout description {Include Ori checkout support} {
+    build.args-replace WITH_ORILOCAL=0 WITH_ORILOCAL=1
+}
</ins><span class="cx">Property changes on: users/raimue/ports/sysutils/ori/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="usersraimueportssysutilsorifilespatchcxxtr1diff"></a>
<div class="addfile"><h4>Added: users/raimue/ports/sysutils/ori/files/patch-cxx-tr1.diff (0 => 116078)</h4>
<pre class="diff"><span>
<span class="info">--- users/raimue/ports/sysutils/ori/files/patch-cxx-tr1.diff                                (rev 0)
+++ users/raimue/ports/sysutils/ori/files/patch-cxx-tr1.diff        2014-01-17 16:56:57 UTC (rev 116078)
</span><span class="lines">@@ -0,0 +1,116 @@
</span><ins>+Upstream: https://bitbucket.org/orifs/ori/commits/7c5f894d87be1c79447fc7af9381a65307429801
+
+From 7c5f894d87be1c79447fc7af9381a65307429801 Mon Sep 17 00:00:00 2001
+From: Ali Mashtizadeh &lt;mashti@cs.stanford.edu&gt;
+Date: Sat, 28 Sep 2013 18:19:06 -0700
+Subject: [PATCH] Fix FreeBSD 10 and C++11 issues.
+
+---
+ libori/peer.cc       | 2 --
+ libori/remoterepo.cc | 2 --
+ libori/sshrepo.cc    | 2 --
+ libori/treediff.cc   | 2 --
+ libori/udsrepo.cc    | 2 --
+ libori/udsserver.cc  | 2 +-
+ orisync/server.cc    | 2 +-
+ 7 files changed, 2 insertions(+), 12 deletions(-)
+
+diff --git a/libori/peer.cc b/libori/peer.cc
+index b5cd5f6..2a361bd 100644
+--- a/libori/peer.cc
++++ b/libori/peer.cc
+@@ -34,9 +34,7 @@
+ #include &lt;ori/peer.h&gt;

+ using namespace std;
+-#ifdef HAVE_CXXTR1
+ using namespace std::tr1;
+-#endif /* HAVE_CXXTR1 */

+ /********************************************************************
+  *
+diff --git a/libori/remoterepo.cc b/libori/remoterepo.cc
+index ec62a4d..e589ad4 100644
+--- a/libori/remoterepo.cc
++++ b/libori/remoterepo.cc
+@@ -34,9 +34,7 @@
+ #include &lt;ori/remoterepo.h&gt;

+ using namespace std;
+-#ifdef HAVE_CXXTR1
+ using namespace std::tr1;
+-#endif /* HAVE_CXXTR1 */

+ RemoteRepo::RemoteRepo()
+     : r(NULL)
+diff --git a/libori/sshrepo.cc b/libori/sshrepo.cc
+index 76fdba9..7011808 100644
+--- a/libori/sshrepo.cc
++++ b/libori/sshrepo.cc
+@@ -38,9 +38,7 @@
+ #include &lt;ori/sshrepo.h&gt;

+ using namespace std;
+-#ifdef HAVE_CXXTR1
+ using namespace std::tr1;
+-#endif /* HAVE_CXXTR1 */

+ /*
+  * SshRepo
+diff --git a/libori/treediff.cc b/libori/treediff.cc
+index 49a0aab..1d4a63a 100644
+--- a/libori/treediff.cc
++++ b/libori/treediff.cc
+@@ -33,9 +33,7 @@
+ #include &lt;ori/largeblob.h&gt;

+ using namespace std;
+-#ifdef HAVE_CXXTR1
+ using namespace std::tr1;
+-#endif /* HAVE_CXXTR1 */

+ TreeDiffEntry::TreeDiffEntry()
+     : type(Noop),
+diff --git a/libori/udsrepo.cc b/libori/udsrepo.cc
+index b489bf3..84051c1 100644
+--- a/libori/udsrepo.cc
++++ b/libori/udsrepo.cc
+@@ -34,9 +34,7 @@
+ #include &lt;ori/udsrepo.h&gt;

+ using namespace std;
+-#ifdef HAVE_CXXTR1
+ using namespace std::tr1;
+-#endif /* HAVE_CXXTR1 */

+ /*
+  * UDSRepo
+diff --git a/libori/udsserver.cc b/libori/udsserver.cc
+index ca89da1..0149f92 100644
+--- a/libori/udsserver.cc
++++ b/libori/udsserver.cc
+@@ -58,7 +58,7 @@ UDSServer::UDSServer(LocalRepo *repo)
+     strcpy(addr.sun_path, fuseSock.c_str());
+     unlink(fuseSock.c_str());
+     len = SUN_LEN(&amp;addr);
+-    status = bind(sock, (struct sockaddr *)&amp;addr, len);
++    status = ::bind(sock, (struct sockaddr *)&amp;addr, len);
+     if (status &lt; 0)
+         throw SystemException();

+diff --git a/orisync/server.cc b/orisync/server.cc
+index c538339..0dcdeb3 100644
+--- a/orisync/server.cc
++++ b/orisync/server.cc
+@@ -172,7 +172,7 @@ public:
+         addr.sin_addr.s_addr = htonl(INADDR_ANY);
+         addr.sin_port = htons(ORISYNC_UDPPORT);

+-        status = bind(fd, (struct sockaddr *)&amp;addr, sizeof(addr));
++        status = ::bind(fd, (struct sockaddr *)&amp;addr, sizeof(addr));
+         if (status &lt; 0) {
+             perror(&quot;bind&quot;);
+             close(fd);
+-- 
+1.8.5.2
+
</ins></span></pre></div>
<a id="usersraimueportssysutilsorifilespatchdestdirdiff"></a>
<div class="addfile"><h4>Added: users/raimue/ports/sysutils/ori/files/patch-destdir.diff (0 => 116078)</h4>
<pre class="diff"><span>
<span class="info">--- users/raimue/ports/sysutils/ori/files/patch-destdir.diff                                (rev 0)
+++ users/raimue/ports/sysutils/ori/files/patch-destdir.diff        2014-01-17 16:56:57 UTC (rev 116078)
</span><span class="lines">@@ -0,0 +1,62 @@
</span><ins>+Upstream: https://bitbucket.org/orifs/ori/commits/e7cb65c2ce92380066a35bd390d2019086fbadd9
+
+From e7cb65c2ce92380066a35bd390d2019086fbadd9 Mon Sep 17 00:00:00 2001
+From: Dennis Schridde &lt;devurandom@gmx.net&gt;
+Date: Mon, 6 Jan 2014 15:10:29 +0100
+Subject: [PATCH] Feature: Use DESTDIR for installation, Fixes issue #1
+
+---
+ SConstruct | 27 ++++++++++++++-------------
+ 1 file changed, 14 insertions(+), 13 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 018a32c..c9b6021 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -53,7 +53,8 @@ opts.AddVariables(
+     (&quot;COMPRESSION_ALGO&quot;, &quot;Compression algorithm (LZMA; FASTLZ; SNAPPY; NONE).&quot;,
+         &quot;FASTLZ&quot;),
+     (&quot;CHUNKING_ALGO&quot;, &quot;Chunking algorithm (RK; FIXED).&quot;, &quot;RK&quot;),
+-    (&quot;PREFIX&quot;, &quot;Installation target directory.&quot;, &quot;/usr/local/bin/&quot;)
++    (&quot;PREFIX&quot;, &quot;Installation target directory.&quot;, &quot;/usr/local/bin/&quot;),
++    (&quot;DESTDIR&quot;, &quot;The root directory to install into. Useful mainly for binary package building&quot;, &quot;&quot;),
+ )

+ env = Environment(options = opts,
+@@ -375,21 +376,21 @@ if env[&quot;BUILD_BINARIES&quot;] == &quot;1&quot;:

+ # Install Targets
+ if env[&quot;WITH_FUSE&quot;] == &quot;1&quot;:
+-    env.Install('$PREFIX/bin','build/orifs/orifs')
+-env.Install('$PREFIX/bin','build/ori/ori')
+-env.Install('$PREFIX/bin','build/oridbg/oridbg')
+-env.Install('$PREFIX/bin','build/orisync/orisync')
++    env.Install('$DESTDIR$PREFIX/bin','build/orifs/orifs')
++env.Install('$DESTDIR$PREFIX/bin','build/ori/ori')
++env.Install('$DESTDIR$PREFIX/bin','build/oridbg/oridbg')
++env.Install('$DESTDIR$PREFIX/bin','build/orisync/orisync')
+ if env[&quot;WITH_LIBS3&quot;] == &quot;1&quot;:
+-    env.Install('$PREFIX/bin','build/ori/oris3')
++    env.Install('$DESTDIR$PREFIX/bin','build/ori/oris3')
+ if env[&quot;WITH_HTTPD&quot;] == &quot;1&quot;:
+-    env.Install('$PREFIX/bin','build/ori_httpd/ori_httpd')
++    env.Install('$DESTDIR$PREFIX/bin','build/ori_httpd/ori_httpd')
+ if env[&quot;WITH_ORILOCAL&quot;] == &quot;1&quot;:
+-    env.Install('$PREFIX/bin','build/orilocal/orilocal')
++    env.Install('$DESTDIR$PREFIX/bin','build/orilocal/orilocal')

+-env.Install('$PREFIX/share/man/man1','docs/ori.1')
+-env.Install('$PREFIX/share/man/man1','docs/orifs.1')
+-env.Install('$PREFIX/share/man/man1','docs/orisync.1')
+-env.Install('$PREFIX/share/man/man1','docs/oridbg.1')
++env.Install('$DESTDIR$PREFIX/share/man/man1','docs/ori.1')
++env.Install('$DESTDIR$PREFIX/share/man/man1','docs/orifs.1')
++env.Install('$DESTDIR$PREFIX/share/man/man1','docs/orisync.1')
++env.Install('$DESTDIR$PREFIX/share/man/man1','docs/oridbg.1')

+-env.Alias('install','$PREFIX')
++env.Alias('install','$DESTDIR$PREFIX')

+-- 
+1.8.5.2
+
</ins></span></pre>
</div>
</div>

</body>
</html>