From bcdb3da1e4fff8bde2698e4fa7d474de510b262e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 7 Jun 2011 07:24:11 -0700 Subject: cups-pdf: rewrite caveats --- Library/Formula/cups-pdf.rb | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cups-pdf.rb b/Library/Formula/cups-pdf.rb index 3a2046117..bf4f5eb58 100644 --- a/Library/Formula/cups-pdf.rb +++ b/Library/Formula/cups-pdf.rb @@ -16,20 +16,23 @@ class CupsPdf < Formula (share+'cups/model').install "extra/CUPS-PDF.ppd" end - def caveats; <<-EOF - In order to use cups-pdf with the Mac OS X printing system change the file - permissions, symlink the necessary files to their System location and - have cupsd re-read its configuration using: + def caveats; <<-EOF.undent + In order to use cups-pdf with the Mac OS X printing system change the file + permissions, symlink the necessary files to their System location and + have cupsd re-read its configuration using: - chmod 0700 #{(lib+'cups/backend')}/cups-pdf - sudo chown root #{(lib+'cups/backend')}/cups-pdf - sudo ln -sf #{(etc+'cups')}/cups-pdf.conf /etc/cups/cups-pdf.conf - sudo ln -sf #{(lib+'cups/backend')}/cups-pdf /usr/libexec/cups/backend/cups-pdf - sudo ln -sf #{(share+'cups/model')}/CUPS-PDF.ppd /usr/share/cups/model/CUPS-PDF.ppd - sudo killall -HUP cupsd + chmod 0700 #{lib}/cups/backend/cups-pdf + sudo chown root #{lib}/cups/backend/cups-pdf + sudo ln -sf #{etc}/cups/cups-pdf.conf /etc/cups/cups-pdf.conf + sudo ln -sf #{lib}/cups/backend/cups-pdf /usr/libexec/cups/backend/cups-pdf + sudo ln -sf #{share}/cups/model/CUPS-PDF.ppd /usr/share/cups/model/CUPS-PDF.ppd - NOTE: When uninstalling cups-pdf these symlinks need to be removed manually. -EOF + sudo mkdir -p /var/spool/cups-pdf/${USER} + ln -s /var/spool/cups-pdf/${USER} ${HOME}/Documents/cups-pdf + sudo killall -HUP cupsd + + NOTE: When uninstalling cups-pdf these symlinks need to be removed manually. + EOF end end -- cgit v1.2.3