2011-09-27 21:05:11 +00:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2008-02-28 05:02:07 +00:00
2009-03-31 09:46:04 +00:00
PortSystem 1.0
2004-04-16 06:32:56 +00:00
2009-03-31 09:46:04 +00:00
name phpmyadmin
set my_name phpMyAdmin
2025-10-08 13:45:37 +02:00
version 5.2 .3
2019-01-30 11:13:52 -06:00
revision 0
2025-10-08 13:45:37 +02:00
checksums rmd160 cd0ef1cb88b5aa4f5de86ef188e801607025b94d \
sha256 57881348297 c4412f86c410547cf76b4d8a236574dd2c6b7d6a2beebe7fc44e3 \
size 7748924
2018-08-22 10:26:35 -05:00
2009-03-31 09:46:04 +00:00
categories www php databases
2022-12-15 02:19:32 +11:00
platforms any
2017-03-29 21:58:57 -05:00
maintainers { ryandesign @ ryandesign} openmaintainer
2013-05-04 11:20:12 +00:00
license GPL-2
2010-11-27 09:23:32 +00:00
supported_archs noarch
2009-03-31 09:46:04 +00:00
description A tool written in PHP intended to handle the \
2025-01-22 23:03:23 +00:00
administration of MySQL and MariaDB over the Web.
2009-03-31 09:46:04 +00:00
long_description phpMyAdmin is a tool written in PHP intended to handle \
the administration of MySQL over the Web. phpMyAdmin \
supports a wide range of operations with MySQL. The most \
frequently used operations are supported by the user \
interface ( managing databases, tables, fields, relations, \
indexes , users, permissions, etc) , while you still have \
the ability to directly execute any SQL statement.
2015-07-08 13:20:32 +00:00
homepage https:// www.phpmyadmin.net/
master_sites https:// files.phpmyadmin.net/ phpMyAdmin/ $ { version } /
2009-03-31 09:46:04 +00:00
distname $ { my_name } - $ { version } - all-languages
2012-07-10 02:10:44 +00:00
use_xz yes
2007-08-14 07:49:53 +00:00
2012-07-05 20:40:56 +00:00
# The php variants deliberately do not conflict
2025-10-08 13:45:37 +02:00
foreach php { php72 php73 php74 php80 php81 php82 php83 php84} {
2017-11-30 10:44:24 +11:00
variant $ { php } description "Use ${php}" "
depends_run-append port:${php}-gd \
port:${php}-mbstring \
port:${php}-mcrypt \
port:${php}-mysql \
2022-05-14 02:34:28 -05:00
port:${php}-openssl \
2017-11-30 10:44:24 +11:00
port:${php}-zip
"
2012-07-05 20:40:56 +00:00
}
2023-01-23 09:09:28 -06:00
if { ! [ variant_isset php72] && ! [ variant_isset php73] && ! [ variant_isset php74] \
2025-01-22 23:03:23 +00:00
&& ! [ variant_isset php80] && ! [ variant_isset php81] && ! [ variant_isset php82] && ! [ variant_isset php83]} {
default_variants + php83
2012-07-05 20:40:56 +00:00
}
2004-07-19 06:58:55 +00:00
2022-05-14 02:34:28 -05:00
set docroot $ { prefix } / www/ $ { name }
set configfile $ { docroot } / config.inc.php
set configsample $ { docroot } / config.sample.inc.php
2008-02-28 05:02:07 +00:00
2009-03-31 09:46:04 +00:00
use_configure no
build {}
2004-04-16 06:32:56 +00:00
destroot {
2022-05-14 02:34:28 -05:00
xinstall - d - m 0755 $ { destroot } $ { docroot }
copy { * }[ glob $ { worksrcpath } /* ] $ { destroot } $ { docroot }
2009-09-18 16:01:34 +00:00
}
2011-05-26 22:00:42 +00:00
notes "
phpMyAdmin must be configured before it can be used.\
2022-05-14 02:34:28 -05:00
Consult the documentation at file://${docroot}/doc/html/config.html
2011-05-26 22:00:42 +00:00
A sample configuration file is installed at ${configsample}, but you mustn’ t edit this file.\
The file to edit is the real configuration file at ${configfile}.
"
pre-activate {
if {[ file exists $ { configfile }]} {
notes-append "\n\nYour existing config file has not been modified. You should manually compare the new sample config file with your existing config file."
}
}
2009-09-21 01:34:01 +00:00
post-activate {
2009-09-17 15:36:12 +00:00
if { ! [ file exists $ { configfile }]} {
2018-12-10 10:55:53 -06:00
xinstall - m 0644 $ { configsample } $ { configfile }
2009-09-17 15:36:12 +00:00
}
2005-02-28 22:26:40 +00:00
}
2007-08-14 07:49:53 +00:00
2009-09-17 15:36:12 +00:00
livecheck.type regex
2011-05-26 22:03:42 +00:00
livecheck.url $ { homepage } home_page/ version.php
livecheck.regex { ^ ([ 0-9. ] + ) $ }