diff options
| author | Adam Vandenberg | 2011-06-07 07:24:11 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-07 07:24:11 -0700 |
| commit | bcdb3da1e4fff8bde2698e4fa7d474de510b262e (patch) | |
| tree | 26b8724a269e1b845cdc43d34c0a326f78765e3a /Library | |
| parent | e5b58fe1d358f809eaf52803a74e5410c017d1f8 (diff) | |
| download | homebrew-bcdb3da1e4fff8bde2698e4fa7d474de510b262e.tar.bz2 | |
cups-pdf: rewrite caveats
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cups-pdf.rb | 27 |
1 files changed, 15 insertions, 12 deletions
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 |
