From 78db55225bc8e90eeb1a19e122c9d3dd8b9018ea Mon Sep 17 00:00:00 2001 From: Jochen Neumeister Date: Sun, 29 Dec 2019 00:20:16 +0000 Subject: Welcome phpmyadmin5 Changelog: https://www.phpmyadmin.net/news/2019/12/26/phpmyadmin-500-released/ Sponsored by: Netzkommune GmbH --- databases/Makefile | 2 +- databases/phpmyadmin-devel/Makefile | 99 ---------------------- databases/phpmyadmin-devel/distinfo | 3 - .../phpmyadmin-devel/files/config.inc.php.sample | 14 --- databases/phpmyadmin-devel/files/pkg-message.in | 48 ----------- databases/phpmyadmin-devel/pkg-descr | 34 -------- databases/phpmyadmin-devel/pkg-plist-chunk | 2 - databases/phpmyadmin5/Makefile | 99 ++++++++++++++++++++++ databases/phpmyadmin5/distinfo | 3 + databases/phpmyadmin5/files/config.inc.php.sample | 14 +++ databases/phpmyadmin5/files/pkg-message.in | 48 +++++++++++ databases/phpmyadmin5/pkg-descr | 34 ++++++++ databases/phpmyadmin5/pkg-plist-chunk | 2 + 13 files changed, 201 insertions(+), 201 deletions(-) delete mode 100644 databases/phpmyadmin-devel/Makefile delete mode 100644 databases/phpmyadmin-devel/distinfo delete mode 100644 databases/phpmyadmin-devel/files/config.inc.php.sample delete mode 100644 databases/phpmyadmin-devel/files/pkg-message.in delete mode 100644 databases/phpmyadmin-devel/pkg-descr delete mode 100644 databases/phpmyadmin-devel/pkg-plist-chunk create mode 100644 databases/phpmyadmin5/Makefile create mode 100644 databases/phpmyadmin5/distinfo create mode 100644 databases/phpmyadmin5/files/config.inc.php.sample create mode 100644 databases/phpmyadmin5/files/pkg-message.in create mode 100644 databases/phpmyadmin5/pkg-descr create mode 100644 databases/phpmyadmin5/pkg-plist-chunk (limited to 'databases') diff --git a/databases/Makefile b/databases/Makefile index 7195743f951f..3e098348560e 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -659,7 +659,7 @@ SUBDIR += phpliteadmin SUBDIR += phpminiadmin SUBDIR += phpmyadmin - SUBDIR += phpmyadmin-devel + SUBDIR += phpmyadmin5 SUBDIR += phppgadmin SUBDIR += pldebugger SUBDIR += plpgsql_check diff --git a/databases/phpmyadmin-devel/Makefile b/databases/phpmyadmin-devel/Makefile deleted file mode 100644 index b82d8f942b00..000000000000 --- a/databases/phpmyadmin-devel/Makefile +++ /dev/null @@ -1,99 +0,0 @@ -# $FreeBSD$ - -PORTNAME= phpMyAdmin -DISTVERSION= 5.0.0-rc1 -CATEGORIES= databases www -MASTER_SITES= https://files.phpmyadmin.net/${PORTNAME}/${DISTVERSION}/ -DISTNAME= ${PORTNAME}-${DISTVERSION}-all-languages -PKGNAMESUFFIX= -devel${PHP_PKGNAMESUFFIX} - -MAINTAINER= joneum@FreeBSD.org -COMMENT= Set of PHP-scripts to manage MySQL over the web - -LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/LICENSE - -USES= cpe php:web,flavors tar:xz -CPE_PRODUCT= ${PORTNAME:tl} - -NO_ARCH= yes -NO_BUILD= yes -.if !defined(WITHOUT_PHP_DEPENDS) - -# Note: composer.json files in the source list pcre as a required -# extension, but pcre is compiled into PHP as standard on FreeBSD. -# spl, libsodium are only required in the bundled vendor code. PMA -# could, in principle, also use the PHP dbase extension, but it's not -# available for PHP >= 7.0 and of only minority interest. - -USE_PHP= ctype filter hash json mysqli session spl xml -.endif - -# Note: default settings will pull in X11 client support. If you don't -# want this, either turn off GD in the config dialog, or else turn off -# FONTCONFIG in the graphics/gd port options. - -OPTIONS_DEFINE= BZ2 CURL GD GMP MBSTRING OPCACHE OPENSSL PDF \ - SODIUM ZIP ZLIB -OPTIONS_DEFAULT= BZ2 GD MBSTRING OPENSSL ZIP ZLIB - -BZ2_DESC= PHP bzip2 library support -CURL_DESC= PHP curl support -GD_DESC= PHP GD library support (requires X11) -GMP_DESC= PHP GMP library support -MBSTRING_DESC= PHP Multi-byte String support -OPCACHE_DESC= PHP Opcache support -OPENSSL_DESC= PHP OpenSSL support -PDF_DESC= PHP PDFlib support -SODIUM_DESC= PHP libsodium support (only available for PHP >= 7.2) -ZIP_DESC= PHP Zip compression support -ZLIB_DESC= PHP ZLIB support - -.include - -GROUPS?= ${WWWGRP} -CFG_FILE= config.inc.php - -PLIST= ${WRKDIR}/plist -PLIST_SUB+= PMA_GRP=${GROUPS} - -SUB_LIST+= PKGNAME=${PKGNAME} \ - CFG_FILE=${WWWDIR}/${CFG_FILE} -SUB_FILES+= pkg-message - -.if !defined(WITHOUT_PHP_DEPENDS) - -.for opt in ${OPTIONS_DEFINE} -. if ${PORT_OPTIONS:M${opt}} -USE_PHP+= ${opt:tl} -. endif -.endfor - -.endif - -.SILENT: - -post-patch: - cd ${WRKSRC} ; \ - ${CP} ${FILESDIR}/${CFG_FILE}.sample ${WRKSRC}/${CFG_FILE}.sample ; \ - ${FIND} . ! -type d ! -name ${CFG_FILE}.sample ! -name '*.bak' | \ - ${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \ - ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ - for emptydir in $$( ${FIND} . -type d -empty -print | \ - ${SED} -e "s,^\.,%%WWWDIR%%," ) ; do \ - ${ECHO} "@dir $${emptydir}" >>${PLIST} ; \ - done ; \ - -do-install: - cd ${WRKSRC} ; \ - for src in $$( ${FIND} . ! -name .cvsignore ! -name '*.bak' ) ; do \ - dst=${STAGEDIR}${WWWDIR}$${src#.} ; \ - if ${TEST} -d "$$src" ; then \ - ${MKDIR} "$$dst" ; \ - else \ - ${INSTALL_DATA} "$$src" "$$dst" ; \ - fi \ - done - @${MKDIR} ${STAGEDIR}${WWWDIR}/tmp - -.include diff --git a/databases/phpmyadmin-devel/distinfo b/databases/phpmyadmin-devel/distinfo deleted file mode 100644 index a645b15d025a..000000000000 --- a/databases/phpmyadmin-devel/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1575370876 -SHA256 (phpMyAdmin-5.0.0-rc1-all-languages.tar.xz) = c3ef07170d6518e8bf35d658ff9eaf7c2613796925da53c5ec1c95499103ee6c -SIZE (phpMyAdmin-5.0.0-rc1-all-languages.tar.xz) = 8120796 diff --git a/databases/phpmyadmin-devel/files/config.inc.php.sample b/databases/phpmyadmin-devel/files/config.inc.php.sample deleted file mode 100644 index 73f35478b952..000000000000 --- a/databases/phpmyadmin-devel/files/config.inc.php.sample +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/databases/phpmyadmin-devel/files/pkg-message.in b/databases/phpmyadmin-devel/files/pkg-message.in deleted file mode 100644 index c59745d76ae7..000000000000 --- a/databases/phpmyadmin-devel/files/pkg-message.in +++ /dev/null @@ -1,48 +0,0 @@ -[ -{ type: install - message: < - Options none - AllowOverride Limit - - Order Deny,Allow - Deny from all - Allow from 127.0.0.1 .example.com - - -For Apache version 2.4.x or above: - - Alias /phpmyadmin/ "%%WWWDIR%%/" - - - Options None - AllowOverride Limit - - Require local - Require host .example.com - - -SECURITY NOTE: phpMyAdmin is an administrative tool that has had several -remote vulnerabilities discovered in the past, some allowing remote -attackers to execute arbitrary code with the web server's user credential. -All known problems have been fixed, but the FreeBSD Security Team strongly -advises that any instance be protected with an additional protection layer, -e.g. a different access control mechanism implemented by the web server -as shown in the example. Do consider enabling phpMyAdmin only when it -is in use. -EOM -} -] diff --git a/databases/phpmyadmin-devel/pkg-descr b/databases/phpmyadmin-devel/pkg-descr deleted file mode 100644 index c81c2d88f74d..000000000000 --- a/databases/phpmyadmin-devel/pkg-descr +++ /dev/null @@ -1,34 +0,0 @@ -Currently phpMyAdmin can: - - * browse and drop databases, tables, views, columns and indexes - * display multiple results sets through stored procedures or queries - * create, copy, drop, rename and alter databases, tables, columns - and indexes - * maintain server, databases and tables, with proposals on server - configuration - * execute, edit and bookmark any SQL-statement, even batch-queries - * load text files into tables - * create and read dumps of tables - * export data to various formats: CSV, XML, PDF, ISO/IEC 26300 - - OpenDocument Text and Spreadsheet, Microsoft Word 2000, and - LATEX formats - * import data and MySQL structures from OpenDocument spreadsheets, - as well as XML, CSV, and SQL files - * administer multiple servers - * manage MySQL users and privileges - * check referential integrity in MyISAM tables - * using Query-by-example (QBE), create complex queries - automatically connecting required tables - * create PDF graphics of your database layout - * search globally in a database or a subset of it - * transform stored data into any format using a set of predefined - functions, like displaying BLOB-data as image or download-link - * track changes on databases, tables and views - * support InnoDB tables and foreign keys - * support mysqli, the improved MySQL extension - * create, edit, call, export and drop stored procedures and - functions - * create, edit, export and drop events and triggers - * communicate in 62 different languages - -WWW: https://www.phpmyadmin.net/ diff --git a/databases/phpmyadmin-devel/pkg-plist-chunk b/databases/phpmyadmin-devel/pkg-plist-chunk deleted file mode 100644 index 45a66a99133a..000000000000 --- a/databases/phpmyadmin-devel/pkg-plist-chunk +++ /dev/null @@ -1,2 +0,0 @@ -@sample(,%%PMA_GRP%%,640) %%WWWDIR%%/config.inc.php.sample -@dir(,%%PMA_GRP%%,770) %%WWWDIR%%/tmp diff --git a/databases/phpmyadmin5/Makefile b/databases/phpmyadmin5/Makefile new file mode 100644 index 000000000000..d87920766a41 --- /dev/null +++ b/databases/phpmyadmin5/Makefile @@ -0,0 +1,99 @@ +# $FreeBSD$ + +PORTNAME= phpMyAdmin +DISTVERSION= 5.0.0 +CATEGORIES= databases www +MASTER_SITES= https://files.phpmyadmin.net/${PORTNAME}/${DISTVERSION}/ +DISTNAME= ${PORTNAME}-${DISTVERSION}-all-languages +PKGNAMESUFFIX= 5${PHP_PKGNAMESUFFIX} + +MAINTAINER= joneum@FreeBSD.org +COMMENT= Set of PHP-scripts to manage MySQL over the web + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cpe php:web,flavors tar:xz +CPE_PRODUCT= ${PORTNAME:tl} + +NO_ARCH= yes +NO_BUILD= yes +.if !defined(WITHOUT_PHP_DEPENDS) + +# Note: composer.json files in the source list pcre as a required +# extension, but pcre is compiled into PHP as standard on FreeBSD. +# spl, libsodium are only required in the bundled vendor code. PMA +# could, in principle, also use the PHP dbase extension, but it's not +# available for PHP >= 7.0 and of only minority interest. + +USE_PHP= ctype filter hash json mysqli session spl xml +.endif + +# Note: default settings will pull in X11 client support. If you don't +# want this, either turn off GD in the config dialog, or else turn off +# FONTCONFIG in the graphics/gd port options. + +OPTIONS_DEFINE= BZ2 CURL GD GMP MBSTRING OPCACHE OPENSSL PDF \ + SODIUM ZIP ZLIB +OPTIONS_DEFAULT= BZ2 GD MBSTRING OPENSSL ZIP ZLIB + +BZ2_DESC= PHP bzip2 library support +CURL_DESC= PHP curl support +GD_DESC= PHP GD library support (requires X11) +GMP_DESC= PHP GMP library support +MBSTRING_DESC= PHP Multi-byte String support +OPCACHE_DESC= PHP Opcache support +OPENSSL_DESC= PHP OpenSSL support +PDF_DESC= PHP PDFlib support +SODIUM_DESC= PHP libsodium support (only available for PHP >= 7.2) +ZIP_DESC= PHP Zip compression support +ZLIB_DESC= PHP ZLIB support + +.include + +GROUPS?= ${WWWGRP} +CFG_FILE= config.inc.php + +PLIST= ${WRKDIR}/plist +PLIST_SUB+= PMA_GRP=${GROUPS} + +SUB_LIST+= PKGNAME=${PKGNAME} \ + CFG_FILE=${WWWDIR}/${CFG_FILE} +SUB_FILES+= pkg-message + +.if !defined(WITHOUT_PHP_DEPENDS) + +.for opt in ${OPTIONS_DEFINE} +. if ${PORT_OPTIONS:M${opt}} +USE_PHP+= ${opt:tl} +. endif +.endfor + +.endif + +.SILENT: + +post-patch: + cd ${WRKSRC} ; \ + ${CP} ${FILESDIR}/${CFG_FILE}.sample ${WRKSRC}/${CFG_FILE}.sample ; \ + ${FIND} . ! -type d ! -name ${CFG_FILE}.sample ! -name '*.bak' | \ + ${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \ + ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ + for emptydir in $$( ${FIND} . -type d -empty -print | \ + ${SED} -e "s,^\.,%%WWWDIR%%," ) ; do \ + ${ECHO} "@dir $${emptydir}" >>${PLIST} ; \ + done ; \ + +do-install: + cd ${WRKSRC} ; \ + for src in $$( ${FIND} . ! -name .cvsignore ! -name '*.bak' ) ; do \ + dst=${STAGEDIR}${WWWDIR}$${src#.} ; \ + if ${TEST} -d "$$src" ; then \ + ${MKDIR} "$$dst" ; \ + else \ + ${INSTALL_DATA} "$$src" "$$dst" ; \ + fi \ + done + @${MKDIR} ${STAGEDIR}${WWWDIR}/tmp + +.include diff --git a/databases/phpmyadmin5/distinfo b/databases/phpmyadmin5/distinfo new file mode 100644 index 000000000000..2c2ddd3ffe59 --- /dev/null +++ b/databases/phpmyadmin5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1577577632 +SHA256 (phpMyAdmin-5.0.0-all-languages.tar.xz) = cd1c1f1473b82a4d0de298ecadc1bf40e8d9cb4b9bdf44c8813ce7638dee02f2 +SIZE (phpMyAdmin-5.0.0-all-languages.tar.xz) = 8130456 diff --git a/databases/phpmyadmin5/files/config.inc.php.sample b/databases/phpmyadmin5/files/config.inc.php.sample new file mode 100644 index 000000000000..73f35478b952 --- /dev/null +++ b/databases/phpmyadmin5/files/config.inc.php.sample @@ -0,0 +1,14 @@ + diff --git a/databases/phpmyadmin5/files/pkg-message.in b/databases/phpmyadmin5/files/pkg-message.in new file mode 100644 index 000000000000..c59745d76ae7 --- /dev/null +++ b/databases/phpmyadmin5/files/pkg-message.in @@ -0,0 +1,48 @@ +[ +{ type: install + message: < + Options none + AllowOverride Limit + + Order Deny,Allow + Deny from all + Allow from 127.0.0.1 .example.com + + +For Apache version 2.4.x or above: + + Alias /phpmyadmin/ "%%WWWDIR%%/" + + + Options None + AllowOverride Limit + + Require local + Require host .example.com + + +SECURITY NOTE: phpMyAdmin is an administrative tool that has had several +remote vulnerabilities discovered in the past, some allowing remote +attackers to execute arbitrary code with the web server's user credential. +All known problems have been fixed, but the FreeBSD Security Team strongly +advises that any instance be protected with an additional protection layer, +e.g. a different access control mechanism implemented by the web server +as shown in the example. Do consider enabling phpMyAdmin only when it +is in use. +EOM +} +] diff --git a/databases/phpmyadmin5/pkg-descr b/databases/phpmyadmin5/pkg-descr new file mode 100644 index 000000000000..c81c2d88f74d --- /dev/null +++ b/databases/phpmyadmin5/pkg-descr @@ -0,0 +1,34 @@ +Currently phpMyAdmin can: + + * browse and drop databases, tables, views, columns and indexes + * display multiple results sets through stored procedures or queries + * create, copy, drop, rename and alter databases, tables, columns + and indexes + * maintain server, databases and tables, with proposals on server + configuration + * execute, edit and bookmark any SQL-statement, even batch-queries + * load text files into tables + * create and read dumps of tables + * export data to various formats: CSV, XML, PDF, ISO/IEC 26300 - + OpenDocument Text and Spreadsheet, Microsoft Word 2000, and + LATEX formats + * import data and MySQL structures from OpenDocument spreadsheets, + as well as XML, CSV, and SQL files + * administer multiple servers + * manage MySQL users and privileges + * check referential integrity in MyISAM tables + * using Query-by-example (QBE), create complex queries + automatically connecting required tables + * create PDF graphics of your database layout + * search globally in a database or a subset of it + * transform stored data into any format using a set of predefined + functions, like displaying BLOB-data as image or download-link + * track changes on databases, tables and views + * support InnoDB tables and foreign keys + * support mysqli, the improved MySQL extension + * create, edit, call, export and drop stored procedures and + functions + * create, edit, export and drop events and triggers + * communicate in 62 different languages + +WWW: https://www.phpmyadmin.net/ diff --git a/databases/phpmyadmin5/pkg-plist-chunk b/databases/phpmyadmin5/pkg-plist-chunk new file mode 100644 index 000000000000..45a66a99133a --- /dev/null +++ b/databases/phpmyadmin5/pkg-plist-chunk @@ -0,0 +1,2 @@ +@sample(,%%PMA_GRP%%,640) %%WWWDIR%%/config.inc.php.sample +@dir(,%%PMA_GRP%%,770) %%WWWDIR%%/tmp -- cgit v1.2.3