diff --git a/print/cups/Makefile b/print/cups/Makefile index 369d32085a73..3b2bbd02a83b 100644 --- a/print/cups/Makefile +++ b/print/cups/Makefile @@ -1,116 +1,112 @@ PORTNAME= cups -DISTVERSION= 2.4.7 -PORTREVISION= 2 +DISTVERSION= 2.4.8 CATEGORIES= print MASTER_SITES= https://github.com/OpenPrinting/cups/releases/download/v${DISTVERSION}/ EXTRACT_SUFX= -source.tar.gz -PATCH_SITES= https://github.com/OpenPrinting/cups/commit/ -PATCHFILES= 43ceb50ad92236bda3de168a19765f371812a1ea.patch:-p1 - MAINTAINER= tijl@FreeBSD.org COMMENT= Common UNIX Printing System WWW= https://github.com/OpenPrinting/cups LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= compiler:c++11-lang cpe gmake iconv localbase pkgconfig CPE_VENDOR= linuxfoundation CONFLICTS= LPRng GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --enable-relro \ --with-cups-user=${USERS} \ --with-cups-group=${GROUPS} \ --with-system-groups=wheel \ --with-dbusdir="${PREFIX}/etc/dbus-1" \ --with-icondir="${PREFIX}/share/icons" \ --with-menudir="${DESKTOPDIR}" \ --with-printcap="${PREFIX}/etc/printcap" \ --with-rcdir=no \ --with-optim=" " \ --with-pam-module="unix" \ --without-ondemand USE_LDCONFIG= yes USE_RC_SUBR= cupsd GROUPS= cups USERS= cups OPTIONS_DEFINE= AVAHI DBUS DOCS GNUTLS IPPTOOL LIBPAPER NLS X11 OPTIONS_DEFAULT= AVAHI DBUS GNUTLS LIBPAPER OPTIONS_SUB= yes AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app AVAHI_CONFIGURE_WITH= dnssd=avahi AVAHI_SUB_LIST= AVAHI_DAEMON=avahi_daemon AVAHI_SUB_LIST_OFF= AVAHI_DAEMON= DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_CONFIGURE_ENABLE= dbus DBUS_SUB_LIST= DBUS_DAEMON=dbus DBUS_SUB_LIST_OFF= DBUS_DAEMON= GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls GNUTLS_CONFIGURE_WITH= tls=gnutls IPPTOOL_DESC= Internet Printing Protocol testing tool LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper LIBPAPER_CONFIGURE_ENABLE=libpaper X11_DESC= Install desktop menu item X11_BUILD_DEPENDS= xdg-open:devel/xdg-utils X11_RUN_DEPENDS= xdg-open:devel/xdg-utils .if defined(CUPS_OVERWRITE_BASE) PLIST_SUB+= OVERWRITE="" .else PLIST_SUB+= OVERWRITE="@comment " .endif .if exists(/usr/lib/libusb.so) PLIST_SUB+= USB="" .else PLIST_SUB+= USB="@comment " .endif .if defined(WITH_DEBUG) CONFIGURE_ARGS+=--enable-debug --enable-debug-printfs .endif .include .if empty(ICONV_LIB) CONFIGURE_ARGS+=ac_cv_search_libiconv_open=no .endif post-patch: @${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in @${REINPLACE_CMD} 's/usblp/ulpt/g' ${WRKSRC}/backend/usb-libusb.c @${REINPLACE_CMD} -e 's|/usr/local/etc/pam.d|${LOCALBASE}/etc/pam.d|' \ ${WRKSRC}/configure @${REINPLACE_CMD} 's|/etc/cups|${LOCALBASE}/etc/cups|g' \ ${WRKSRC}/man/*.[1-9] @${REINPLACE_CMD} -e 's|\.default|.sample|'\ ${WRKSRC}/cgi-bin/admin.c\ ${WRKSRC}/conf/Makefile post-patch-DOCS-off: # Link to online documentation. @${FIND} ${WRKSRC}/doc ${WRKSRC}/templates -type f -exec ${SED} -i '' \ -e 's|[Hh][Rr][Ee][Ff]="/*help/{[^"]*"|href="https://openprinting.github.io/cups/#DOCUMENTATION|g' \ -e 's|[Hh][Rr][Ee][Ff]="/*help/"|href="https://openprinting.github.io/cups/#DOCUMENTATION|g' \ -e '/have_gssapi/s|[Hh][Rr][Ee][Ff]="/*help/|href="https\\://openprinting.github.io/cups/doc/|g' \ -e 's|[Hh][Rr][Ee][Ff]="/*help/|href="https://openprinting.github.io/cups/doc/|g' {} + post-install: ${LN} -sf lpr ${STAGEDIR}${PREFIX}/bin/lpr-cups ${INSTALL_DATA} ${FILESDIR}/cups.conf.sample \ ${STAGEDIR}${PREFIX}/etc/devd ${INSTALL_DATA} ${FILESDIR}/cups ${STAGEDIR}${PREFIX}/etc/pam.d .include diff --git a/print/cups/distinfo b/print/cups/distinfo index 6f4dd49c7ef6..a0230498d61c 100644 --- a/print/cups/distinfo +++ b/print/cups/distinfo @@ -1,5 +1,3 @@ -TIMESTAMP = 1700253499 -SHA256 (cups-2.4.7-source.tar.gz) = dd54228dd903526428ce7e37961afaed230ad310788141da75cebaa08362cf6c -SIZE (cups-2.4.7-source.tar.gz) = 8134809 -SHA256 (43ceb50ad92236bda3de168a19765f371812a1ea.patch) = 039092048f00e855bb24679842eb15f28a915bb1832120f91222ccc0aa7a423a -SIZE (43ceb50ad92236bda3de168a19765f371812a1ea.patch) = 9886 +TIMESTAMP = 1715366483 +SHA256 (cups-2.4.8-source.tar.gz) = 75c326b4ba73975efcc9a25078c4b04cdb4ee333caaad0d0823dbd522c6479a0 +SIZE (cups-2.4.8-source.tar.gz) = 8142007