rpms/php-pecl-ssh2/devel PHP-LICENSE-3.01, NONE, 1.1 import.log, NONE, 1.1 libssh2.diff, NONE, 1.1 php-pecl-ssh2-0.10-README, NONE, 1.1 php-pecl-ssh2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Itamar Reis Peixoto itamarjp at fedoraproject.org
Wed Nov 19 11:44:46 UTC 2008


Author: itamarjp

Update of /cvs/pkgs/rpms/php-pecl-ssh2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17668/devel

Modified Files:
	.cvsignore sources 
Added Files:
	PHP-LICENSE-3.01 import.log libssh2.diff 
	php-pecl-ssh2-0.10-README php-pecl-ssh2.spec 
Log Message:
Initial Release



--- NEW FILE PHP-LICENSE-3.01 ---
-------------------------------------------------------------------- 
                  The PHP License, version 3.01
Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
-------------------------------------------------------------------- 

Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:

  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
 
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
     distribution.
 
  3. The name "PHP" must not be used to endorse or promote products
     derived from this software without prior written permission. For
     written permission, please contact group at php.net.
  
  4. Products derived from this software may not be called "PHP", nor
     may "PHP" appear in their name, without prior written permission
     from group at php.net.  You may indicate that your software works in
     conjunction with PHP by saying "Foo for PHP" instead of calling
     it "PHP Foo" or "phpfoo"
 
  5. The PHP Group may publish revised and/or new versions of the
     license from time to time. Each version will be given a
     distinguishing version number.
     Once covered code has been published under a particular version
     of the license, you may always continue to use it under the terms
     of that version. You may also choose to use such covered code
     under the terms of any subsequent version of the license
     published by the PHP Group. No one other than the PHP Group has
     the right to modify the terms applicable to covered code created
     under this License.

  6. Redistributions of any form whatsoever must retain the following
     acknowledgment:
     "This product includes PHP software, freely available from
     <http://www.php.net/software/>".

THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND 
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------- 

This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.

The PHP Group can be contacted via Email at group at php.net.

For more information on the PHP Group and the PHP project, 
please see <http://www.php.net>.

PHP includes the Zend Engine, freely available at
<http://www.zend.com>.


--- NEW FILE import.log ---
php-pecl-ssh2-0_10-2_fc8:HEAD:php-pecl-ssh2-0.10-2.fc8.src.rpm:1227095007

libssh2.diff:

--- NEW FILE libssh2.diff ---
--- ssh2.c.orig	2005-11-01 21:40:23.000000000 -0200
+++ ssh2.c	2008-07-16 09:13:42.000000000 -0300
@@ -477,7 +477,7 @@
 
 	ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
 
-#if LIBSSH2_APINO < 200412301450
+#if LIBSSH2_VERSION_NUM < 0x001000
 	libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc);
 #else
 	kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX);


--- NEW FILE php-pecl-ssh2-0.10-README ---
----------------------------------------
See this link for more documentation:
http://php.net/ssh2
----------------------------------------

CLIII. Secure Shell2 Functions
Introduction

Bindings to the libssh2 library which provide access to resources (shell, remote exec, tunneling, file transfer) on a remote machine using a secure cryptographic transport.

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

SSH2_FINGERPRINT_MD5 (integer)

    Flag to ssh2_fingerprint() requesting hostkey fingerprint as an MD5 hash. 
SSH2_FINGERPRINT_SHA1 (integer)

    Flag to ssh2_fingerprint() requesting hostkey fingerprint as an SHA1 hash. 
SSH2_FINGERPRINT_HEX (integer)

    Flag to ssh2_fingerprint() requesting hostkey fingerprint as a string of hexits. 
SSH2_FINGERPRINT_RAW (integer)

    Flag to ssh2_fingerprint() requesting hostkey fingerprint as a raw string of 8-bit characters. 
SSH2_TERM_UNIT_CHARS (integer)

    Flag to ssh2_shell() specifying that width and height are provided as character sizes. 
SSH2_TERM_UNIT_PIXELS (integer)

    Flag to ssh2_shell() specifying that width and height are provided in pixel units. 
SSH2_DEFAULT_TERM_WIDTH (integer)

    Default terminal width requested by ssh2_shell(). 
SSH2_DEFAULT_TERM_HEIGHT (integer)

    Default terminal height requested by ssh2_shell(). 
SSH2_DEFAULT_TERM_UNIT (integer)

    Default terminal units requested by ssh2_shell(). 
SSH2_STREAM_STDIO (integer)

    Flag to ssh2_fetch_stream() requesting STDIO subchannel. 
SSH2_STREAM_STDERR (integer)

    Flag to ssh2_fetch_stream() requesting STDERR subchannel. 
SSH2_DEFAULT_TERMINAL (string)

    Default terminal type (e.g. vt102, ansi, xterm, vanilla) requested by ssh2_shell(). 


Table of Contents:

ssh2_auth_hostbased_file --  Authenticate using a public hostkey
ssh2_auth_none --  Authenticate as "none"
ssh2_auth_password --  Authenticate over SSH using a plain password
ssh2_auth_pubkey_file --  Authenticate using a public key
ssh2_connect --  Connect to an SSH server
ssh2_exec --  Execute a command on a remote server
ssh2_fetch_stream --  Fetch an extended data stream
ssh2_fingerprint --  Retreive fingerprint of remote server
ssh2_methods_negotiated --  Return list of negotiated methods
ssh2_publickey_add --  Add an authorized publickey
ssh2_publickey_init --  Initialize Publickey subsystem
ssh2_publickey_list --  List currently authorized publickeys
ssh2_publickey_remove --  Remove an authorized publickey
ssh2_scp_recv --  Request a file via SCP
ssh2_scp_send --  Send a file via SCP
ssh2_sftp_lstat --  Stat a symbolic link
ssh2_sftp_mkdir --  Create a directory
ssh2_sftp_readlink --  Return the target of a symbolic link
ssh2_sftp_realpath --  Resolve the realpath of a provided path string
ssh2_sftp_rename --  Rename a remote file
ssh2_sftp_rmdir --  Remove a directory
ssh2_sftp_stat --  Stat a file on a remote filesystem
ssh2_sftp_symlink --  Create a symlink
ssh2_sftp_unlink --  Delete a file
ssh2_sftp --  Initialize SFTP subsystem
ssh2_shell --  Request an interactive shell
ssh2_tunnel --  Open a tunnel through a remote server 

----------------------------------------
See this link for more documentation:
http://php.net/ssh2
----------------------------------------


--- NEW FILE php-pecl-ssh2.spec ---
%global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
%global php_extdir  %(php-config --extension-dir 2>/dev/null || echo "undefined")
%global php_version %(php-config --version 2>/dev/null || echo 0)
%{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}

%define pecl_name ssh2

Name:           php-pecl-ssh2
Version:        0.10
Release:        2%{?dist}
Summary:        Bindings for the libssh2 library

License:        PHP
Group:          Development/Languages
URL:            http://pecl.php.net/package/ssh2
Source0:        http://pecl.php.net/get/ssh2-%{version}.tgz
Source1:        PHP-LICENSE-3.01
Source2:        php-pecl-ssh2-0.10-README

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:         libssh2.diff

BuildRequires:  libssh2-devel php-devel php-pear >= 1:1.4.9-1.2
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
Provides:       php-pecl(ssh2) = %{version}

%if %{?php_zend_api}0
Requires:       php(zend-abi) = %{php_zend_api}
Requires:       php(api) = %{php_core_api}
%else
# for EL-5
Requires:       php-api = %{php_apiver}
%endif


%description
Bindings to the functions of libssh2 which implements the SSH2 protocol.
libssh2 is available from http://www.sourceforge.net/projects/libssh2

%prep
%setup -c -q 
%{__mv} package.xml %{pecl_name}-%{version}/%{pecl_name}.xml

%{__install} -m 644 -c %{SOURCE1} LICENSE
%{__install} -m 644 -c %{SOURCE2} README


cd %{pecl_name}-%{version}
%patch0 -p0


%build
cd %{pecl_name}-%{version}
phpize
%configure
%{__make} %{?_smp_mflags}


%install
cd %{pecl_name}-%{version}
%{__rm} -rf %{buildroot}
%{__make} install INSTALL_ROOT=%{buildroot}

# Install XML package description
install -Dpm 644 %{pecl_name}.xml %{buildroot}%{pecl_xmldir}/%{name}.xml

# install config file
%{__install} -d %{buildroot}%{_sysconfdir}/php.d
%{__cat} > %{buildroot}%{_sysconfdir}/php.d/ssh2.ini << 'EOF'
; Enable ssh2 extension module
extension=ssh2.so
EOF


%if 0%{?pecl_install:1}
%post
%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
%endif


%if 0%{?pecl_uninstall:1}
%postun
if [ $1 -eq 0 ] ; then
    %{pecl_uninstall} %{pecl_name} >/dev/null || :
fi
%endif


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc LICENSE README
%config(noreplace) %{_sysconfdir}/php.d/ssh2.ini
%{php_extdir}/ssh2.so
%{pecl_xmldir}/%{name}.xml


%changelog
* Sat Nov 15 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.10-2
- Install pecl xml, license and readme files

* Wed Jul 16 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.10-1
- Initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-ssh2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	19 Nov 2008 03:50:53 -0000	1.1
+++ .cvsignore	19 Nov 2008 11:44:15 -0000	1.2
@@ -0,0 +1 @@
+ssh2-0.10.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-ssh2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	19 Nov 2008 03:50:53 -0000	1.1
+++ sources	19 Nov 2008 11:44:16 -0000	1.2
@@ -0,0 +1 @@
+95bdbd6a9a0d14cb65c6d6bdc9ee1770  ssh2-0.10.tgz




More information about the fedora-extras-commits mailing list