pkgsrc/databases/phpmyadmin/Makefile
tm fb9dd33b47 phpmyadmin: update to 4.9.1
4.9.1 (2019-09-21)
- Routine fix for an issue that has been reported as CVE-2019-12922
- issue #15313 Added support for Twig 2
- issue #15315 Fix cannot edit or export column with default CURRENT_TIMESTAMP in MySQL >= 8.0.13
- issue        Fix a TypeError in Import class with PHP 8
- issue #14270 Fix Middle-click on foreign key link broken
- issue #14363 Fix broken relational links in tables
- issue #14987 Fix weird error for empty collation
- issue #15334 Fix export of GIS visualisation not working (PNG, PDF, SVG)
- issue #14918 Use hex for the phpMyAdmin session token
- issue        Added GB18030 Chinese collations description
- issue        Added Russian, Swedish, Slovak and Chinese UCA 9.0.0 collations description
- issue        Added description for the _ks (kana-sensitive) collation suffix
- issue        Added description for the _nopad (NO PAD) collation suffix
- issue #15404 Remove array/string curly braces access
- issue #15427 Fixed "FilterLanguages" option does not work (configuration)
- issue #15202 Fixed creating user with single quote in password results in no password user
- issue #14950 Fixed left database overview "add column" triggers error
- issue #15363 Fix remove unexpected quotes on text fields (structure and insert)
- issue        Fix NULL wrongly checked on field change
- issue #15388 Fix allow to rollback an empty statement
- issue #14291 Fixed incorrect linkage from one table's value to another table
- issue #15446 Fix tables added from other databases are not collapsing in the designer section
- issue #14945 Fix designer page save fails if dB name contains period
- issue        Display an error when trying to import in designer a table that's already imported
- issue        Fix many bugs when adding new tables to designer
- issue        Update CodeMirror to v5.48.4
- issue        Update jQuery Migrate to v3.1.0
- issue        Update jQuery Validation to v1.19.1
- issue        Update jQuery to v3.4.1
- issue        Update js-cookie to v2.2.1
- issue        Remove fieldset closing tag when setting global privileges
- issue #15425 Fix backslash in column name resulting an error in editing
- issue #15380 Fix Status - Advisor error
- issue #15439 Fix designer page status not updated when added a new table from another database
- issue #15440 Fix page number is not being updated in the URL after saving a designer's page
- issue        Fix reloading a designer's page
- issue        Fix designer full screen mode button and text stuck when exiting full-screen mode
2019-09-21 12:38:25 +00:00

101 lines
3.4 KiB
Makefile

# $NetBSD: Makefile,v 1.160 2019/09/21 12:38:25 tm Exp $
DISTNAME= phpMyAdmin-4.9.1-all-languages
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/-all-languages//:tl}
CATEGORIES= databases www
MASTER_SITES= https://files.phpmyadmin.net/phpMyAdmin/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
MAINTAINER= tm@NetBSD.org
HOMEPAGE= https://www.phpmyadmin.net/
COMMENT= Set of PHP-scripts to adminstrate MySQL over the WWW
LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-bz2>=5.3.0:../../archivers/php-bz2
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.3.0:../../archivers/php-zip
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.3.0:../../archivers/php-zlib
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.3.0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=5.3.0:../../devel/php-gettext
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.3.0:../../databases/php-mysqli
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.3.0:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.3.0:../../textproc/php-json
.include "../../lang/php/phpversion.mk"
.if ${PKG_PHP_VERSION} < 71
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.3.0:../../security/php-mcrypt
.else
DEPENDS+= ${PHP_PKG_PREFIX}-pecl-mcrypt>=1.0.1:../../security/php-pecl-mcrypt
.endif
USE_TOOLS+= pax
APACHE_USER?= www
APACHE_GROUP?= www
PKG_GROUPS= ${APACHE_GROUP}
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
BUILD_DEFS+= APACHE_USER APACHE_GROUP VARBASE
PKG_USERS_VARS= APACHE_USER
PKG_GROUPS_VARS= APACHE_GROUP
PKG_SYSCONFSUBDIR= phpmyadmin
FILES_SUBST+= APACHE_GROUP=${APACHE_GROUP} APACHE_USER=${APACHE_USER}
FILES_SUBST+= PMCONFDIR=${PMCONFDIR} PMVARDIR=${PMVARDIR}
MESSAGE_SUBST+= PMCONFDIR=${PMCONFDIR} PMCONFFILE=${PMCONFFILE}
DOC_FILES= ChangeLog CODE_OF_CONDUCT.md CONTRIBUTING.md DCO LICENSE \
README RELEASE-DATE-${PKGVERSION_NOREV}
EXDIR= ${PREFIX}/share/examples/phpmyadmin
PMCONFDIR= ${PKG_SYSCONFDIR}
PMCONFFILE= ${PKG_SYSCONFDIR}/config.inc.php
PMDIR= ${PREFIX}/share/phpmyadmin
PMVARDIR= ${VARBASE}/phpmyadmin
REPLACE_INTERPRETER+= php
REPLACE.php.old= /usr/bin/env php
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= vendor/bin/highlight-query vendor/bin/lint-query
REPLACE_FILES.php+= vendor/phpmyadmin/sql-parser/bin/highlight-query
REPLACE_FILES.php+= vendor/phpmyadmin/sql-parser/bin/lint-query
REPLACE_FILES.php+= vendor/phpmyadmin/sql-parser/bin/tokenize-query
REPLACE_SH+= vendor/twig/twig/drupal_test.sh
CONF_FILES+= ${EXDIR}/apache.conf ${PKG_SYSCONFDIR}/apache.conf
SRCS= *.css *.ico *.php *.txt doc js libraries locale setup \
sql templates themes vendor
NO_BUILD= yes
SUBST_CLASSES+= paths
SUBST_FILES.paths+= ${WRKDIR}/phpmyadmin.conf
SUBST_FILES.paths+= ${WRKSRC}/libraries/vendor_config.php
SUBST_VARS.paths= PMDIR
SUBST_VARS.paths+= PMVARDIR
SUBST_SED.paths+= -e "s|@PMCONFDIR@|${PMCONFDIR}/|g"
SUBST_STAGE.paths= post-configure
INSTALLATION_DIRS+= ${PREFIX}/share/doc/phpmyadmin \
${PREFIX}/share/examples/phpmyadmin
post-extract:
${CP} ${FILESDIR}/phpmyadmin.conf ${WRKDIR}
do-install:
${RM} -f ${WRKSRC}/libraries/vendor_config.php.orig
cd ${WRKSRC} && pax -rw ${SRCS} ${DESTDIR}${PMDIR}
${INSTALL_DATA} ${WRKSRC}/config.sample.inc.php ${DESTDIR}${EXDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${DESTDIR}${EXDIR}
${LN} -fs ${EXDIR} ${DESTDIR}${PMDIR}/examples
cd ${WRKSRC} && \
${INSTALL_DATA} ${DOC_FILES} \
${DESTDIR}${PREFIX}/share/doc/phpmyadmin
${INSTALL_DATA} ${WRKDIR}/phpmyadmin.conf ${DESTDIR}${EXDIR}/apache.conf
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"