Created
December 13, 2013 02:49
-
-
Save chriskief/7939163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following assumes a typical MacPorts install to /opt/local | |
# create a directory to hold local ports | |
sudo mkdir /opt/custom | |
# edit /opt/local/etc/macports/sources.conf and add the following line before rsync://rsync.macports.org/release/tarballs/ports.tar | |
# file:///opt/custom | |
# create the directories to hold the port file | |
sudo mkdir -p /opt/custom/databases/mysql56/files/ | |
# grab the original portfile and save it to /opt/custom/databases/mysql56/Portfile | |
# https://trac.macports.org/browser/trunk/dports/databases/mysql56/Portfile | |
# also grab the 5 supporting files and save them in /opt/custom/databases/mysql56/files/ | |
# https://trac.macports.org/browser/trunk/dports/databases/mysql56/files | |
# update the Portfile with the following changes: | |
# Line 6: | |
# OLD: name mysql56 | |
# NEW: name mysql56-custom | |
# Line 97: | |
# OLD: -DWITH_SSL:STRING=bundled | |
# NEW: -DWITH_SSL:STRING=bundled \ | |
# -DWITH_INNODB_MEMCACHED=ON | |
# index the new port | |
cd /opt/custom | |
sudo portindex | |
# verify the port was added | |
port search mysql56-custom | |
# you should see: | |
# mysql56-custom @5.6.15 (databases) | |
# mysql56-custom-server @5.6.15 | |
# install | |
sudo port install mysql56-custom-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment