Fix plist permissions for Lion

This commit is contained in:
Adam Vandenberg 2011-09-02 14:41:57 -07:00
parent d64abd588c
commit d205c72966
24 changed files with 35 additions and 10 deletions

View file

@ -40,6 +40,7 @@ class Cherokee < Formula
system "make install"
prefix.install "org.cherokee.webserver.plist"
(prefix+'org.cherokee.webserver.plist').chmod 0644
(share+'cherokee/admin/server.py').chmod 0755
end
end

View file

@ -18,19 +18,20 @@ class CouchdbLucene < Formula
system "mv couchdb-lucene-#{version}/* #{prefix}"
(etc + "couchdb/local.d/couchdb-lucene.ini").write ini_file
(prefix + "couchdb-lucene.plist").write plist_file
(prefix+"couchdb-lucene.plist").write plist_file
(prefix+"couchdb-lucene.plist").chmod 0644
end
def caveats; <<-EOS
You can enable couchdb-lucene to automatically load on login with:
def caveats; <<-EOS.undent
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
mkdir -p ~/Library/LaunchAgents
cp "#{prefix}/couchdb-lucene.plist" ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/couchdb-lucene.plist
Or start it manually with:
#{bin}/run
EOS
Or start it manually with:
#{bin}/run
EOS
end
def ini_file

View file

@ -23,6 +23,7 @@ class Couchdb < Formula
system "make"
system "make install"
(prefix+"Library/LaunchDaemons/org.apache.couchdb.plist").chmod 0644
(lib+'couchdb/bin/couchjs').chmod 0755
(var+'lib/couchdb').mkpath
(var+'log/couchdb').mkpath

View file

@ -14,7 +14,6 @@ class DBus < Formula
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
ENV["TMPDIR"] = "/tmp"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-xml-docs",
@ -26,6 +25,8 @@ class DBus < Formula
ENV.deparallelize
system "make install"
(prefix+'org.freedesktop.dbus-session.plist').chmod 0644
# Generate D-Bus's UUID for this machine
system "#{bin}/dbus-uuidgen", "--ensure=#{prefix}/var/lib/dbus/machine-id"
end

View file

@ -40,6 +40,7 @@ class Ddclient < Formula
# Write the launchd script
(prefix + 'org.ddclient.plist').write startup_plist
(prefix + 'org.ddclient.plist').chmod 0644
end
def caveats; <<-EOS

View file

@ -21,6 +21,7 @@ class Dnsmasq < Formula
prefix.install "dnsmasq.conf.example"
(prefix + "uk.org.thekelleys.dnsmasq.plist").write startup_plist
(prefix + "uk.org.thekelleys.dnsmasq.plist").chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -29,6 +29,7 @@ class Elasticsearch < Formula
# Write PLIST file for `launchd`
(prefix+'org.elasticsearch.plist').write startup_plist
(prefix+'org.elasticsearch.plist').chmod 0644
end
def caveats

View file

@ -67,7 +67,9 @@ class IscDhcp < Formula
# sample launchd plists
(prefix+'org.isc.dhcpd.plist').write dhcpd_plist
(prefix+'org.isc.dhcpd.plist').chmod 0644
(prefix+'org.isc.dhcpd6.plist').write dhcpd6_plist
(prefix+'org.isc.dhcpd6.plist').chmod 0644
end
def caveats

View file

@ -9,6 +9,7 @@ class Jenkins < Formula
def install
lib.install "jenkins.war"
(prefix+'org.jenkins-ci.plist').write startup_plist
(prefix+'org.jenkins-ci.plist').chmod 0644
end
def caveats; <<-EOS

View file

@ -59,6 +59,7 @@ class Mariadb < Formula
(prefix+'sql-bench').rmtree unless ARGV.include? '--with-bench'
(prefix+'com.mysql.mysqld.plist').write startup_plist
(prefix+'com.mysql.mysqld.plist').chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -21,6 +21,7 @@ class Memcached < Formula
system "make install"
(prefix+'com.danga.memcached.plist').write startup_plist
(prefix+'com.danga.memcached.plist').chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -59,6 +59,7 @@ class Mongodb < Formula
# Write the configuration files and launchd script
(prefix+'mongod.conf').write mongodb_conf
(prefix+'org.mongodb.mongod.plist').write startup_plist
(prefix+'org.mongodb.mongod.plist').chmod 0644
end
def caveats

View file

@ -70,6 +70,7 @@ class Mysql < Formula
system "make install"
(prefix+'com.mysql.mysqld.plist').write startup_plist
(prefix+'com.mysql.mysqld.plist').chmod 0644
# Don't create databases inside of the prefix!
# See: https://github.com/mxcl/homebrew/issues/4975

View file

@ -56,6 +56,7 @@ class Nginx < Formula
system "make install"
(prefix+'org.nginx.nginx.plist').write startup_plist
(prefix+'org.nginx.nginx.plist').chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -12,6 +12,7 @@ class OfflineImap < Formula
bin.mkpath
ln_s libexec+'offlineimap.py', bin+'offlineimap'
(prefix+'org.offlineimap.plist').write startup_plist
(prefix+'org.offlineimap.plist').chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -39,6 +39,7 @@ class Openvpn < Formula
# Write the launchd script
(prefix + 'org.openvpn.plist').write startup_plist
(prefix + 'org.openvpn.plist').chmod 0644
end
def caveats; <<-EOS

View file

@ -16,6 +16,7 @@ class Pgbouncer < Formula
etc.install %w(etc/pgbouncer.ini etc/userlist.txt)
(prefix+'org.postgresql.pgbouncer.plist').write startup_plist
(prefix+'org.postgresql.pgbouncer.plist').chmod 0644
end
def caveats

View file

@ -17,6 +17,7 @@ class Pincaster < Formula
etc.install "pincaster.conf"
(var+"db/pincaster/").mkpath
(prefix+'com.github.pincaster.plist').write startup_plist
(prefix+'com.github.pincaster.plist').chmod 0644
end
def caveats

View file

@ -64,6 +64,7 @@ class Postgresql < Formula
end
(prefix+'org.postgresql.postgres.plist').write startup_plist
(prefix+'org.postgresql.postgres.plist').chmod 0644
end
def check_python_arch

View file

@ -36,6 +36,7 @@ class Rabbitmq < Formula
inreplace sbin+'rabbitmq-env', '${SCRIPT_DIR}/..', target_dir
(prefix+'com.rabbitmq.rabbitmq-server.plist').write startup_plist
(prefix+'com.rabbitmq.rabbitmq-server.plist').chmod 0644
end
def caveats

View file

@ -31,6 +31,7 @@ class Redis < Formula
doc.install Dir["doc/*"]
etc.install "redis.conf"
(prefix+'io.redis.redis-server.plist').write startup_plist
(prefix+'io.redis.redis-server.plist').chmod 0644
end
def caveats

View file

@ -14,6 +14,7 @@ class Sickbeard < Formula
bin.mkpath
(bin+"sickbeard").write(startup_script)
(prefix+"com.sickbeard.sickbeard.plist").write(startup_plist)
(prefix+"com.sickbeard.sickbeard.plist").chmod 0644
end
def startup_plist; <<-EOS.undent

View file

@ -11,6 +11,7 @@ class Staticrouted < Formula
sbin.install ["build/Release/staticroute", "build/Release/staticrouted"]
man8.install ["staticroute.8", "staticrouted.8"]
prefix.install "com.coriolis-systems.staticrouted.plist"
(prefix+"com.coriolis-systems.staticrouted.plist").chmod 0644
end
def caveats; <<-EOS.undent

View file

@ -17,6 +17,7 @@ class Tor < Formula
system "make install"
(prefix+'org.tor.plist').write startup_plist
(prefix+'org.tor.plist').chmod 0644
end
def startup_plist