Skip to content
Permalink
Browse files

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:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3945 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jim Mock
Jim Mock committed Nov 15, 2003
1 parent 339d304 commit bbb60764ccae60ecd09f241d9cfb899401b0c34a
Showing with 8 additions and 8 deletions.
  1. +8 −8 databases/mysql/Portfile
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.35 2003/10/28 22:40:17 fkr Exp $
# $Id: Portfile,v 1.36 2003/11/15 08:12:52 mij Exp $

PortSystem 1.0
name mysql
version 3.23.57
revision 1
revision 2
categories databases
maintainers mij@opendarwin.org
description Multithreaded SQL database server
@@ -30,7 +30,7 @@ configure.args --localstatedir=${dbdir} --without-server \
--sysconfdir=${prefix}/etc --without-bench \
--mandir=${prefix}/share/man

variant darwin { depends_lib lib:libdl.1:dlcompat }
platform darwin 6 { depends_lib-append lib:libdl.1:dlcompat }

variant sunos { configure.env LDFLAGS="-L${prefix}/lib" \
CPPFLAGS="-I${prefix}/include" }
@@ -42,12 +42,12 @@ variant server {

configure.args --localstatedir=${dbdir} --sysconfdir=${prefix} --without-bench

pre-destroot { system "install -o mysql -g mysql -m 755 -d ${dbdir}" }

post-destroot { addgroup mysql
set gid [existsgroup mysql]
pre-destroot { addgroup mysql
set gid [existsgroup mysql]
adduser mysql gid=${gid} realname=MySQL\ Server
system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
system "install -o mysql -g mysql -m 755 -d ${dbdir}" }

post-destroot { system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
system "install -m 755 ${workpath}/${worksrcdir}/support-files/mysql.server ${destroot}${prefix}/etc/rc.d/mysql-server.sh"
system "install -m 644 ${workpath}/${worksrcdir}/support-files/my-medium.cnf ${destroot}${prefix}/etc/my.cnf"
ui_msg "===============================================================================\n"

0 comments on commit bbb6076

Please sign in to comment.
You can’t perform that action at this time.