aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/couchdb-lucene.rb1
-rw-r--r--Library/Formula/couchdb.rb5
-rw-r--r--Library/Formula/d-bus.rb5
-rw-r--r--Library/Formula/jenkins.rb5
-rw-r--r--Library/Formula/memcached.rb7
-rw-r--r--Library/Formula/mongodb.rb5
-rw-r--r--Library/Formula/mysql.rb11
-rw-r--r--Library/Formula/nginx.rb3
-rw-r--r--Library/Formula/postgresql.rb5
-rw-r--r--Library/Formula/redis.rb5
10 files changed, 31 insertions, 21 deletions
diff --git a/Library/Formula/couchdb-lucene.rb b/Library/Formula/couchdb-lucene.rb
index 12ddde2f7..919e1a62c 100644
--- a/Library/Formula/couchdb-lucene.rb
+++ b/Library/Formula/couchdb-lucene.rb
@@ -24,6 +24,7 @@ class CouchdbLucene <Formula
def caveats; <<-EOS
You can enable couchdb-lucene to automatically load on login with:
+ mkdir -p ~/Library/LaunchAgents
cp "#{prefix}/couchdb-lucene.plist" ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/couchdb-lucene.plist
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb
index 1393f9926..eec9145d8 100644
--- a/Library/Formula/couchdb.rb
+++ b/Library/Formula/couchdb.rb
@@ -28,12 +28,13 @@ class Couchdb <Formula
def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
- cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
If this is an upgrade and you already have the org.apache.couchdb.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.apache.couchdb.plist
- cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents
+ cp #{prefix}/Library/LaunchDaemons/org.apache.couchdb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.apache.couchdb.plist
Or start manually with:
diff --git a/Library/Formula/d-bus.rb b/Library/Formula/d-bus.rb
index 2355b7d9f..1959bcf83 100644
--- a/Library/Formula/d-bus.rb
+++ b/Library/Formula/d-bus.rb
@@ -38,12 +38,13 @@ class DBus <Formula
def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
- cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
- cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents
+ cp #{prefix}/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
EOS
end
diff --git a/Library/Formula/jenkins.rb b/Library/Formula/jenkins.rb
index 1d247c89b..31d3379f7 100644
--- a/Library/Formula/jenkins.rb
+++ b/Library/Formula/jenkins.rb
@@ -13,12 +13,13 @@ class Jenkins <Formula
def caveats; <<-EOS
If this is your first install, automatically load on login with:
- cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.jenkins-ci.plist
If this is an upgrade and you already have the org.jenkins-ci.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.jenkins-ci.plist
- cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents
+ cp #{prefix}/org.jenkins-ci.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.jenkins-ci.plist
Or start it manually:
diff --git a/Library/Formula/memcached.rb b/Library/Formula/memcached.rb
index 835d24ff7..d292fe68a 100644
--- a/Library/Formula/memcached.rb
+++ b/Library/Formula/memcached.rb
@@ -25,13 +25,14 @@ class Memcached <Formula
def caveats; <<-EOS.undent
You can enable memcached to automatically load on login with:
+ mkdir -p ~/Library/LaunchAgents
cp #{prefix}/com.danga.memcached.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.danga.memcached.plist
- Or start it manually:
- #{HOMEBREW_PREFIX}/bin/memcached
+ Or start it manually:
+ #{HOMEBREW_PREFIX}/bin/memcached
- Add "-d" to start it as a daemon.
+ Add "-d" to start it as a daemon.
EOS
end
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 76669755d..22460150e 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -35,12 +35,13 @@ class Mongodb <Formula
def caveats; <<-EOS
If this is your first install, automatically load on login with:
- cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
If this is an upgrade and you already have the org.mongodb.mongod.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
- cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
+ cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
Or start it manually:
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 0263f13d4..edb43a644 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -72,12 +72,13 @@ class Mysql <Formula
mysql_install_db
If this is your first install, automatically load on login with:
- cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
If this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
- cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
Note on upgrading:
@@ -115,11 +116,11 @@ end
__END__
---- old/scripts/mysqld_safe.sh 2009-09-02 04:10:39.000000000 -0400
-+++ new/scripts/mysqld_safe.sh 2009-09-02 04:52:55.000000000 -0400
+--- old/scripts/mysqld_safe.sh 2009-09-02 04:10:39.000000000 -0400
++++ new/scripts/mysqld_safe.sh 2009-09-02 04:52:55.000000000 -0400
@@ -383,7 +383,7 @@
fi
-
+
USER_OPTION=""
-if test -w / -o "$USER" = "root"
+if test -w /sbin -o "$USER" = "root"
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index 1465f90ca..7f28292ab 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -64,7 +64,8 @@ change that to localhost:80, and run `sudo nginx`. You'll need to turn off
any other web servers running port 80, of course.
You can start nginx automatically on login with:
- cp #{prefix}/org.nginx.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/org.nginx.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.nginx.plist
CAVEATS
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index d01ae65cc..a3dd8b966 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -100,12 +100,13 @@ If this is your first install, create a database with:
initdb #{var}/postgres
If this is your first install, automatically load on login with:
- cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
- cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
+ cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
Or start manually with:
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb
index cf9c052be..bebd1f930 100644
--- a/Library/Formula/redis.rb
+++ b/Library/Formula/redis.rb
@@ -34,12 +34,13 @@ class Redis <Formula
def caveats
<<-EOS.undent
If this is your first install, automatically load on login with:
- cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
+ mkdir -p ~/Library/LaunchAgents
+ cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
If this is an upgrade and you already have the io.redis.redis-server.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist
- cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents
+ cp #{prefix}/io.redis.redis-server.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
To start redis manually: