Skip to content

Commit

Permalink
cups-pdf: 2.6.1 -> 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alllexx88 committed Sep 18, 2017
1 parent 27dd27b commit be8de1a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
1 change: 1 addition & 0 deletions checksums/cups-pdf_3.0.1.tar.gz.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a06580f3056dddbb883c8db0c71b37b883482ae1ac8aa9bcfd85e679c4dcb44278006b7110d2988173d0eeb05b0f19fb39081fad49bf26839235e97fbe27a818
13 changes: 7 additions & 6 deletions make/cups-pdf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# "NSLU2 Linux" other developers will feel free to edit.
#
CUPS_PDF_SITE=http://www.cups-pdf.de/src
CUPS_PDF_VERSION=2.6.1
CUPS_PDF_VERSION=3.0.1
CUPS_PDF_SOURCE=cups-pdf_$(CUPS_PDF_VERSION).tar.gz
CUPS_PDF_DIR=cups-pdf-$(CUPS_PDF_VERSION)
CUPS_PDF_UNZIP=zcat
Expand Down Expand Up @@ -55,7 +55,7 @@ $(CUPS_PDF_SOURCE_DIR)/cups-pdf.conf.patch \
# compilation or linking flags, then list them here.
#
CUPS_PDF_CPPFLAGS=
CUPS_PDF_LDFLAGS=
CUPS_PDF_LDFLAGS=-lcups

#
# CUPS_PDF_BUILD_DIR is the directory in which the build is done.
Expand Down Expand Up @@ -187,15 +187,16 @@ $(CUPS_PDF_IPK): $(CUPS_PDF_BUILD_DIR)/.built
$(INSTALL) -m 644 $(CUPS_PDF_BUILD_DIR)/extra/cups-pdf.conf $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/etc/cups
$(INSTALL) -d $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/var/tmp
$(INSTALL) -d $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/cups/model
$(INSTALL) -m 644 $(CUPS_PDF_BUILD_DIR)/extra/CUPS-PDF.ppd \
$(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/cups/model/
$(INSTALL) -d $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/doc/cups-pdf/examples/
$(INSTALL) -m 644 $(CUPS_PDF_BUILD_DIR)/extra/CUPS-PDF_opt.ppd \
$(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/cups/model/CUPS-PDF.ppd
$(INSTALL) -d $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/doc/cups-pdf/
# $(INSTALL) -d $(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/doc/cups-pdf/examples/
$(INSTALL) \
$(CUPS_PDF_BUILD_DIR)/ChangeLog \
$(CUPS_PDF_BUILD_DIR)/COPYING \
$(CUPS_PDF_BUILD_DIR)/README \
$(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/doc/cups-pdf/
cp -rp \
# cp -rp \
$(CUPS_PDF_BUILD_DIR)/contrib/cups-pdf-dispatch* \
$(CUPS_PDF_BUILD_DIR)/contrib/pstitleiconv* \
$(CUPS_PDF_IPK_DIR)$(TARGET_PREFIX)/share/doc/cups-pdf/examples/
Expand Down
26 changes: 12 additions & 14 deletions sources/cups-pdf/cups-pdf.conf.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
--- a/extra/cups-pdf.conf
+++ b/extra/cups-pdf.conf
@@ -38,23 +38,23 @@
@@ -46,23 +46,23 @@
## ${USER} will be expanded to the user name
## in case it is an NFS export make sure it is exported without
## root_squash!
-### Default: /var/spool/cups-pdf/${USER}
+### Default: %OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/${USER}
+### %OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/${USER}

-#Out /var/spool/cups-pdf/${USER}
+#Out %OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/${USER}

### Key: AnonDirName
### Key: AnonDirName (config)
## ABSOLUTE path for anonymously created PDF files
## if anonymous access is disabled this setting has no effect
-### Default: /var/spool/cups-pdf/ANONYMOUS
Expand All @@ -19,7 +19,7 @@
-#AnonDirName /var/spool/cups-pdf/ANONYMOUS
+#AnonDirName %OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/ANONYMOUS

### Key: Spool
### Key: Spool (config)
## CUPS-PDF spool directory - make sure there is no user 'SPOOL' on your
## system or change the path
-### Default: /var/spool/cups-pdf/SPOOL
Expand All @@ -30,8 +30,8 @@


###########################################################################
@@ -194,9 +194,9 @@
### Key: Log
@@ -210,9 +210,9 @@
### Key: Log (config)
## CUPS-PDF log directory
## set this to an empty value to disable all logging
-### Default: /var/log/cups
Expand All @@ -40,21 +40,19 @@
-#Log /var/log/cups
+#Log %OPTWARE_TARGET_PREFIX%/var/log/cups

### Key: LogType
### Key: LogType (config, ppd)
## log-mode
@@ -218,18 +218,16 @@

### Key: GhostScript
@@ -236,16 +236,16 @@
## location of GhostScript binary (gs)
-## MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
-## or its proper location on your system
## MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
## or its proper location on your system
-### Default: /usr/bin/gs
+### Default: %OPTWARE_TARGET_PREFIX%/bin/gs

-#GhostScript /usr/bin/gs
+#GhostScript %OPTWARE_TARGET_PREFIX%/bin/gs

### Key: GSTmp
### Key: GSTmp (config)
## location of temporary files during GhostScript operation
-## this must be user-writable like /var/tmp or /tmp !
-### Default: /var/tmp
Expand All @@ -64,5 +62,5 @@
-#GSTmp /var/tmp
+#GSTmp %OPTWARE_TARGET_PREFIX%/var/spool/cups/tmp

### Key: GSCall
### Key: GSCall (config)
## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
58 changes: 29 additions & 29 deletions sources/cups-pdf/cups-pdf.h.patch
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
--- a/src/cups-pdf.h
+++ b/src/cups-pdf.h
@@ -19,7 +19,7 @@
@@ -18,7 +18,7 @@
/ they are reasonable for most systems. */

/* location of the configuration file */
-#define CPCONFIG "/etc/cups/cups-pdf.conf"
+#define CPCONFIG "%OPTWARE_TARGET_PREFIX%/etc/cups/cups-pdf.conf"
-#define CP_CONFIG_PATH "/etc/cups"
+#define CP_CONFIG_PATH "%OPTWARE_TARGET_PREFIX%/etc/cups"



@@ -67,17 +67,17 @@
} conf;

static void _set_defaults() {
- snprintf(conf.anondirname,BUFSIZE,"%s","/var/spool/cups-pdf/ANONYMOUS");
+ snprintf(conf.anondirname,BUFSIZE,"%s","%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/ANONYMOUS");
snprintf(conf.anonuser,BUFSIZE,"%s","nobody");
- snprintf(conf.ghostscript,BUFSIZE,"/usr/bin/gs");
+ snprintf(conf.ghostscript,BUFSIZE,"%OPTWARE_TARGET_PREFIX%/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.gstmp,BUFSIZE,"%s","TMPDIR=/var/tmp");
- snprintf(conf.log,BUFSIZE,"%s","/var/log/cups");
+ snprintf(conf.grp,BUFSIZE,"%s","nobody");
+ snprintf(conf.gstmp,BUFSIZE,"%s","TMPDIR=%OPTWARE_TARGET_PREFIX%/var/spool/cups/tmp");
+ snprintf(conf.log,BUFSIZE,"%s","%OPTWARE_TARGET_PREFIX%/var/log/cups");
snprintf(conf.pdfver,BUFSIZE,"%s","1.4");
snprintf(conf.postprocessing,BUFSIZE,"%s","");
- snprintf(conf.out,BUFSIZE,"%s","/var/spool/cups-pdf/${USER}");
- snprintf(conf.spool,BUFSIZE,"%s","/var/spool/cups-pdf/SPOOL");
+ snprintf(conf.out,BUFSIZE,"%s","%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/${USER}");
+ snprintf(conf.spool,BUFSIZE,"%s","%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/SPOOL");
snprintf(conf.userprefix,BUFSIZE,"%s","");
snprintf(conf.removeprefix,BUFSIZE,"%s","");
conf.cut=3;
/* --- DO NOT EDIT BELOW THIS LINE --- */
@@ -55,17 +55,17 @@
mode_t modval;
} value;
} configData[] = {
- { "AnonDirName", SEC_CONF|SEC_PPD, { "/var/spool/cups-pdf/ANONYMOUS" } },
+ { "AnonDirName", SEC_CONF|SEC_PPD, { "%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/ANONYMOUS" } },
{ "AnonUser", SEC_CONF|SEC_PPD, { "nobody" } },
- { "GhostScript", SEC_CONF|SEC_PPD, { "/usr/bin/gs" } },
+ { "GhostScript", SEC_CONF|SEC_PPD, { "%OPTWARE_TARGET_PREFIX%/bin/gs" } },
{ "GSCall", SEC_CONF|SEC_PPD, { "%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s" } },
- { "Grp", SEC_CONF|SEC_PPD, { "lp" } },
- { "GSTmp", SEC_CONF|SEC_PPD, { "TMPDIR=/var/tmp" } },
- { "Log", SEC_CONF|SEC_PPD, { "/var/log/cups" } },
+ { "Grp", SEC_CONF|SEC_PPD, { "nobody" } },
+ { "GSTmp", SEC_CONF|SEC_PPD, { "TMPDIR=%OPTWARE_TARGET_PREFIX%/var/spool/cups/tmp" } },
+ { "Log", SEC_CONF|SEC_PPD, { "%OPTWARE_TARGET_PREFIX%/var/log/cups" } },
{ "PDFVer", SEC_CONF|SEC_PPD|SEC_LPOPT, { "1.4" } },
{ "PostProcessing", SEC_CONF|SEC_PPD|SEC_LPOPT, { "" } },
- { "Out", SEC_CONF|SEC_PPD, { "/var/spool/cups-pdf/${USER}" } },
- { "Spool", SEC_CONF|SEC_PPD, { "/var/spool/cups-pdf/SPOOL" } },
+ { "Out", SEC_CONF|SEC_PPD, { "%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/${USER}" } },
+ { "Spool", SEC_CONF|SEC_PPD, { "%OPTWARE_TARGET_PREFIX%/var/spool/cups-pdf/SPOOL" } },
{ "UserPrefix", SEC_CONF|SEC_PPD, { "" } },
{ "RemovePrefix", SEC_CONF|SEC_PPD, { "" } },
{ "OutExtension", SEC_CONF|SEC_PPD|SEC_LPOPT, { "pdf" } },

0 comments on commit be8de1a

Please sign in to comment.