PHP spring-cleaning:

- remove DESCR files from subpackages which have been removed
- add HOMEPAGEs for various subpackages (sometimes replacing ones
manually listed in DESCR-foo)
- some s/http/https/ in DESCR-foo
- build the enchant extension (won't work by default in chroot but
maybe useful in some cases)
This commit is contained in:
sthen 2020-01-03 15:06:27 +00:00
parent 509b04aafb
commit e0e8bdcad9
19 changed files with 97 additions and 98 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.41 2019/12/18 20:22:05 sthen Exp $
# $OpenBSD: Makefile,v 1.42 2020/01/03 15:06:27 sthen Exp $
PORTROACH= limit:^7\.2
PHP_VERSION= 7.2.26
PHP_PKGSPEC= >=7.2,<7.3
REVISION= 0
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
SHA256 (php-7.2.26.tar.xz) = HdO8h14QX1ydIftNwkBnC9LCIDeCD/A4kPWriDyIt40=
SHA256 (php-7.2.26.tar.xz.asc) = amDa3ByycUIS6lqwaqSfGwJppNDudZQ4Ks+ue1N81nc=
SIZE (php-7.2.26.tar.xz) = 12309176
SIZE (php-7.2.26.tar.xz.asc) = 801

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST-enchant,v 1.1 2020/01/03 15:06:27 sthen Exp $
@so lib/php-${PV}/modules/enchant.so
share/examples/php-${PV}/enchant.ini
@sample ${SYSCONFDIR}/php-${PV}.sample/enchant.ini

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.24 2019/12/18 20:22:05 sthen Exp $
# $OpenBSD: Makefile,v 1.25 2020/01/03 15:06:27 sthen Exp $
PORTROACH= limit:^7\.3
PHP_VERSION= 7.3.13
PHP_PKGSPEC= >=7.3,<7.4
REVISION= 0
DEFAULT_PHP= Yes

View File

@ -1,2 +1,4 @@
SHA256 (php-7.3.13.tar.xz) = V6xV/kQtLaZQq+ueb6FhvTqYumUowCnwdvi7pD3Vwig=
SHA256 (php-7.3.13.tar.xz.asc) = njXi3mBaUWQCcch90VvAEEiDuIr5JMoKS11YqsMHN7o=
SIZE (php-7.3.13.tar.xz) = 12102012
SIZE (php-7.3.13.tar.xz.asc) = 850

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST-enchant,v 1.1 2020/01/03 15:06:27 sthen Exp $
@so lib/php-${PV}/modules/enchant.so
share/examples/php-${PV}/enchant.ini
@sample ${SYSCONFDIR}/php-${PV}.sample/enchant.ini

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.146 2019/12/18 20:22:05 sthen Exp $
# $OpenBSD: Makefile.inc,v 1.147 2020/01/03 15:06:27 sthen Exp $
BROKEN-hppa= no __sync_bool_compare_and_swap support nor asm fallback
@ -105,7 +105,7 @@ TEST_FLAGS= NO_INTERACTION=1
ZEND_EXTENSIONS+= -opcache
# new subpackages must be added to devel/quirks $cve tables
PHP_EXTENSIONS+= -bz2 -curl -dba -gd -gmp -intl -imap -ldap \
PHP_EXTENSIONS+= -bz2 -curl -dba -enchant -gd -gmp -intl -imap -ldap \
-mysqli -odbc -pcntl -pdo_mysql -pdo_odbc -pdo_pgsql \
-pdo_sqlite -pgsql -pspell -shmop -soap -snmp \
-sqlite3 -pdo_dblib -tidy -xmlrpc -xsl -zip
@ -147,6 +147,7 @@ BUILD_DEPENDS+= www/apache-httpd
# phpdbg
COMMENT-dbg= interactive php debugger
HOMEPAGE-dbg= https://www.php.net/phpdbg
CONFIGURE_ARGS+= --enable-phpdbg
.for i in ${SAPI}
@ -165,6 +166,7 @@ LIB_DEPENDS$i += devel/gettext,-runtime \
# bz2
COMMENT-bz2= bzip2 compression extensions for php
HOMEPAGE-bz2= https://www.php.net/bzip2
LIB_DEPENDS-bz2= archivers/bzip2
WANTLIB-bz2= bz2 pthread
.if ${BUILD_PACKAGES:M-bz2}
@ -173,6 +175,7 @@ CONFIGURE_ARGS+= --with-bz2=shared,${LOCALBASE}
# curl
COMMENT-curl= curl URL library extensions for php
HOMEPAGE-curl= https://www.php.net/curl
LIB_DEPENDS-curl= net/curl
WANTLIB-curl= crypto curl nghttp2 pthread ssl z
.if ${BUILD_PACKAGES:M-curl}
@ -181,6 +184,7 @@ CONFIGURE_ARGS+= --with-curl=shared,${LOCALBASE}
# dba
COMMENT-dba= dba GDBM access extensions for php
HOMEPAGE-dba= https://www.php.net/dba
LIB_DEPENDS-dba= databases/gdbm
WANTLIB-dba= gdbm iconv intl pthread
.if ${BUILD_PACKAGES:M-dba}
@ -188,8 +192,19 @@ CONFIGURE_ARGS+= --enable-dba=shared \
--with-gdbm=${LOCALBASE}
.endif
# enchant
COMMENT-enchant= enchant library extensions for php
HOMEPAGE-enchant= https://www.php.net/enchant
LIB_DEPENDS-enchant= textproc/enchant
WANTLIB-enchant= ${COMPILER_LIBCXX} enchant glib-2.0 gmodule-2.0 \
iconv intl
.if ${BUILD_PACKAGES:M-enchant}
CONFIGURE_ARGS+= --with-enchant=shared,${LOCALBASE}
.endif
# gd
COMMENT-gd= image manipulation extensions for php
HOMEPAGE-gd= https://www.php.net/image
LIB_DEPENDS-gd= graphics/jpeg \
graphics/png
WANTLIB-gd+= X11 Xpm freetype jpeg m png pthread xcb z
@ -204,14 +219,26 @@ CONFIGURE_ARGS+= --with-gd=shared \
# gmp
COMMENT-gmp= gmp math library support for php
HOMEPAGE-gmp= https://www.php.net/gmp
LIB_DEPENDS-gmp= devel/gmp
WANTLIB-gmp= gmp pthread
.if ${BUILD_PACKAGES:M-gd}
CONFIGURE_ARGS+= --with-gmp=shared,${LOCALBASE}
.endif
# imap
COMMENT-imap= imap, pop3 and nntp extensions for php
HOMEPAGE-imap= https://www.php.net/imap
LIB_DEPENDS-imap= mail/alpine,-c-client
WANTLIB-imap= c-client crypto pthread ssl
.if ${BUILD_PACKAGES:M-imap}
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
--with-imap-ssl
.endif
# intl
COMMENT-intl= intl library support for php
HOMEPAGE-intl= https://www.php.net/intl
LIB_DEPENDS-intl= textproc/icu4c
RUN_DEPENDS-intl= textproc/icu4c,-wwwdata
WANTLIB-intl= ${COMPILER_LIBCXX} icudata icui18n icuio icuuc m
@ -220,17 +247,9 @@ CONFIGURE_ARGS+= --enable-intl=shared \
--with-icu-dir=${LOCALBASE}
.endif
# imap
COMMENT-imap= imap, pop3 and nntp extensions for php
LIB_DEPENDS-imap= mail/alpine,-c-client
WANTLIB-imap= c-client crypto pthread ssl
.if ${BUILD_PACKAGES:M-imap}
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
--with-imap-ssl
.endif
# ldap
COMMENT-ldap= ldap protocol extensions for php
HOMEPAGE-ldap= https://www.php.net/ldap
LIB_DEPENDS-ldap= databases/openldap
WANTLIB-ldap= crypto lber ldap pthread sasl2 ssl
.if ${BUILD_PACKAGES:M-ldap}
@ -239,6 +258,7 @@ CONFIGURE_ARGS+= --with-ldap=shared,${LOCALBASE}
# mcrypt
COMMENT-mcrypt= mcrypt encryption/decryption extensions for php
HOMEPAGE-mcrypt= https://www.php.net/mcrypt
LIB_DEPENDS-mcrypt= security/libmcrypt \
devel/libtool,-ltdl
WANTLIB-mcrypt= ltdl mcrypt pthread
@ -248,12 +268,14 @@ CONFIGURE_ARGS+= --with-mcrypt=shared,${LOCALBASE}
# mysqli
COMMENT-mysqli= mysql database access extensions for php
HOMEPAGE-mysqli = https://www.php.net/mysqli
CONFIGURE_ARGS+= --with-mysqli=shared
LIB_DEPENDS-mysqli= # empty: using PHP's mysqlnd
WANTLIB-mysqli= pthread
# odbc
COMMENT-odbc= odbc database access extensions for php
HOMEPAGE-odbc= https://www.php.net/odbc
LIB_DEPENDS-odbc= databases/iodbc
WANTLIB-odbc= iodbc iodbcinst pthread
.if ${BUILD_PACKAGES:M-odbc}
@ -262,18 +284,31 @@ CONFIGURE_ARGS+= --with-iodbc=shared,${LOCALBASE}
# pcntl
COMMENT-pcntl= PCNTL extensions for php
HOMEPAGE-pcntl= https://www.php.net/pcntl
CONFIGURE_ARGS+= --enable-pcntl=shared
LIB_DEPENDS-pcntl= # empty
WANTLIB-pcntl= pthread
# pdo-dblib
COMMENT-pdo_dblib= PDO DB-LIB support for php
HOMEPAGE-pdo_dblib= https://www.php.net/pdo_dblib
LIB_DEPENDS-pdo_dblib= databases/freetds
WANTLIB-pdo_dblib= ffi gmp gnutls hogweed iconv idn2 intl \
nettle p11-kit pthread sybdb tasn1 unistring
.if ${BUILD_PACKAGES:M-pdo_dblib}
CONFIGURE_ARGS+= --with-pdo-dblib=shared,${LOCALBASE}
.endif
# pdo-mysql
COMMENT-pdo_mysql= PDO mysql database access extensions for php
HOMEPAGE-pdo_mysql= https://www.php.net/pdo_mysql
CONFIGURE_ARGS+= --with-pdo-mysql=shared
LIB_DEPENDS-pdo_mysql= # empty: using PHP's mysqlnd
WANTLIB-pdo_mysql= pthread
# pdo-odbc
COMMENT-pdo_odbc= PDO database access extensions for php
HOMEPAGE-pdo_odbc= https://www.php.net/pdo_odbc
LIB_DEPENDS-pdo_odbc= databases/iodbc
WANTLIB-pdo_odbc= iodbc pthread
.if ${BUILD_PACKAGES:M-pdo_odbc}
@ -282,6 +317,7 @@ CONFIGURE_ARGS+= --with-pdo-odbc=shared,iODBC,${LOCALBASE}
# pdo-pgsql
COMMENT-pdo_pgsql= PDO pgsql database access extensions for php
HOMEPAGE-pdo_pgsql= https://www.php.net/pdo_pgsql
LIB_DEPENDS-pdo_pgsql= databases/postgresql
WANTLIB-pdo_pgsql= crypto pq pthread ssl
.if ${BUILD_PACKAGES:M-pdo_pgsql}
@ -290,6 +326,7 @@ CONFIGURE_ARGS+= --with-pdo-pgsql=shared,${LOCALBASE}
# pdo-sqlite
COMMENT-pdo_sqlite= PDO sqlite3 database access extensions for php
HOMEPAGE-pdo_sqlite= https://www.php.net/pdo_sqlite
LIB_DEPENDS-pdo_sqlite= databases/sqlite3
WANTLIB-pdo_sqlite= m pthread sqlite3 z
.if ${BUILD_PACKAGES:M-pdo_sqlite}
@ -300,6 +337,7 @@ CONFIGURE_ARGS+= --with-pdo-sqlite=no
# pgsql
COMMENT-pgsql= pgsql database access extensions for php
HOMEPAGE-pgsql= https://www.php.net/pgsql
LIB_DEPENDS-pgsql= databases/postgresql
WANTLIB-pgsql= crypto pq pthread ssl
.if ${BUILD_PACKAGES:M-pgsql}
@ -308,6 +346,7 @@ CONFIGURE_ARGS+= --with-pgsql=shared,${LOCALBASE}
# pspell
COMMENT-pspell= pspell library extensions for php
HOMEPAGE-pspell= https://www.php.net/pspell
LIB_DEPENDS-pspell= textproc/aspell/core
WANTLIB-pspell= aspell iconv intl pspell pthread
.if ${BUILD_PACKAGES:M-pspell}
@ -316,28 +355,32 @@ CONFIGURE_ARGS+= --with-pspell=shared,${LOCALBASE}
# shmop
COMMENT-shmop= shared memory extensions for php
HOMEPAGE-shmop= https://www.php.net/shmop
CONFIGURE_ARGS+= --enable-shmop=shared,${LOCALBASE}
LIB_DEPENDS-shmop= # empty
WANTLIB-shmop= pthread
# soap
COMMENT-soap= SOAP functions for php
LIB_DEPENDS-soap= textproc/libxml
WANTLIB-soap= iconv lzma m pthread xml2 z
.if ${BUILD_PACKAGES:M-soap}
CONFIGURE_ARGS+= --enable-soap=shared,${LOCALBASE}
.endif
# snmp
COMMENT-snmp= snmp protocol extensions for php
HOMEPAGE-snmp= https://www.php.net/snmp
LIB_DEPENDS-snmp= net/net-snmp
WANTLIB-snmp= crypto m netsnmp pthread
.if ${BUILD_PACKAGES:M-snmp}
CONFIGURE_ARGS+= --with-snmp=shared,${LOCALBASE}
.endif
# soap
COMMENT-soap= SOAP functions for php
HOMEPAGE-soap= https://www.php.net/soap
LIB_DEPENDS-soap= textproc/libxml
WANTLIB-soap= iconv lzma m pthread xml2 z
.if ${BUILD_PACKAGES:M-soap}
CONFIGURE_ARGS+= --enable-soap=shared,${LOCALBASE}
.endif
# sqlite3
COMMENT-sqlite3= sqlite3 database access extension for php
HOMEPAGE-sqlite3= https://www.php.net/sqlite3
LIB_DEPENDS-sqlite3= databases/sqlite3
WANTLIB-sqlite3= m pthread sqlite3 z
.if ${BUILD_PACKAGES:M-sqlite3}
@ -346,17 +389,9 @@ CONFIGURE_ARGS+= --with-sqlite3=shared,${LOCALBASE}
CONFIGURE_ARGS+= --with-sqlite3=no
.endif
# pdo-dblib
COMMENT-pdo_dblib= PDO DB-LIB support for php
LIB_DEPENDS-pdo_dblib= databases/freetds
WANTLIB-pdo_dblib= ffi gmp gnutls hogweed iconv idn2 intl \
nettle p11-kit pthread sybdb tasn1 unistring
.if ${BUILD_PACKAGES:M-pdo_dblib}
CONFIGURE_ARGS+= --with-pdo-dblib=shared,${LOCALBASE}
.endif
# tidy
COMMENT-tidy= tidy HTML cleaner bindings
HOMEPAGE-tidy= https://www.php.net/tidy
LIB_DEPENDS-tidy= www/tidy
WANTLIB-tidy= pthread tidy
.if ${BUILD_PACKAGES:M-tidy}
@ -365,6 +400,7 @@ CONFIGURE_ARGS+= --with-tidy=shared,${LOCALBASE}
# xml-rpc
COMMENT-xmlrpc= XML RPC functions for php
HOMEPAGE-xmlrpc= https://www.php.net/xmlrpc
LIB_DEPENDS-xmlrpc= textproc/libxml
WANTLIB-xmlrpc= iconv lzma m pthread xml2 z
.if ${BUILD_PACKAGES:M-xmlrpc}
@ -373,6 +409,7 @@ CONFIGURE_ARGS+= --with-xmlrpc=shared
# xsl
COMMENT-xsl= XSL functions for php
HOMEPAGE-xsl= https://www.php.net/xsl
LIB_DEPENDS-xsl= textproc/libxslt
WANTLIB-xsl= exslt gcrypt gpg-error iconv intl lzma m pthread \
xml2 xslt z
@ -382,6 +419,7 @@ CONFIGURE_ARGS+= --with-xsl=shared --enable-dom
# zip
COMMENT-zip= zip functions for php
HOMEPAGE-zip= https://www.php.net/zip
CONFIGURE_ARGS+= --enable-zip=shared,${LOCALBASE}
CONFIGURE_ARGS+= --with-libzip=${LOCALBASE}
LIB_DEPENDS-zip= archivers/bzip2 \

View File

@ -1,17 +0,0 @@
These functions allow you to access records stored in dBase-format
(dbf) databases.
There is no support for indexes or memo fields. There is no support
for locking, too. Two concurrent webserver processes modifying the
same dBase file will very likely ruin your database.
dBase files are simple sequential files of fixed length records.
Records are appended to the end of the file and delete records are
kept until you call dbase_pack().
We recommend that you do not use dBase files as your production
database. Choose any real SQL server instead; MySQL or Postgres are
common choices with PHP. dBase support is here to allow you to
import and export data to and from your web database, because the
file format is commonly understood by Windows spreadsheets and
organizers.

View File

@ -0,0 +1,8 @@
Enchant is the PHP binding for the Enchant library. Enchant steps in
to provide uniformity and conformity on top of all spelling libraries,
and implement certain features that may be lacking in any individual
provider library.
Note that this requires loading shared library modules at runtime and
is not compatible with a default chroot configuration unless files are
copied in to the chroot jail.

View File

@ -1,3 +0,0 @@
This PHP module contains functions to access the Microsoft SQL
server database. It makes use of the FreeTDS implementation to
perform the actual communications.

View File

@ -1,11 +0,0 @@
These functions allow you to access MySQL database servers.
More information about the mysql extension can be found at
http://www.php.net/mysql.
If you want to use functionality provided by MySQL 4.1 and
above, please consider using the mysqli extension.
Information about MySQL can be found at http://www.mysql.com/.
Documentation for MySQL can be found at
http://www.mysql.com/documentation/.

View File

@ -1,9 +1,2 @@
These improved functions allow you to access the functionality provided
by MySQL 4.1 and above.
More information about the mysqli extension can be found at
http://www.php.net/mysqli.
Information about MySQL can be found at http://www.mysql.com/.
Documentation for MySQL can be found at
http://www.mysql.com/documentation/.
by MySQL 4.1 and above.

View File

@ -1,4 +0,0 @@
ncurses (new curses) is a free software emulation of curses in
System V Rel 4.0 (and above). It uses terminfo format, supports
pads, colors, multiple highlights, form characters and function key
mapping.

View File

@ -1,13 +1,2 @@
Postgres, developed originally in the UC Berkeley Computer Science
Department, pioneered many of the object-relational concepts now
becoming available in some commercial databases. It provides
SQL92/SQL99 language support, transaction integrity and type
extensibility. PostgreSQL is an open source descendant of this
original Berkeley code.
PostgreSQL database is Open Source product and available without
cost. To use PostgreSQL support, you need PostgreSQL 6.5 or later.
PostgreSQL 7.0 or later to enable all PostgreSQL module feature.
PostgreSQL supports many character encoding including multibyte
character encoding. The current version and more information about
PostgreSQL is available at http://www.postgresql.org/.
This extension provides support for accessing PostgreSQL databases
from PHP.

View File

@ -1,2 +1,2 @@
These functions allow you to check the spelling of a word and offer suggestions.
More information about Pspell can be found at http://www.php.net/pspell.
These functions allow you to check the spelling of a word and offer
suggestions.

View File

@ -1,7 +1,7 @@
SOAP (Simple Object Access Protocol) is a method for access remote
XML resources on another machine. It is a standard defined by The
World Wide Web consortium (W3C). Information about XSLT and related
technologies can be found at http://www.w3.org/TR/soap.
technologies can be found at https://www.w3.org/TR/soap.
This PHP extension provides a processor independent API to SOAP
protocol.

View File

@ -1,5 +0,0 @@
These functions allow you to access SQLite databases.
More information about SQLite can be found at http://www.sqlite.org/.
Documentation for SQLite can be found at
http://www.sqlite.org/docs.html.

View File

@ -1,3 +0,0 @@
This PHP module contains functions to access the Sybase database.
It makes use of the FreeTDS implementation to perform the actual
communications.

View File

@ -2,7 +2,7 @@ XSLT (Extensible Stylesheet Language (XSL) Transformations) is a
language for transforming XML documents into other XML documents.
It is a standard defined by The World Wide Web consortium (W3C).
Information about XSLT and related technologies can be found at
http://www.w3.org/TR/xslt.
https://www.w3.org/TR/xslt.
This PHP extension provides a processor independent API to XSLT
transformations. Currently this extension only supports the Sablotron