Changeset 64810


Ignore:
Timestamp:
Mar 16, 2010, 12:01:35 AM (7 years ago)
Author:
blb@…
Message:

print/cups-pdf - move ui_msg to notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/cups-pdf/Portfile

    r57886 r64810  
    66revision            2
    77categories          print textproc
    8 maintainers         blb
     8maintainers         blb openmaintainer
    99description         Provides a print-to-PDF feature through CUPS
    1010long_description \
     
    1313
    1414platforms           darwin
     15
     16if {${os.platform} == "darwin" && ${os.major} > 9} {
     17   set notes-darwinover9 "
     18   As of Mac OS X 10.6, cups can no longer write into user directories, so
     19   the output directory for ${name} has been updated to reflect this.
     20   ${name} will now write PDF files into ${prefix}/var/spool/cups-pdf/\$USER .
     21   You can create a symlink to this location from Desktop to have it behave as
     22   before:
     23      ln -s ${prefix}/var/spool/cups-pdf/\$USER ~/Desktop/cups-pdf
     24
     25   If you are upgrading, your ${prefix}/etc/cups/cups-pdf.conf file will
     26   not be touched, and will probably need the Out parameter updated; see the
     27   ${prefix}/etc/cups/cups-pdf.conf.dist file for an example."
     28} else {
     29   set notes-darwinover9 ""
     30}
     31
     32notes "
     33   *************************************************************
     34   If this is the first installation, there are a couple of items to do:
     35   -  First, symlinks in /usr are needed for CUPS to see cups-pdf, so run
     36      (it will run sudo so may ask for your password):
     37         ${prefix}/libexec/cups-pdf_links.sh
     38   -  Edit ${prefix}/etc/cups/cups-pdf.conf as needed
     39   -  Finally, tell cupsd to update (it may not be running on 10.5+):
     40         sudo killall -1 cupsd
     41   *************************************************************
     42   ${notes-darwinover9}"
    1543
    1644homepage            http://www.cups-pdf.de/
     
    87115}
    88116
     117
    89118post-activate {
    90    ui_msg "\n*************************************************************"
    91    ui_msg "If this is the first installation, there are a couple of items"
    92    ui_msg "to do:"
    93    ui_msg "-  First, symlinks in /usr are needed for CUPS to see cups-pdf, so"
    94    ui_msg "   run (it will run sudo so may ask for your password):"
    95    ui_msg "      ${prefix}/libexec/cups-pdf_links.sh"
    96    ui_msg "-  Edit ${prefix}/etc/cups/cups-pdf.conf as needed"
    97    ui_msg "-  Finally, tell cupsd to update (it may not be running on 10.5):"
    98    ui_msg "      sudo killall -1 cupsd"
    99    ui_msg "\n*************************************************************"
    100    if {${os.platform} == "darwin" && ${os.major} > 9} {
    101       ui_msg "As of Mac OS X 10.6, cups can no longer write into user"
    102       ui_msg "directories, so the output directory for ${name} has been"
    103       ui_msg "updated to reflect this.  ${name} will now write PDF files"
    104       ui_msg "into ${prefix}/var/spool/cups-pdf/\$USER .  You can create a"
    105       ui_msg "symlink to this location from Desktop to have it behave as"
    106       ui_msg "before:"
    107       ui_msg "   ln -s ${prefix}/var/spool/cups-pdf/\$USER ~/Desktop/cups-pdf"
    108    }
    109    ui_msg "\n*************************************************************"
    110119   if {![file exists ${prefix}/etc/cups/cups-pdf.conf]} {
    111120      copy ${prefix}/etc/cups/cups-pdf.conf.dist \
    112121         ${prefix}/etc/cups/cups-pdf.conf
    113    } else {
    114       if {${os.platform} == "darwin" && ${os.major} > 9} {
    115          ui_msg "Note that your ${prefix}/etc/cups/cups-pdf.conf file is"
    116          ui_msg "not being touched, and may need to have the Out parameter"
    117          ui_msg "updated; see the ${prefix}/etc/cups/cups-pdf.conf.dist file"
    118          ui_msg "for an example"
    119       }
    120122   }
    121123}
Note: See TracChangeset for help on using the changeset viewer.