diff options
| author | Mike McQuaid | 2010-12-09 00:22:50 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-12-09 00:22:50 +0000 |
| commit | a768123bbd06605e6bd01569663345b240f4ef24 (patch) | |
| tree | c48c186c684dbcb0c58c53cfc4982f79931a1bdd /Library/Formula | |
| parent | a156461d9036455868c1ef3e93f596ef2188eca4 (diff) | |
| download | homebrew-a768123bbd06605e6bd01569663345b240f4ef24.tar.bz2 | |
Add D-Bus launchd patches now they are merged.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/d-bus.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/d-bus.rb b/Library/Formula/d-bus.rb index b00bd4a1e..c93477a9b 100644 --- a/Library/Formula/d-bus.rb +++ b/Library/Formula/d-bus.rb @@ -10,17 +10,43 @@ class DBus <Formula skip_clean "etc/dbus-1/system.d" skip_clean "var/run/dbus" + def patches + # Patches merged upstream for launchd support. + # See http://bugs.freedesktop.org/show_bug.cgi?id=14259 + [ 'http://cgit.freedesktop.org/dbus/dbus/patch/?id=5125fc165454e81849a5b20c1e75b4f74bdbcd2c', + 'http://cgit.freedesktop.org/dbus/dbus/patch/?id=eb66c0a9c001ea08793b38470d12611ffaafa436', + 'http://cgit.freedesktop.org/dbus/dbus/patch/?id=f1b9aac417d8fb716d6ed19128fe429e8a41adba' ] + end + def install # Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols ENV["TMPDIR"] = "/tmp" + + # Needed to regenerate configure for the patches to work + system "autoreconf -ivf" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-xml-docs", "--disable-doxygen-docs", + "--enable-launchd", + "--with-launchd-agent-dir=#{prefix}", "--without-x" system "make install" # Generate D-Bus's UUID for this machine system "#{bin}/dbus-uuidgen", "--ensure=#{prefix}/var/lib/dbus/machine-id" end + + def caveats; <<-EOS.undent + If this is your first install, automatically load on login with: + 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 + launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist + EOS + end end |
