[98782] trunk/dports/databases/mysql5/Portfile
pixilla at macports.org
pixilla at macports.org
Mon Oct 15 13:21:02 PDT 2012
Revision: 98782
http://trac.macports.org//changeset/98782
Author: pixilla at macports.org
Date: 2012-10-15 13:21:02 -0700 (Mon, 15 Oct 2012)
Log Message:
-----------
databases/mysql5:
- Use add_users instead of adduser and addgroup.
Modified Paths:
--------------
trunk/dports/databases/mysql5/Portfile
Modified: trunk/dports/databases/mysql5/Portfile
===================================================================
--- trunk/dports/databases/mysql5/Portfile 2012-10-15 20:16:56 UTC (rev 98781)
+++ trunk/dports/databases/mysql5/Portfile 2012-10-15 20:21:02 UTC (rev 98782)
@@ -5,6 +5,9 @@
name mysql5
version 5.1.66
+# Please set revision_client and revision_server to 0 if you bump version.
+set revision_client 1
+set revision_server 1
set branch [join [lrange [split ${version} .] 0 1] .]
homepage http://www.mysql.com/
categories databases
@@ -45,6 +48,7 @@
} else {
set mysqluser mysql
}
+add_users ${mysqluser} group=${mysqluser} realname=MySQL\ Server
if {${name} == ${subport}} {
@@ -53,6 +57,7 @@
# http://bugs.mysql.com/bug.php?id=47360
PortGroup muniversal 1.0
+ revision ${revision_client}
conflicts mysql5-devel mysql4
depends_lib \
port:zlib \
@@ -154,6 +159,7 @@
subport mysql5-server {
+ revision ${revision_server}
conflicts mysql5-server-devel
supported_archs noarch
@@ -167,10 +173,7 @@
build {}
destroot {
- addgroup ${mysqluser}
- set gid [existsgroup ${mysqluser}]
- adduser ${mysqluser} gid=${gid} realname=MySQL\ Server
-
+
xinstall -m 755 -o root -d ${destroot}${prefix}/var/run
xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121015/f3fd9f06/attachment.html>
More information about the macports-changes
mailing list