On 2016/04/14 11:38, Frank Groeneveld wrote:
> On Wed, Apr 13, 2016 at 12:32:03PM +0200, Frank Groeneveld wrote:
> > ...
> > 
> > One other small bug: files/php.conf contains "php5" in some places, it
> > should be dynamic, depending on the php major version. I'm not sure how
> > to capture only the first char from the $PV variable, otherwise I could
> > make a diff for you.
> 
> I've made a diff that defines a new variable MV (major version) that is
> used to fix this bug. My diff is against 5.9-stable, but I think it will
> apply to -current without problems.
> 
> Would be great to get this committed into -stable as well.
> 
> Frank

untested (no time right now) but this should work:

Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/php/Makefile.inc,v
retrieving revision 1.78
diff -u -p -r1.78 Makefile.inc
--- Makefile.inc        10 Apr 2016 19:38:13 -0000      1.78
+++ Makefile.inc        14 Apr 2016 10:28:19 -0000
@@ -423,7 +423,7 @@ post-install:
 
        ${INSTALL_DATA} ${.CURDIR}/../files/php.conf \
                ${PREFIX}/share/examples/php-${PV}/php.conf
-       @perl -pi -e "s,!!PREFIX!!,${TRUEPREFIX},g;s,!!PV!!,${PV},g" \
+       @perl -pi -e 
"s,!!PREFIX!!,${TRUEPREFIX},g;s,!!PV!!,${PV},g;s,!!MV!!,${PV:R}" \
                ${PREFIX}/share/examples/php-${PV}/php.conf
 
 .for m in ${MULTI_PACKAGES:N-main:N-fastcgi:S/-//g}
Index: 5.4/Makefile
===================================================================
RCS file: /cvs/ports/lang/php/5.4/Makefile,v
retrieving revision 1.52
diff -u -p -r1.52 Makefile
--- 5.4/Makefile        1 Feb 2016 21:53:06 -0000       1.52
+++ 5.4/Makefile        14 Apr 2016 10:28:19 -0000
@@ -2,6 +2,6 @@
 
 PV=            5.4
 V=             ${PV}.45
-REVISION=      2
+REVISION=      3
 
 .include <bsd.port.mk>
Index: 5.5/Makefile
===================================================================
RCS file: /cvs/ports/lang/php/5.5/Makefile,v
retrieving revision 1.51
diff -u -p -r1.51 Makefile
--- 5.5/Makefile        4 Apr 2016 18:47:22 -0000       1.51
+++ 5.5/Makefile        14 Apr 2016 10:28:19 -0000
@@ -2,5 +2,6 @@
 
 PV=            5.5
 V=             ${PV}.34
+REVISION=      0
 
 .include <bsd.port.mk>
Index: 5.6/Makefile
===================================================================
RCS file: /cvs/ports/lang/php/5.6/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- 5.6/Makefile        4 Apr 2016 18:56:11 -0000       1.27
+++ 5.6/Makefile        14 Apr 2016 10:28:19 -0000
@@ -2,6 +2,7 @@
 
 PV=            5.6
 V=             ${PV}.20
+REVISION=      0
 
 WANTLIB-main+=         stdc++ ncurses readline
 
Index: 7.0/Makefile
===================================================================
RCS file: /cvs/ports/lang/php/7.0/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- 7.0/Makefile        8 Apr 2016 20:26:13 -0000       1.8
+++ 7.0/Makefile        14 Apr 2016 10:28:19 -0000
@@ -2,6 +2,7 @@
 
 PV=            7.0
 V=             ${PV}.5
+REVISION=      0
 
 WANTLIB-main+= stdc++ ncurses readline
 BUILD_DEPENDS+=        devel/bison
Index: files/DESCR-bz2
===================================================================
RCS file: /cvs/ports/lang/php/files/DESCR-bz2,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR-bz2
--- files/DESCR-bz2     27 Jun 2010 20:28:45 -0000      1.1.1.1
+++ files/DESCR-bz2     14 Apr 2016 10:28:19 -0000
@@ -1,2 +1,2 @@
 The bzip2 functions are used to transparently read and write bzip2
-(.bz2) compressed files within PHP5.
+(.bz2) compressed files within PHP.
Index: files/DESCR-imap
===================================================================
RCS file: /cvs/ports/lang/php/files/DESCR-imap,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR-imap
--- files/DESCR-imap    27 Jun 2010 20:28:45 -0000      1.1.1.1
+++ files/DESCR-imap    14 Apr 2016 10:28:19 -0000
@@ -1,3 +1,3 @@
-These PHP5 functions are not limited to the IMAP protocol, despite
+These PHP functions are not limited to the IMAP protocol, despite
 their name. The underlying c-client library also supports NNTP,
 POP3 and local mailbox access methods.
Index: files/DESCR-mssql
===================================================================
RCS file: /cvs/ports/lang/php/files/DESCR-mssql,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR-mssql
--- files/DESCR-mssql   27 Jun 2010 20:28:45 -0000      1.1.1.1
+++ files/DESCR-mssql   14 Apr 2016 10:28:19 -0000
@@ -1,3 +1,3 @@
-This PHP5 modules contains functions to access the Microsoft SQL
+This PHP module contains functions to access the Microsoft SQL
 server database. It makes use of the FreeTDS implementation to
 perform the actual communications.
Index: files/DESCR-sybase_ct
===================================================================
RCS file: /cvs/ports/lang/php/files/DESCR-sybase_ct,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR-sybase_ct
--- files/DESCR-sybase_ct       27 Jun 2010 20:28:45 -0000      1.1.1.1
+++ files/DESCR-sybase_ct       14 Apr 2016 10:28:19 -0000
@@ -1,3 +1,3 @@
-This PHP5 modules contains functions to access the Sybase database.
+This PHP module contains functions to access the Sybase database.
 It makes use of the FreeTDS implementation to perform the actual
 communications.
Index: files/php.conf
===================================================================
RCS file: /cvs/ports/lang/php/files/php.conf,v
retrieving revision 1.2
diff -u -p -r1.2 php.conf
--- files/php.conf      5 Jan 2011 09:31:23 -0000       1.2
+++ files/php.conf      14 Apr 2016 10:28:19 -0000
@@ -1,6 +1,6 @@
-LoadModule php5_module !!PREFIX!!/lib/php-!!PV!!/libphp5.so
+LoadModule php!!MV!!_module !!PREFIX!!/lib/php-!!PV!!/libphp!!MV!!.so
 
-<IfModule mod_php5.c>
+<IfModule mod_php!!MV!!.c>
        AddType application/x-httpd-php .php .phtml .php3
        AddType application/x-httpd-php-source .phps
 # Most php configs require this

Reply via email to