patch-src_cups-pdf_h 1.2 KB

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-src_cups-pdf_h,v 1.4 2012/04/11 17:29:50 ajacoutot Exp $
  2. --- src/cups-pdf.h.orig Tue Oct 4 18:45:10 2011
  3. +++ src/cups-pdf.h Wed Apr 11 19:16:36 2012
  4. @@ -19,7 +19,7 @@
  5. / they are reasonable for most systems. */
  6. /* location of the configuration file */
  7. -#define CPCONFIG "/etc/cups/cups-pdf.conf"
  8. +#define CPCONFIG "${SYSCONFDIR}/cups/cups-pdf.conf"
  9. @@ -69,9 +69,9 @@ static struct {
  10. static void _set_defaults() {
  11. snprintf(conf.anondirname,BUFSIZE,"%s","/var/spool/cups-pdf/ANONYMOUS");
  12. snprintf(conf.anonuser,BUFSIZE,"%s","nobody");
  13. - snprintf(conf.ghostscript,BUFSIZE,"/usr/bin/gs");
  14. + snprintf(conf.ghostscript,BUFSIZE,"${LOCALBASE}/bin/gs");
  15. snprintf(conf.gscall,BUFSIZE,"%s","%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s");
  16. - snprintf(conf.grp,BUFSIZE,"%s","lp");
  17. + snprintf(conf.grp,BUFSIZE,"%s","_cups");
  18. snprintf(conf.gstmp,BUFSIZE,"%s","TMPDIR=/var/tmp");
  19. snprintf(conf.log,BUFSIZE,"%s","/var/log/cups");
  20. snprintf(conf.pdfver,BUFSIZE,"%s","1.4");