$OpenBSD: patch-src_cups-pdf_h,v 1.4 2012/04/11 17:29:50 ajacoutot Exp $
--- src/cups-pdf.h.orig	Tue Oct  4 18:45:10 2011
+++ src/cups-pdf.h	Wed Apr 11 19:16:36 2012
@@ -19,7 +19,7 @@
 /  they are reasonable for most systems.			     */
 
 /* location of the configuration file */
-#define CPCONFIG "/etc/cups/cups-pdf.conf"
+#define CPCONFIG "${SYSCONFDIR}/cups/cups-pdf.conf"
 
 
 
@@ -69,9 +69,9 @@ static struct {
 static void _set_defaults() {
   snprintf(conf.anondirname,BUFSIZE,"%s","/var/spool/cups-pdf/ANONYMOUS");
   snprintf(conf.anonuser,BUFSIZE,"%s","nobody");
-  snprintf(conf.ghostscript,BUFSIZE,"/usr/bin/gs");
+  snprintf(conf.ghostscript,BUFSIZE,"${LOCALBASE}/bin/gs");
   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");
-  snprintf(conf.grp,BUFSIZE,"%s","lp");
+  snprintf(conf.grp,BUFSIZE,"%s","_cups");
   snprintf(conf.gstmp,BUFSIZE,"%s","TMPDIR=/var/tmp");
   snprintf(conf.log,BUFSIZE,"%s","/var/log/cups");
   snprintf(conf.pdfver,BUFSIZE,"%s","1.4");
