aboutsummaryrefslogtreecommitdiff
path: root/security/pecl-ssh2
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-02 16:53:19 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-02 16:53:19 +0000
commita8c9c86bef44fb419e73fd4bf1e3cc1c4a1eaa99 (patch)
treed8c4a74c42b133645a8afd596e10ed215559b405 /security/pecl-ssh2
parentb9e52b2a42c23cb7ba3972931699a8f22b9fd66e (diff)
downloadports-a8c9c86bef44fb419e73fd4bf1e3cc1c4a1eaa99.tar.gz
ports-a8c9c86bef44fb419e73fd4bf1e3cc1c4a1eaa99.zip
Notes
Diffstat (limited to 'security/pecl-ssh2')
-rw-r--r--security/pecl-ssh2/Makefile15
-rw-r--r--security/pecl-ssh2/distinfo4
-rw-r--r--security/pecl-ssh2/files/patch-config.m453
3 files changed, 10 insertions, 62 deletions
diff --git a/security/pecl-ssh2/Makefile b/security/pecl-ssh2/Makefile
index df13386a5103..4e0f78d538c1 100644
--- a/security/pecl-ssh2/Makefile
+++ b/security/pecl-ssh2/Makefile
@@ -1,12 +1,8 @@
-# New ports collection makefile for: pecl-ssh2
-# Date created: 20050407
-# Whom: Alexander Leidinger <netchild@FreeBSD.org>
-#
+# Created by: Alexander Leidinger <netchild@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= ssh2
-PORTVERSION= 0.11.3
+PORTVERSION= 0.12
CATEGORIES= security pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@@ -25,4 +21,9 @@ LDFLAGS+= -L${LOCALBASE}/lib ${EXTRA_LIBS}
CONFIGURE_ARGS= --with-ssh2
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|\$$SSH2_DIR/lib|\$$SSH2_DIR/\$$PHP_LIBDIR|g' ${WRKSRC}/config.m4
+
+.include <bsd.port.post.mk>
diff --git a/security/pecl-ssh2/distinfo b/security/pecl-ssh2/distinfo
index 0790d97a4669..75b5b2501f93 100644
--- a/security/pecl-ssh2/distinfo
+++ b/security/pecl-ssh2/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ssh2-0.11.3.tgz) = b2518e101a53fd7940e49bb36a9b9559cbbfda946ebe5bb62e220d4ce132bf33
-SIZE (ssh2-0.11.3.tgz) = 23062
+SHA256 (ssh2-0.12.tgz) = 600c82d2393acf3642f19914f06a7afea57ee05cb8c10e8a5510b32188b97f99
+SIZE (ssh2-0.12.tgz) = 26223
diff --git a/security/pecl-ssh2/files/patch-config.m4 b/security/pecl-ssh2/files/patch-config.m4
deleted file mode 100644
index c9a5559c9f25..000000000000
--- a/security/pecl-ssh2/files/patch-config.m4
+++ /dev/null
@@ -1,53 +0,0 @@
---- config.m4 2006-03-15 03:10:23.000000000 +0100
-+++ config.m4.oden 2007-08-07 17:00:07.000000000 +0200
-@@ -31,12 +31,12 @@
-
- PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
- [
-- PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SSH2_DIR/lib, SSH2_SHARED_LIBADD)
-+ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SSH2_DIR/$PHP_LIBDIR, SSH2_SHARED_LIBADD)
- AC_DEFINE(HAVE_SSH2LIB,1,[Have libssh2])
- ],[
- AC_MSG_ERROR([libssh2 version >= 0.4 not found])
- ],[
-- -L$SSH2_DIR/lib -lm
-+ -L$SSH2_DIR/$PHP_LIBDIR -lm
- ])
-
- PHP_CHECK_LIBRARY($LIBNAME,libssh2_channel_forward_listen_ex,
-@@ -45,7 +45,7 @@
- ],[
- AC_MSG_WARN([libssh2 <= 0.4, remote forwarding not enabled])
- ],[
-- -L$SSH2_DIR/lib -lm
-+ -L$SSH2_DIR/$PHP_LIBDIR -lm
- ])
-
- PHP_CHECK_LIBRARY($LIBNAME,libssh2_userauth_hostbased_fromfile_ex,
-@@ -54,7 +54,7 @@
- ],[
- AC_MSG_WARN([libssh2 <= 0.6, hostbased authentication not enabled])
- ],[
-- -L$SSH2_DIR/lib -lm
-+ -L$SSH2_DIR/$PHP_LIBDIR -lm
- ])
-
- PHP_CHECK_LIBRARY($LIBNAME,libssh2_poll,
-@@ -63,7 +63,7 @@
- ],[
- AC_MSG_WARN([libssh2 <= 0.7, poll support not enabled])
- ],[
-- -L$SSH2_DIR/lib -lm
-+ -L$SSH2_DIR/$PHP_LIBDIR -lm
- ])
-
- PHP_CHECK_LIBRARY($LIBNAME,libssh2_publickey_init,
-@@ -72,7 +72,7 @@
- ],[
- AC_MSG_WARN([libssh2 <= 0.11, publickey subsystem support not enabled])
- ],[
-- -L$SSH2_DIR/lib -lm
-+ -L$SSH2_DIR/$PHP_LIBDIR -lm
- ])
-
- PHP_SUBST(SSH2_SHARED_LIBADD)