From: MORIOKA Tomohiko Date: Thu, 12 Jul 2012 09:06:39 +0000 (+0900) Subject: Add setting for launchctl to start Canna server automatically. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7a6b4bd9701fc7b13a2c2c5c7a7b4e17bcf0cb83;p=chise%2Fchise-base.git Add setting for launchctl to start Canna server automatically. --- 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 \