[MacPorts] #52144: mariadb: support for mpkg / mdmg

MacPorts noreply at macports.org
Thu Jan 19 20:45:20 UTC 2017


#52144: mariadb: support for mpkg / mdmg
-----------------------------+---------------------
  Reporter:  ctreleaven      |      Owner:  pixilla
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  mariadb-server  |
-----------------------------+---------------------
Changes (by ctreleaven):

 * cc: mkae (removed)


Comment:

 New patch attached using Ryan's tip about using xinstall.

 Re the launchd plist name, adding 'pkg' isn't appropriate.  Keep in mind
 that a standalone installer only makes sense where MacPorts isn't
 installed.  We won't be changing anything owned by port because there are
 no ports!

 The postinstall script may be run on a virgin system or where a previous
 version of our payload is already in place.  Say the user had used our
 installer for MariaDB 5.5.n and now has our new installer for MariaDB
 5.5.n+1.  In this case, we need to have launchd unload the old version
 before we mess with it.  With a 'belt and suspenders' approach, I attempt
 the unload both in the preinstall script and the postinstall script.
 After our n+1 payload is copied into place, the postinstall script uses
 launchd to load the new version so the user can go merrily along their
 way.

 Does that clarify?

--
Ticket URL: <https://trac.macports.org/ticket/52144#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list