tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
alternate distfiles per package and PHP (php-ssh2)
I didn't see any different packages for PHP modules in the case some
support only php 5 and others php 6 for example.
Any examples of using alternate distfiles per package?
Or should it use a different package directory and name for each?
Different php versions don't appear to be allowed to be installed at
same time, so having different package may not make sense, but allowing
available binary packages for both would be useful.
Anyways, see patch below to simply upgrade security/php-ssh2 to work
with php 7.0 (I didn't test with 7.1 nor 5.x, but I read that it is only
for php 7.)
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/php-ssh2/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 11 Sep 2016 17:03:27 -0000 1.6
+++ Makefile 28 Sep 2016 20:01:20 -0000
@@ -2,18 +2,21 @@
#
MODNAME= ssh2
-PECL_VERSION= 0.12
-PKGREVISION= 3
+# 0.13 and below is php 5
+# 1.0 and above is php 7
+PECL_VERSION= 1.0
+# 1.0 is said to be alpha state
CATEGORIES+= security
MAINTAINER= filip%joyent.com@localhost
-HOMEPAGE= http://www.libssh2.org/
+HOMEPAGE= https://pecl.php.net/package/ssh2
COMMENT= PHP bindings to the functions of libssh2
LICENSE= php
CONFLICTS= php-ssh2-[0-9]*
-PHP_VERSIONS_ACCEPTED= 56
+#PHP_VERSIONS_ACCEPTED= 56
+PHP_VERSIONS_ACCEPTED= 70 71
CONFIGURE_ARGS+= --with-ssh2=${PREFIX}
#WRKSRC= ${WRKDIR}/${MODNAME}-${PECL_VERSION}
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/php-ssh2/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 4 Nov 2015 01:18:01 -0000 1.2
+++ distinfo 28 Sep 2016 20:01:20 -0000
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.2 2015/11/04 01:18:01 agc Exp $
-SHA1 (php-ssh2/ssh2-0.12.tgz) =
b86a25bdd3f3558bbcaaa6d876309fbbb5ae134d
-RMD160 (php-ssh2/ssh2-0.12.tgz) =
ecf60b0c19541c947b4e092259b2ab71fc0f5a3a
-SHA512 (php-ssh2/ssh2-0.12.tgz) =
e48f8051f9234841bb0fc10594dcd90badf2d880d75c4bd59f847e3d4276e9fdd3fe71c1c01c07fb9f552cec470f3dbac6ae1db4d33e5793d3988ea5bac1d5bd
-Size (php-ssh2/ssh2-0.12.tgz) = 26223 bytes
+SHA1 (php-ssh2/ssh2-1.0.tgz) = 22db54564e6f5f0e3bd3c10f19bbbab89a7a4300
+RMD160 (php-ssh2/ssh2-1.0.tgz) =
cbf26335b2378c3ae4ae7a89961a10a2922a6867
+SHA512 (php-ssh2/ssh2-1.0.tgz) =
9e21b4d5d640f595ff812c341387cd51917aed2df00bb8c94ff7e494953a3599dc1cbfa6f04248f3145fc1b097fcf6c066710c8f2a41e565a3f57cad999877f9
+Size (php-ssh2/ssh2-1.0.tgz) = 29013 bytes
Home |
Main Index |
Thread Index |
Old Index