Modified: trunk/dports/devel/libssh/Portfile (74681 => 74682)
--- trunk/dports/devel/libssh/Portfile 2010-12-28 05:58:00 UTC (rev 74681)
+++ trunk/dports/devel/libssh/Portfile 2010-12-28 05:58:11 UTC (rev 74682)
@@ -2,14 +2,15 @@
# $Id$
PortSystem 1.0
+PortGroup cmake 1.0
name libssh
epoch 1
-version 0.2
-revision 1
+version 0.4.6
+set major [join [lrange [split ${version} .] 0 1] .]
categories devel security net
platforms darwin
-maintainers ryandesign openmaintainer
+maintainers snc openmaintainer
license LGPLv2.1
description an SSH library
@@ -18,13 +19,23 @@
programmers needing a working SSH implementation \
by the mean of a library.
-homepage http://0xbadc0de.be/wiki/libssh:libssh
-master_sites http://www.0xbadc0de.be/libssh
-extract.suffix .tgz
+homepage http://www.libssh.org
+master_sites http://www.libssh.org/files/${major}
-checksums md5 8a76c03579a3e27046e6bafe88ffd171 \
- sha1 bde7652da5a0f79127c3d5e4b9383d3a07619344 \
- rmd160 29b5d109f7962daa1f5e38197ff75b9603a39873
+checksums md5 9efdc8911fdb150fb16500c2fbe4ef2e \
+ sha1 52e7e68590fbcd835bc4a2eceb51e672641efb69
depends_lib port:openssl \
port:zlib
+
+post-extract { file mkdir ${workpath}/build }
+
+patchfiles patch-libssh-socket.c.diff
+
+# standard post-arg, where to find the primary CMakeLists.txt file.
+configure.post_args ../${distname}
+configure.dir ${workpath}/build
+build.dir ${workpath}/build
+
+livecheck.url ${homepage}
+livecheck.regex ${name} (\\d+\\.\\d+(\\.\\d+)+)
Added: trunk/dports/devel/libssh/files/patch-libssh-socket.c.diff (0 => 74682)
--- trunk/dports/devel/libssh/files/patch-libssh-socket.c.diff (rev 0)
+++ trunk/dports/devel/libssh/files/patch-libssh-socket.c.diff 2010-12-28 05:58:11 UTC (rev 74682)
@@ -0,0 +1,12 @@
+--- libssh/socket.c.orig 2010-12-28 00:45:04.000000000 -0500
++++ libssh/socket.c 2010-12-28 00:45:21.000000000 -0500
+@@ -33,7 +33,8 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+-extern char **environ;
++#include <crt_externs.h>
++#define environ (*_NSGetEnviron())
+ #endif
+ #include "libssh/priv.h"
+ #include "libssh/socket.h"