Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 12:43:12 -0600
From:      Mark Felder <feld@feld.me>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/176483: [PATCH] security/pecl-ssh2: update to 0.12
Message-ID:  <E1UAlyC-0002MW-Pu@feld.me>
Resent-Message-ID: <201302271850.r1RIo1oR052620@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176483
>Category:       ports
>Synopsis:       [PATCH] security/pecl-ssh2: update to 0.12
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 18:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     feld
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD mwi1.coffeenet.org 9.1-RELEASE FreeBSD 9.1-RELEASE #6 r243808: Mon Dec  3 07:51:34
>Description:
- Update to 0.12
- Update Makefile header
- Replace patch with REINPLACE

Removed file(s):
- files/patch-config.m4

Port maintainer (miwi@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: suffix)
>How-To-Repeat:
>Fix:

--- pecl-ssh2-0.12.patch begins here ---
diff -ruN --exclude=CVS ../pecl-ssh2.orig/Makefile ./Makefile
--- ../pecl-ssh2.orig/Makefile	2012-11-17 00:01:15.000000000 -0600
+++ ./Makefile	2013-02-27 12:37:20.000000000 -0600
@@ -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: ports/security/pecl-ssh2/Makefile,v 1.10 2012/11/17 06:01:15 svnexp Exp $
-#
 
 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 @@
 
 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 -ruN --exclude=CVS ../pecl-ssh2.orig/distinfo ./distinfo
--- ../pecl-ssh2.orig/distinfo	2011-10-23 07:47:46.000000000 -0500
+++ ./distinfo	2013-02-27 11:56:29.000000000 -0600
@@ -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 -ruN --exclude=CVS ../pecl-ssh2.orig/files/patch-config.m4 ./files/patch-config.m4
--- ../pecl-ssh2.orig/files/patch-config.m4	2007-08-12 01:23:01.000000000 -0500
+++ ./files/patch-config.m4	1969-12-31 18:00:00.000000000 -0600
@@ -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)
--- pecl-ssh2-0.12.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1UAlyC-0002MW-Pu>