git: 2c7c73f7270b - main - print/cups-pdf: Update 3.0.1 => 3.0.3

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 18 Jun 2026 16:35:41 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c7c73f7270b9527b85c2d400d3b666d259907df

commit 2c7c73f7270b9527b85c2d400d3b666d259907df
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-06-18 16:29:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-18 16:34:21 +0000

    print/cups-pdf: Update 3.0.1 => 3.0.3
    
    Changelog:
    2026-05-08 : 3.0.3 (md5)
      - fixed a possible privilege escalation
      - added SPDX license identifiers
      - updated default option values in PPD
    2025-03-23 : 3.0.2 (md5)
      - updated GhostScript command line arguments
      - added full code documentation by Lew Pitcher
    https://www.cups-pdf.de/changelog.shtml
    
    - Replace PORTVERSION with DISTVERSION in MASTER_SITES and DISTNAME.
    - Replace http with https in MASTER_SITES.
    - Remove unavailable site from MASTER_SITES.
    - Merge 3 MKDIRs.
    - Remove unnecessary local patch - upstream fixed this in 3.0.2.
    
    Sponsored by:   UNIS Labs
---
 print/cups-pdf/Makefile                            | 16 ++++++-------
 print/cups-pdf/distinfo                            |  6 ++---
 ...ove-deprecated-ghostscript-setpdfwrite-operator | 27 ----------------------
 3 files changed, 10 insertions(+), 39 deletions(-)

diff --git a/print/cups-pdf/Makefile b/print/cups-pdf/Makefile
index c062b59ee1b9..37c69612b265 100644
--- a/print/cups-pdf/Makefile
+++ b/print/cups-pdf/Makefile
@@ -1,10 +1,8 @@
 PORTNAME=	cups-pdf
-DISTVERSION=	3.0.1
-PORTREVISION=	3
+DISTVERSION=	3.0.3
 CATEGORIES=	print
-MASTER_SITES=	http://www.cups-pdf.de/src/ \
-		http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/
-DISTNAME=	${PORTNAME}_${PORTVERSION}
+MASTER_SITES=	https://www.cups-pdf.de/src/
+DISTNAME=	${PORTNAME}_${DISTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Virtual printer for CUPS to produce PDF files
@@ -22,7 +20,7 @@ LIBS+=		-lcups
 
 ETCDIR=		${PREFIX}/etc/cups
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 OPTIONS_DEFINE=	DOCS
 
@@ -85,14 +83,14 @@ do-build:
 		${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -o cups-pdf cups-pdf.c)
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/cups/backend
+	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/cups/backend \
+		 ${STAGEDIR}${PREFIX}/share/cups/model \
+		 ${STAGEDIR}${ETCDIR}
 	${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf \
 		${STAGEDIR}${PREFIX}/libexec/cups/backend/
-	@${MKDIR} ${STAGEDIR}${PREFIX}/share/cups/model
 	${INSTALL_DATA} ${WRKSRC}/extra/CUPS-PDF_opt.ppd \
 		${WRKSRC}/extra/CUPS-PDF_noopt.ppd \
 		${STAGEDIR}${PREFIX}/share/cups/model/
-	@${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${WRKSRC}/extra/cups-pdf.conf \
 		${STAGEDIR}${ETCDIR}/cups-pdf.conf.sample
 
diff --git a/print/cups-pdf/distinfo b/print/cups-pdf/distinfo
index 81dc7a582374..88965520d16a 100644
--- a/print/cups-pdf/distinfo
+++ b/print/cups-pdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1582725313
-SHA256 (cups-pdf_3.0.1.tar.gz) = 738669edff7f1469fe5e411202d87f93ba25b45f332a623fb607d49c59aa9531
-SIZE (cups-pdf_3.0.1.tar.gz) = 29754
+TIMESTAMP = 1781781781
+SHA256 (cups-pdf_3.0.3.tar.gz) = 4a66e16976b30f3c6df5ed113ed9d6e13f7f34617eab349f70b0382fce54e08b
+SIZE (cups-pdf_3.0.3.tar.gz) = 36473
diff --git a/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator b/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator
deleted file mode 100644
index d3018f33cfd4..000000000000
--- a/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator
+++ /dev/null
@@ -1,27 +0,0 @@
-https://github.com/archlinux/svntogit-packages/commit/ff157761a0dffe4eb19b46c61b422dcdb2e1c8d9
-
---- extra/cups-pdf.conf.orig	2022-04-01 11:22:32 UTC
-+++ extra/cups-pdf.conf
-@@ -250,9 +250,9 @@ GSTmp /tmp
- ### Key: GSCall (config)
- ## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
- ## MacOSX: for using pstopdf set this to %s %s -o %s %s
--### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
-+### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s
- 
--#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s
-+#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s
- 
- ### Key: PDFVer (config, ppd, lptopions)
- ##  PDF version to be created - can be "1.5", "1.4", "1.3" or "1.2" 
---- src/cups-pdf.h.orig	2022-04-01 11:22:32 UTC
-+++ src/cups-pdf.h
-@@ -58,7 +58,7 @@ struct {
-   { "AnonDirName", SEC_CONF|SEC_PPD, { "/var/spool/cups-pdf/ANONYMOUS" } },
-   { "AnonUser", SEC_CONF|SEC_PPD, { "nobody" } },
-   { "GhostScript", SEC_CONF|SEC_PPD, { "/usr/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" } },
-+  { "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 -f %s" } },
-   { "Grp", SEC_CONF|SEC_PPD, { "lp" } },
-   { "GSTmp", SEC_CONF|SEC_PPD, { "TMPDIR=/var/tmp" } },
-   { "Log", SEC_CONF|SEC_PPD, { "/var/log/cups" } },