Changeset 49073


Ignore:
Timestamp:
Apr 3, 2009, 5:45:51 AM (8 years ago)
Author:
blb@…
Message:

print/cups-pdf - move the link-creation stuff into a separate shell script
so it can just be run instead of having to run commands via copy/paste (and
can be run again if need be); also copy the config file if it doesn't already
exist instead of saying to do so

Location:
trunk/dports/print/cups-pdf
Files:
2 added
1 edited

Legend:

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

    r48434 r49073  
    44name                cups-pdf
    55version             2.5.0
     6revision            1
    67categories          print textproc
    78maintainers         blb
     
    7475destroot.keepdirs   ${destroot}${prefix}/var/spool/cups-pdf \
    7576                    ${destroot}${prefix}/var/log/cups
     77post-destroot {
     78   xinstall -m 755 -W ${filespath} cups-pdf_links.sh \
     79      ${destroot}${prefix}/libexec/
     80   reinplace "s|@@PREFIX@@|${prefix}|g" \
     81      ${destroot}${prefix}/libexec/cups-pdf_links.sh
     82}
    7683
    77 post-install {
     84post-activate {
    7885   ui_msg "\n*************************************************************"
    7986   ui_msg "If this is the first installation, there are a couple of items"
    8087   ui_msg "to do:"
    81    ui_msg "   First, symlink the cups-pdf backend with:"
    82    ui_msg "      sudo ln -s ${prefix}/libexec/cups/backend/cups-pdf /usr/libexec/cups/backend/"
    83    ui_msg "   Next, symlink the color postscript model:"
    84    ui_msg "      sudo ln -s ${prefix}/share/cups/model/CUPS-PDF.ppd /usr/share/cups/model/"
    85    ui_msg "   Then, create the config file:"
    86    ui_msg "      sudo cp ${prefix}/etc/cups/cups-pdf.conf.dist ${prefix}/etc/cups/cups-pdf.conf"
    87    ui_msg "   Edit cups-pdf.conf as needed"
    88    ui_msg "   Finally, tell cupsd to update (it may not be running on 10.5):"
     88   ui_msg "-  First, symlinks in /usr are needed for CUPS to see cups-pdf, so"
     89   ui_msg "   run (it will run sudo so may ask for your password):"
     90   ui_msg "      ${prefix}/libexec/cups-pdf_links.sh"
     91   ui_msg "-  Edit ${prefix}/etc/cups/cups-pdf.conf as needed"
     92   ui_msg "-  Finally, tell cupsd to update (it may not be running on 10.5):"
    8993   ui_msg "      sudo killall -1 cupsd"
    9094   ui_msg "\n*************************************************************"
     95   if {![file exists ${prefix}/etc/cups/cups-pdf.conf]} {
     96      copy ${prefix}/etc/cups/cups-pdf.conf.dist \
     97         ${prefix}/etc/cups/cups-pdf.conf
     98   }
    9199}
    92100
Note: See TracChangeset for help on using the changeset viewer.