mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 12:29:40 -05:00
cups-pdf: rewrite caveats
This commit is contained in:
1 parent
e5b58fe1d3
commit
bcdb3da1e4
1 file changed
+15
-12
+15
-12
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user