source: trunk/dports/www/phpmyadmin/Portfile

Last change on this file was 151574, checked in by ryandesign@…, 15 months ago

phpmyadmin: update to 4.6.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- 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
2# $Id: Portfile 151574 2016-08-18 08:01:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                phpmyadmin
7set my_name         phpMyAdmin
8version             4.6.4
9categories          www php databases
10platforms           darwin freebsd
11maintainers         ryandesign openmaintainer
12license             GPL-2
13supported_archs     noarch
14
15description         A tool written in PHP intended to handle the \
16                    administration of MySQL over the Web.
17long_description    phpMyAdmin is a tool written in PHP intended to handle \
18                    the administration of MySQL over the Web. phpMyAdmin \
19                    supports a wide range of operations with MySQL. The most \
20                    frequently used operations are supported by the user \
21                    interface (managing databases, tables, fields, relations, \
22                    indexes, users, permissions, etc), while you still have \
23                    the ability to directly execute any SQL statement.
24homepage            https://www.phpmyadmin.net/
25master_sites        https://files.phpmyadmin.net/phpMyAdmin/${version}/
26distname            ${my_name}-${version}-all-languages
27use_xz              yes
28
29checksums           sha1    9ae9e5a8d917960106f8359ea555e31097e12a77 \
30                    rmd160  445f08b898ad4255e94abfbc4035db3500114f12 \
31                    sha256  f2ea32a2971efcab073ad41b6512475af1b6da70cf800a5586a12cf49797d319
32
33# The php variants deliberately do not conflict
34
35foreach php {php55 php56 php70} {
36    eval [subst {
37        variant ${php} description "Use ${php}" {
38            depends_run-append  port:${php}-gd \
39                                port:${php}-mbstring \
40                                port:${php}-mcrypt \
41                                port:${php}-mysql \
42                                port:${php}-zip
43        }
44    }]
45}
46
47if {![variant_isset php55] && ![variant_isset php56] && ![variant_isset php70]} {
48    default_variants +php70
49}
50
51set docroot         ${destroot}${prefix}/www/${name}
52set configfile      ${prefix}/www/${name}/config.inc.php
53set configsample    ${prefix}/www/${name}/config.sample.inc.php
54
55use_configure       no
56build               {}
57
58destroot {
59    xinstall -d -m 0755 ${docroot}
60    copy {*}[glob ${worksrcpath}/*] ${docroot}
61}
62
63notes "
64phpMyAdmin must be configured before it can be used.\
65Consult the documentation at file://${prefix}/www/phpmyadmin/Documentation.html#config
66
67A sample configuration file is installed at ${configsample}, but you mustn’t edit this file.\
68The file to edit is the real configuration file at ${configfile}.
69"
70
71pre-activate {
72    if {[file exists ${configfile}]} {
73        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."
74    }
75}
76
77post-activate {
78    if {![file exists ${configfile}]} {
79        xinstall -m 644 ${configsample} ${configfile}
80    }
81}
82
83livecheck.type      regex
84livecheck.url       ${homepage}home_page/version.php
85livecheck.regex     {^([0-9.]+)$}
Note: See TracBrowser for help on using the repository browser.