Changeset 3945 for trunk/dports


Ignore:
Timestamp:
Nov 15, 2003, 8:12:52 AM (17 years ago)
Author:
mij
Message:

Only depend on dlcompat for Darwin 6.

While I'm here, move the mysql user/group creation to pre-destroot and
create them before trying to create a directory that is owned by them.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql/Portfile

    r3837 r3945  
    1 # $Id: Portfile,v 1.35 2003/10/28 22:40:17 fkr Exp $
     1# $Id: Portfile,v 1.36 2003/11/15 08:12:52 mij Exp $
    22
    33PortSystem 1.0
    44name                    mysql
    55version                 3.23.57
    6 revision                1
     6revision                2
    77categories              databases
    88maintainers             mij@opendarwin.org
     
    3131                        --mandir=${prefix}/share/man
    3232
    33 variant darwin  { depends_lib lib:libdl.1:dlcompat }
     33platform darwin 6 { depends_lib-append lib:libdl.1:dlcompat }
    3434
    3535variant sunos   { configure.env LDFLAGS="-L${prefix}/lib" \
     
    4343  configure.args --localstatedir=${dbdir} --sysconfdir=${prefix} --without-bench
    4444
    45   pre-destroot { system "install -o mysql -g mysql -m 755 -d ${dbdir}" }
     45  pre-destroot {  addgroup mysql
     46                  set gid [existsgroup mysql]
     47                  adduser mysql gid=${gid} realname=MySQL\ Server
     48                  system "install -o mysql -g mysql -m 755 -d ${dbdir}" }
    4649
    47   post-destroot { addgroup mysql
    48                   set gid [existsgroup mysql]
    49                   adduser mysql gid=${gid} realname=MySQL\ Server
    50                   system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
     50  post-destroot { system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
    5151                  system "install -m 755 ${workpath}/${worksrcdir}/support-files/mysql.server ${destroot}${prefix}/etc/rc.d/mysql-server.sh"
    5252                  system "install -m 644 ${workpath}/${worksrcdir}/support-files/my-medium.cnf ${destroot}${prefix}/etc/my.cnf"
Note: See TracChangeset for help on using the changeset viewer.