From 7a6b4bd9701fc7b13a2c2c5c7a7b4e17bcf0cb83 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Thu, 12 Jul 2012 18:06:39 +0900 Subject: [PATCH] Add setting for launchctl to start Canna server automatically. --- bootstrap.homebrew | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bootstrap.homebrew b/bootstrap.homebrew index 46923ca..6fa397b 100755 --- a/bootstrap.homebrew +++ b/bootstrap.homebrew @@ -9,10 +9,24 @@ brew -v install berkeley-db brew -v install xaw3d brew -v install gettext +if [ -f /Library/LaunchDaemons/homebrew.mxcl.canna.plist ] +then + sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist +fi +if [ -x /usr/local/sbin/cannakill ] +then + sudo /usr/local/sbin/cannakill +fi + (cd `brew --prefix` ; git pull https://github.com/chise/homebrew/) brew -v install canna +sudo sh -c "sed 's/rc\.canna/rc.canna-root/' \ + < /usr/local/Cellar/canna/3.7p3/homebrew.mxcl.canna.plist \ + > /Library/LaunchDaemons/homebrew.mxcl.canna.plist" +sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.canna.plist + brew -v install wget ./configure \ -- 1.7.10.4