aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cups-pdf.rb27
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