Skip to content

Commit

Permalink
*/*: Cleanup php NOOP codes
Browse files Browse the repository at this point in the history
There are some php modules which are by default installed and/or
statically linked in the default PHP installations and has no effect if
mentioned through USE_PHP. Remove those codes.

Also add comment for these cases like which extensions are required for
future references.

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Nov 12, 2023
1 parent de9f4c6 commit 00b411f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
3 changes: 2 additions & 1 deletion net-mgmt/icingaweb2-module-icingadb/Makefile
Expand Up @@ -17,7 +17,8 @@ RUN_DEPENDS= icinga-php-library${PHP_PKGNAMESUFFIX}>=0.9:net-mgmt/icinga-php-lib
icingaweb2${PHP_PKGNAMESUFFIX}>=2.9:net-mgmt/icingaweb2

USES= php:web,flavors shebangfix
USE_PHP= curl dom json xml
# php json extension is required but it's statically linked in default php
USE_PHP= curl dom xml

USE_GITHUB= yes
GH_ACCOUNT= icinga
Expand Down
5 changes: 3 additions & 2 deletions net-mgmt/librenms/Makefile
Expand Up @@ -23,8 +23,9 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pymysql>0:databases/py-pymysql@${PY_FLAVOR}

USES= cpe php python shebangfix
USE_GITHUB= yes
USE_PHP= ctype curl dom fileinfo filter gd hash json ldap mbstring \
mysqli openssl pdo pdo_mysql phar posix session simplexml snmp \
# php hash/json/openssl extension is required but it's statically linked in default php
USE_PHP= ctype curl dom fileinfo filter gd ldap mbstring \
mysqli pdo pdo_mysql phar posix session simplexml snmp \
sockets tokenizer xml xmlwriter zip zlib
USE_RC_SUBR= librenms

Expand Down
5 changes: 3 additions & 2 deletions www/piwigo/Makefile
Expand Up @@ -13,8 +13,9 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING

USES= cpe php:web,flavors zip
USE_PHP= ctype dom exif filter gd hash iconv json mbstring mysqli \
openssl pcre pdo session simplexml sodium spl tokenizer \
# php hash/json/openssl/pcre/spl extension is required but it's statically linked in default php
USE_PHP= ctype dom exif filter gd iconv mbstring mysqli \
pdo session simplexml sodium tokenizer \
xml zip zlib
# sodium is needed for randomisation stuff (prefferred option),
# could be replaced by mcrypt
Expand Down
5 changes: 3 additions & 2 deletions www/suitecrm/Makefile
Expand Up @@ -11,8 +11,9 @@ LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

USES= php zip
USE_PHP= curl ctype dom filter gd imap json mysqli pcre pdo posix \
session spl tokenizer xml mbstring zip zlib
# php json/pcre/spl extension is required but it's statically linked in default php
USE_PHP= curl ctype dom filter gd imap mysqli pdo posix \
session tokenizer xml mbstring zip zlib
NO_BUILD= yes

WRKSRC= ${WRKDIR}/SuiteCRM-${PORTVERSION}
Expand Down
3 changes: 2 additions & 1 deletion www/thundersnarf/Makefile
Expand Up @@ -38,7 +38,8 @@ WANT_PGSQL= server
.endif

.if ${PORT_OPTIONS:MPHP}
USE_PHP+= curl bcmath pdo mcrypt session pgsql spl dom xmlrpc ctype simplexml soap
# php spl extension is required but it's statically linked in default php
USE_PHP+= curl bcmath pdo mcrypt session pgsql dom xmlrpc ctype simplexml soap
. if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pdo_pgsql pgsql
. endif
Expand Down
4 changes: 2 additions & 2 deletions www/tt-rss/Makefile
Expand Up @@ -16,8 +16,8 @@ USES= gettext-tools php:cli,web shebangfix
USE_GITLAB= yes
GL_SITE= https://gitlab.tt-rss.org
GL_TAGNAME= c779e2ba0d71942579dd27ccdcad0295bd06e45f

USE_PHP= ctype dom exif fileinfo filter iconv intl json mbstring openssl \
# phe json/openssl extension is required but it's statically linked in default php
USE_PHP= ctype dom exif fileinfo filter iconv intl mbstring \
pcntl pdo phar posix session simplexml sockets tokenizer xml \
xmlwriter zip
USE_RC_SUBR= ttrssd
Expand Down
3 changes: 2 additions & 1 deletion www/typo3-12/Makefile
Expand Up @@ -16,8 +16,9 @@ IGNORE_WITH_MYSQL= 57
IGNORE_WITH_PHP= 80 83

USES= cpe php:web,flavors shebangfix
# php openssl extension is required but it's statically linked in default php
USE_PHP= ctype dom fileinfo filter gd intl \
mbstring openssl pdo session simplexml \
mbstring pdo session simplexml \
tokenizer xml zip zlib

WRKSRC= ${WRKDIR}/${PORTNAME}_src-${PORTVERSION}
Expand Down
4 changes: 2 additions & 2 deletions www/webtrees21/Makefile
Expand Up @@ -11,8 +11,8 @@ WWW= https://webtrees.net/
LICENSE= GPLv3+

USES= cpe php shebangfix zip

USE_PHP= calendar curl dom filter gd iconv pcre pdo_mysql session xml
# php pcre extension is required but it's statically linked in default php
USE_PHP= calendar curl dom filter gd iconv pdo_mysql session xml

SHEBANG_FILES= webtrees/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php

Expand Down

0 comments on commit 00b411f

Please sign in to comment.