source: trunk/dports/databases/mysql/Portfile @ 23764

Last change on this file since 23764 was 23764, checked in by mij@…, 14 years ago

Drop maintainership on my ports. This is mainly because a) I no longer
use most of these, and b) I don't really have the time to maintain them
anymore.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 23764 2007-04-09 04:51:25Z mij@macports.org $
2
3PortSystem 1.0
4name                    mysql
5version                 3.23.58
6categories              databases
7maintainers             nomaintainer@macports.org
8description             Multithreaded SQL database server
9homepage                http://www.mysql.com/
10platforms               darwin sunos
11
12long_description        MySQL is an open-source, multi-threaded SQL database \
13                        with a command syntax very similar to mSQL.
14
15master_sites            ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.23/ \
16                        freebsd \
17                        opendarwin
18
19checksums               md5 835a96c86132fbde0db36db60c5b34cd
20
21patchfiles              patch-libmysql-violite.c patch-sql-violite.c
22
23set dbdir               ${prefix}/var/db/mysql
24
25configure.env           LDFLAGS="-L${prefix}/lib -lncurses" \
26                        CPPFLAGS="-I${prefix}/include"
27
28configure.args          --localstatedir=${dbdir} --without-server \
29                        --sysconfdir=${prefix}/etc --without-bench \
30                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info
31
32platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
33
34variant sunos   { configure.env LDFLAGS="-L${prefix}/lib" \
35                                CPPFLAGS="-I${prefix}/include" }
36
37variant innodb  { configure.args-append --with-innodb }
38
39variant server  {
40  depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
41
42  configure.args --localstatedir=${dbdir} --sysconfdir=${prefix} --without-bench
43
44  pre-destroot {  addgroup mysql
45                  set gid [existsgroup mysql]
46                  adduser mysql gid=${gid} realname=MySQL\ Server
47                  system "install -o mysql -g mysql -m 755 -d ${dbdir}" }
48
49  post-destroot { system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
50                  system "install -m 755 ${workpath}/${worksrcdir}/support-files/mysql.server ${destroot}${prefix}/etc/rc.d/mysql-server.sh"
51                  system "install -m 644 ${workpath}/${worksrcdir}/support-files/my-medium.cnf ${destroot}${prefix}/etc/my.cnf"
52                  ui_msg "===============================================================================\n"
53                  ui_msg "If this is a new installation of MySQL, you must run\n${prefix}/bin/mysql_install_db after installing this port!\n"
54                  ui_msg "You must also run:\n\n        'chown -R mysql:mysql ${dbdir}'\n\nbefore starting the MySQL daemon.\n"
55                  ui_msg "===============================================================================\n"
56  }
57}
Note: See TracBrowser for help on using the repository browser.