Ignore:
Timestamp:
May 20, 2013, 11:09:23 PM (7 years ago)
Author:
ryandesign@…
Message:

mysql5-server-devel: replaced_by mysql55-server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql5-server-devel/Portfile

    r96345 r106266  
    44PortSystem              1.0
    55
     6replaced_by             mysql55-server
     7PortGroup               obsolete 1.0
     8
    69name                    mysql5-server-devel
    710version                 5.5.2-m2
    8 revision                1
    9 set branch              [join [lrange [split ${version} .] 0 1] .]
     11revision                3
    1012homepage                http://www.mysql.com/
    1113categories              databases
    12 platforms               darwin
    13 maintainers             ryandesign
    1414license                 GPL-2
    15 distfiles
    16 
    17 description \
    18     Multithreaded SQL database server
    19 
    20 long_description \
    21     MySQL is an open-source, multi-threaded SQL database \
    22     with a command syntax very similar to mSQL.
    23 
    24 depends_run \
    25     port:mysql5-devel
    26 
    27 set major_version       [strsed ${version} {s/\..*$//}]
    28 set mysql               mysql${major_version}
    29 set libdir              ${prefix}/lib/${mysql}
    30 set bindir              ${libdir}/bin
    31 set dbdir               ${prefix}/var/db/${mysql}
    32 set sysconfdir          ${prefix}/etc/${mysql}
    33 
    34 if {"darwin" == ${os.platform} && ${os.major} > 8} {
    35     set mysqluser       _mysql
    36 } else {
    37     set mysqluser       mysql
    38 }
    39 
    40 startupitem.create      yes
    41 startupitem.name        ${mysql}
    42 startupitem.start       "${prefix}/share/${mysql}/mysql/mysql.server start"
    43 startupitem.stop        "${prefix}/share/${mysql}/mysql/mysql.server stop"
    44 
    45 use_configure           no
    46 supported_archs         noarch
    47 
    48 build {}
    49 
    50 destroot {
    51     addgroup ${mysqluser}
    52     set gid [existsgroup ${mysqluser}]
    53     adduser ${mysqluser} gid=${gid} realname=MySQL\ Server
    54    
    55     xinstall -m 755 -o root -d ${destroot}${prefix}/var/run
    56    
    57     xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \
    58         ${destroot}${dbdir} \
    59         ${destroot}${prefix}/var/log/${mysql} \
    60         ${destroot}${prefix}/var/run/${mysql}
    61     destroot.keepdirs-append  \
    62         ${destroot}${dbdir} \
    63         ${destroot}${prefix}/var/log/${mysql} \
    64         ${destroot}${prefix}/var/run/${mysql}
    65 }
    66 
    67 notes "If this is a new install, in order to setup the database you might want to run:" \
    68     "sudo -u ${mysqluser} mysql_install_db5"
    69 
    70 
    71 livecheck.type          regex
    72 livecheck.version       [lindex [split ${version} -] 0]
    73 livecheck.url           http://dev.mysql.com/
    74 livecheck.regex         "<a href=\"http://dev.mysql.com/downloads/mysql/\[^\"\]+\">(${branch}(\.\[0-9.\]+)?)\[^<\]*</a>"
Note: See TracChangeset for help on using the changeset viewer.