> of its deficiency. That just leaves monotone left and someone had posted an
> update. You need something newer than 1.0 though.

afaik, there is no devel/monotone release after 1.0

found some botan configure errors for monotone 1.0, the update can come later 
from interested porters.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/monotone/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    11 Mar 2013 10:50:11 -0000      1.7
+++ Makefile    14 Mar 2013 20:13:44 -0000
@@ -17,7 +17,7 @@ WANTLIB += c m stdc++ z
 MASTER_SITES=  ${HOMEPAGE}downloads/${VERSION}/
 
 MODULES=       devel/gettext
-BUILD_DEPENDS= devel/boost
+BUILD_DEPENDS= devel/boost>=1.53.0
 
 USE_GMAKE=     Yes
 CONFIGURE_STYLE=gnu
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/monotone/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    3 Apr 2008 07:47:45 -0000       1.3
+++ distinfo    14 Mar 2013 20:13:44 -0000
@@ -1,5 +1,2 @@
-MD5 (monotone-0.39.tar.gz) = UiyQyZ4Yo1wx49+l+EmQNA==
-RMD160 (monotone-0.39.tar.gz) = 1VnDGOGPgBUToXCTb7VrbhrEEjU=
-SHA1 (monotone-0.39.tar.gz) = s0x+JYcd3/HjDRW3M8HzKD7Bbek=
 SHA256 (monotone-0.39.tar.gz) = d6Po7CmlXHOltgDQlUCCARgAAmVrRqF10jVPdoN0tOw=
 SIZE (monotone-0.39.tar.gz) = 5332200
Index: patches/patch-keys_cc
===================================================================
RCS file: patches/patch-keys_cc
diff -N patches/patch-keys_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-keys_cc       14 Mar 2013 20:13:44 -0000
@@ -0,0 +1,63 @@
+$OpenBSD$
+
+patch for boost 1.53.0 from 
+http://lists.nongnu.org/archive/html/monotone-devel/2013-03/msg00000.html
+which further references the actual patch at
+http://alt.linux.kiev.ua/ru/srpm/Sisyphus/monotone/patches/0
+
+--- keys.cc.orig       Thu Mar 14 14:50:41 2013
++++ keys.cc    Thu Mar 14 14:51:53 2013
+@@ -44,7 +44,7 @@ using std::vector;
+ 
+ using boost::scoped_ptr;
+ using boost::shared_ptr;
+-using boost::shared_dynamic_cast;
++using boost::dynamic_pointer_cast;
+ 
+ using Botan::byte;
+ using Botan::get_cipher;
+@@ -263,7 +263,7 @@ get_private_key(lua_hooks & lua,
+   if (pkcs8_key)
+     {
+       shared_ptr<RSA_PrivateKey> priv_key;
+-      priv_key = shared_dynamic_cast<RSA_PrivateKey>(pkcs8_key);
++      priv_key = dynamic_pointer_cast<RSA_PrivateKey>(pkcs8_key);
+       if (!priv_key)
+         throw informative_failure("Failed to get RSA signing key");
+ 
+@@ -318,7 +318,7 @@ migrate_private_key(app_state & app,
+           continue;
+         }
+ 
+-      priv_key = shared_dynamic_cast<RSA_PrivateKey>(pkcs8_key);
++      priv_key = dynamic_pointer_cast<RSA_PrivateKey>(pkcs8_key);
+       if (!priv_key)
+           throw informative_failure("Failed to get old RSA key");
+     }
+@@ -404,7 +404,7 @@ make_signature(app_state & app,           // to hook f
+         L(FL("make_signature: building %d-byte pub key") % pub_block.size());
+         shared_ptr<X509_PublicKey> x509_key =
+           shared_ptr<X509_PublicKey>(Botan::X509::load_key(pub_block));
+-        shared_ptr<RSA_PublicKey> pub_key = 
shared_dynamic_cast<RSA_PublicKey>(x509_key);
++        shared_ptr<RSA_PublicKey> pub_key = 
dynamic_pointer_cast<RSA_PublicKey>(x509_key);
+ 
+         if (!pub_key)
+           throw informative_failure("Failed to get monotone RSA public key");
+@@ -524,7 +524,7 @@ check_signature(app_state &app,
+       L(FL("building verifier for %d-byte pub key") % pub_block.size());
+       shared_ptr<X509_PublicKey> x509_key =
+           shared_ptr<X509_PublicKey>(Botan::X509::load_key(pub_block));
+-      pub_key = shared_dynamic_cast<RSA_PublicKey>(x509_key);
++      pub_key = dynamic_pointer_cast<RSA_PublicKey>(x509_key);
+       if (!pub_key)
+           throw informative_failure("Failed to get RSA verifying key");
+ 
+@@ -565,7 +565,7 @@ void encrypt_rsa(lua_hooks & lua,
+   pub_block.set(reinterpret_cast<Botan::byte const *>(pub().data()), 
pub().size());
+ 
+   shared_ptr<X509_PublicKey> x509_key = 
shared_ptr<X509_PublicKey>(Botan::X509::load_key(pub_block));
+-  shared_ptr<RSA_PublicKey> pub_key = 
shared_dynamic_cast<RSA_PublicKey>(x509_key);
++  shared_ptr<RSA_PublicKey> pub_key = 
dynamic_pointer_cast<RSA_PublicKey>(x509_key);
+   if (!pub_key)
+     throw informative_failure("Failed to get RSA encrypting key");
+ 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/monotone/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   27 May 2007 10:43:48 -0000      1.2
+++ pkg/PLIST   14 Mar 2013 20:13:44 -0000
@@ -1,5 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.2 2007/05/27 10:43:48 alek Exp $
-bin/mtn
+@bin bin/mtn
 @info info/monotone.info
 share/doc/monotone/
 share/doc/monotone/monotone.html

Reply via email to