1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Common UNIX Printing System
8 HOMEPAGE= https://www.cups.org/
12 SITES[main]= GITHUB/apple:cups:v2.3.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILDRUN_DEPENDS= gnutls:single:standard
24 libpaper:single:standard
29 USERGROUP_SPKG= primary
31 USES= cpe gmake iconv pkgconfig
33 LICENSE= APACHE20:primary
34 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
35 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE.txt
36 LICENSE_AWK= TERMS:"^$$"
37 LICENSE_SOURCE= TERMS:{{WRKSRC}}/cups/cups.h
41 FPC_EQUIVALENT= print/cups
44 CONFIGURE_ARGS= --enable-libpaper
53 --with-cups-group=cups
54 --with-dbusdir="{{PREFIX}}/etc/dbus-1"
55 --with-icondir="{{PREFIX}}/share/icons"
56 --with-menudir="{{PREFIX}}/share/applications"
57 --with-printcap="{{PREFIX}}/etc/printcap"
60 --with-pam-module="unix"
61 CONFIGURE_ENV= ac_cv_path_JAVA=
69 RC_SUBR= cupsd:primary
71 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=--with-system-groups=wheel
72 VAR_OPSYS[sunos]= CONFIGURE_ARGS=LSB_BUILD=y
74 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=--with-system-groups=wheel
77 ${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in
78 ${REINPLACE_CMD} 's/usblp/ulpt/g' ${WRKSRC}/backend/usb-libusb.c
79 ${REINPLACE_CMD} -e 's|/usr/local/etc/pam.d|${LOCALBASE}/etc/pam.d|' \
80 -e 's/-fstack-protector//' ${WRKSRC}/configure
81 ${FIND} ${WRKSRC}/doc ${WRKSRC}/templates -type f -exec ${SED} -i'' \
82 's|http://www.cups.org|https://www.cups.org|g' {} +
83 ${REINPLACE_CMD} '/stripopt=/s/-x//' ${WRKSRC}/install-sh
84 ${GREP} -l '/etc/cups/' ${WRKSRC}/man/*.[1-7] | ${XARGS} \
85 ${REINPLACE_CMD} 's|/etc/cups|${LOCALBASE}/etc/cups|g'
86 ${REINPLACE_CMD} -e 's|\.default|.sample|'\
87 -e 's|-g .(.*_GROUP)||g' \
88 ${WRKSRC}/cgi-bin/admin.c\
89 ${WRKSRC}/conf/Makefile \
90 ${WRKSRC}/notifier/Makefile \
91 ${WRKSRC}/scheduler/Makefile
94 ${LN} -sf lpr ${STAGEDIR}${PREFIX}/bin/lpr-cups
95 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/pam.d \
96 ${STAGEDIR}${PREFIX}/etc/devd \
97 ${STAGEDIR}${STD_EXAMPLESDIR}
98 ${INSTALL_DATA} ${FILESDIR}/cups.conf.sample \
99 ${STAGEDIR}${PREFIX}/etc/devd
100 ${INSTALL_DATA} ${FILESDIR}/cups ${STAGEDIR}${PREFIX}/etc/pam.d
101 ${MV} ${STAGEDIR}${PREFIX}/share/cups/examples/* \
102 ${STAGEDIR}${STD_EXAMPLESDIR}
103 ${RMDIR} ${STAGEDIR}${PREFIX}/share/cups/examples
104 ${RM} ${STAGEDIR}${PREFIX}/etc/cups/*.conf
106 [FILE:228:descriptions/desc.primary]
107 CUPS is the standards-based, open source printing system developed by
108 Apple Inc. for macOS and other UNIX-like operating systems. CUPS uses
109 the Internet Printing Protocol (IPP) to support printing to local and
114 7476fb18ba1cc8213505e337aecde265159c67bae668a3116fd95516fad223d8 8133839 apple-cups-2.3.0.tar.gz
117 [FILE:13491:manifests/plist.primary]
118 @sample etc/cups/cups-files.conf.sample
119 @sample etc/cups/cupsd.conf.sample
120 @sample etc/cups/snmp.conf.sample
121 @sample etc/devd/cups.conf.sample
122 %%ONLY-DRAGONFLY%%share/cups/usb/org.cups.usb-quirks
123 %%ONLY-FREEBSD%%share/cups/usb/org.cups.usb-quirks
142 etc/dbus-1/system.d/cups.conf
165 libexec/cups/backend/
174 libexec/cups/cgi-bin/
180 libexec/cups/command/
196 libexec/cups/monitor/
199 libexec/cups/notifier/
215 share/applications/cups.desktop
216 share/cups/drv/sample.drv
218 cancel-current-job.test
220 create-job-format.test
221 create-job-sheets.test
222 create-job-timeout.test
224 create-printer-subscription.test
225 cups-create-local-printer.test
231 get-completed-jobs.test
233 get-job-attributes.test
234 get-job-attributes2.test
235 get-job-template-attributes.test
237 get-notifications.test
240 get-ppds-drv-only.test
241 get-ppds-language.test
242 get-ppds-make-and-model.test
244 get-ppds-product.test
245 get-ppds-psversion.test
247 get-printer-attributes-suite.test
248 get-printer-attributes.test
249 get-printer-description-attributes.test
250 get-printers-printer-id.test
252 get-subscriptions.test
254 identify-printer-display.test
255 identify-printer-multiple.test
256 identify-printer.test
267 print-job-and-wait.test
268 print-job-deflate.test
271 print-job-letter.test
272 print-job-manual.test
273 print-job-media-col.test
274 print-job-password.test
294 share/cups/templates/
306 class-jobs-header.tmpl
327 list-available-printers.tmpl
340 printer-cancel-jobs.tmpl
341 printer-configured.tmpl
345 printer-jobs-header.tmpl
346 printer-modified.tmpl
355 set-printer-options-header.tmpl
356 set-printer-options-trailer.tmpl
360 share/cups/templates/de/
372 class-jobs-header.tmpl
393 list-available-printers.tmpl
406 printer-cancel-jobs.tmpl
407 printer-configured.tmpl
411 printer-jobs-header.tmpl
412 printer-modified.tmpl
421 set-printer-options-header.tmpl
422 set-printer-options-trailer.tmpl
426 share/cups/templates/es/
438 class-jobs-header.tmpl
459 list-available-printers.tmpl
472 printer-cancel-jobs.tmpl
473 printer-configured.tmpl
477 printer-jobs-header.tmpl
478 printer-modified.tmpl
487 set-printer-options-header.tmpl
488 set-printer-options-trailer.tmpl
492 share/cups/templates/fr/
504 class-jobs-header.tmpl
525 list-available-printers.tmpl
538 printer-cancel-jobs.tmpl
539 printer-configured.tmpl
543 printer-jobs-header.tmpl
544 printer-modified.tmpl
553 set-printer-options-header.tmpl
554 set-printer-options-trailer.tmpl
558 share/cups/templates/ja/
570 class-jobs-header.tmpl
591 list-available-printers.tmpl
604 printer-cancel-jobs.tmpl
605 printer-configured.tmpl
609 printer-jobs-header.tmpl
610 printer-modified.tmpl
619 set-printer-options-header.tmpl
620 set-printer-options-trailer.tmpl
624 share/cups/templates/pt_BR/
636 class-jobs-header.tmpl
657 list-available-printers.tmpl
670 printer-cancel-jobs.tmpl
671 printer-configured.tmpl
675 printer-jobs-header.tmpl
676 printer-modified.tmpl
685 set-printer-options-header.tmpl
686 set-printer-options-trailer.tmpl
690 share/cups/templates/ru/
702 class-jobs-header.tmpl
723 list-available-printers.tmpl
736 printer-cancel-jobs.tmpl
737 printer-configured.tmpl
741 printer-jobs-header.tmpl
742 printer-modified.tmpl
751 set-printer-options-header.tmpl
752 set-printer-options-trailer.tmpl
760 man-ippeveprinter.html
761 share/icons/hicolor/128x128/apps/cups.png
762 share/icons/hicolor/16x16/apps/cups.png
763 share/icons/hicolor/32x32/apps/cups.png
764 share/icons/hicolor/64x64/apps/cups.png
765 share/locale/ca/cups_ca.po
766 share/locale/cs/cups_cs.po
767 share/locale/de/cups_de.po
768 share/locale/en/cups_en.po
769 share/locale/es/cups_es.po
770 share/locale/fr/cups_fr.po
771 share/locale/it/cups_it.po
772 share/locale/ja/cups_ja.po
773 share/locale/pt_BR/cups_pt_BR.po
774 share/locale/ru/cups_ru.po
775 share/locale/zh_CN/cups_zh_CN.po
807 subscriptions.conf.5.gz
834 @dir libexec/cups/driver
835 @dir share/cups/banners
837 @dir share/cups/model
838 @dir share/cups/profiles
839 @dir(,cups,) etc/cups/ppd
840 @dir(,cups,1770) /var/spool/cups/tmp
841 @dir(,cups,700) etc/cups/ssl
842 @dir(,cups,775) /var/cache/cups/rss
843 @dir(cups,,511) /var/run/cups/certs
844 @postexec chmod 710 /var/spool/cups && chgrp cups /var/spool/cups
845 @postexec chmod 770 /var/cache/cups && chgrp cups /var/cache/cups
848 [FILE:1765:manifests/plist.docs]
855 share/doc/cups/de/index.html
856 share/doc/cups/es/index.html
871 man-classes.conf.html
874 man-cups-files.conf.html
879 man-cupsd-helper.html
906 man-printers.conf.html
907 man-subscriptions.conf.html
912 postscript-driver.html
926 share/doc/cups/images/
928 cups-block-diagram.png
929 cups-command-chain.png
931 cups-postscript-chain.png
932 cups-raster-chain.png
936 raster-organization.png
944 share/doc/cups/ja/index.html
945 share/doc/cups/pt_BR/index.html
946 share/doc/cups/ru/index.html
949 [FILE:193:manifests/plist.examples]
964 [FILE:1240:patches/patch-backend_socket.c]
965 --- backend/socket.c.orig 2019-08-23 15:19:38 UTC
967 @@ -292,7 +292,6 @@ main(int argc, /* I - Number of comm
970 fprintf(stderr, "DEBUG: Connecting to %s:%d\n", hostname, port);
971 - _cupsLangPrintFilter(stderr, "INFO", _("Connecting to printer."));
975 @@ -372,7 +371,6 @@ main(int argc, /* I - Number of comm
978 fputs("STATE: -connecting-to-device\n", stderr);
979 - _cupsLangPrintFilter(stderr, "INFO", _("Connected to printer."));
981 fprintf(stderr, "DEBUG: Connected to %s:%d...\n",
982 httpAddrString(&(addr->addr), addrname, sizeof(addrname)),
983 @@ -403,7 +401,7 @@ main(int argc, /* I - Number of comm
986 if (print_fd != 0 && tbytes >= 0)
987 - _cupsLangPrintFilter(stderr, "INFO", _("Print file sent."));
988 + fputs("DEBUG: Print file sent.\n", stderr);
991 fputs("STATE: +cups-waiting-for-job-completed\n", stderr);
992 @@ -414,7 +412,7 @@ main(int argc, /* I - Number of comm
993 * Shutdown the socket and wait for the other end to finish...
996 - _cupsLangPrintFilter(stderr, "INFO", _("Waiting for printer to finish."));
997 + fputs("DEBUG: Waiting for printer to finish.\n", stderr);
999 shutdown(device_fd, 1);
1003 [FILE:362:patches/patch-backend_usb-libusb.c]
1004 --- backend/usb-libusb.c.orig 2019-08-23 15:19:38 UTC
1005 +++ backend/usb-libusb.c
1006 @@ -1437,7 +1437,7 @@ open_device(usb_printer_t *printer, /* I
1007 * works without the module attached.
1010 - errcode = libusb_kernel_driver_active(printer->handle, printer->iface);
1013 printer->usblp_attached = 0;
1014 else if (errcode == 1)
1017 [FILE:582:patches/patch-conf_mime.convs.in]
1018 Lower PostScript-to-PostScript cost such that PostScript files are sent to
1019 PostScript printers directly without intermediate conversion to PDF, see
1020 http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
1022 --- conf/mime.convs.in.orig 2019-08-23 15:19:38 UTC
1023 +++ conf/mime.convs.in
1025 # PostScript filters
1028 -application/postscript application/vnd.cups-postscript 66 pstops
1029 +application/postscript application/vnd.cups-postscript 65 pstops
1031 ########################################################################
1035 [FILE:3476:patches/patch-configure]
1036 --- configure.orig 2019-08-23 15:19:38 UTC
1038 @@ -5691,7 +5691,7 @@ fi
1041 case $host_os_name in
1043 + darwin* | *bsd* | dragonfly* | solaris*)
1047 @@ -5787,7 +5787,6 @@ if test "${with_dbusdir+set}" = set; the
1053 DBUS_NOTIFIERLIBS=""
1055 @@ -6358,7 +6357,7 @@ _ACEOF
1057 if test "$localedir" = "\${datarootdir}/locale"; then
1058 case "$host_os_name" in
1059 - linux* | gnu* | *bsd* | darwin*)
1060 + linux* | gnu* | *bsd* | dragonfly*| darwin* | solaris*)
1061 CUPS_LOCALEDIR="$datarootdir/locale"
1064 @@ -6412,11 +6411,15 @@ _ACEOF
1066 # Server executables...
1067 case "$host_os_name" in
1069 + *bsd* | dragonfly* | darwin* | solaris*)
1070 # *BSD and Darwin (macOS)
1072 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
1075 + INSTALL_SYSV="install-sysv"
1076 + CUPS_SERVERBIN="$exec_prefix/libexec/cups"
1080 INSTALL_SYSV="install-sysv"
1081 @@ -6473,7 +6476,7 @@ fi
1083 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
1084 case "$host_os_name" in
1085 - darwin* | linux* | gnu* | *bsd*)
1086 + darwin* | linux* | gnu* | *bsd* | dragonfly* | solaris*)
1087 # Darwin, macOS, Linux, GNU HURD, and *BSD
1088 mandir="/usr/share/man"
1090 @@ -6511,7 +6514,7 @@ if test x$enable_shared != xno; then
1092 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G"
1094 - linux* | gnu* | *bsd*)
1095 + linux* | gnu* | *bsd* | dragonfly*)
1096 LIBCUPS="lib$cupsbase.so.2"
1097 if test "x$cupsimagebase" != x; then
1098 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
1099 @@ -6585,12 +6588,11 @@ if test "$DSO" != ":"; then
1100 EXPORT_LDFLAGS="-R$libdir"
1104 + *bsd* | dragonfly*)
1106 if test $exec_prefix != /usr; then
1107 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
1108 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
1109 - EXPORT_LDFLAGS="-Wl,-R$libdir"
1113 @@ -6806,13 +6808,13 @@ if test -n "$GCC"; then
1114 OPTIM="-fPIC $OPTIM"
1117 - # The -fstack-protector option is available with some versions of
1118 + # The option is available with some versions of
1119 # GCC and adds "stack canaries" which detect when the return address
1120 # has been overwritten, preventing many types of exploit attacks.
1121 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
1122 -$as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
1123 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports " >&5
1124 +$as_echo_n "checking whether compiler supports ... " >&6; }
1126 - CFLAGS="$CFLAGS -fstack-protector"
1128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1129 /* end confdefs.h. */
1131 @@ -6829,7 +6831,7 @@ if ac_fn_c_try_link "$LINENO"; then :
1132 # Can't use stack-protector with LSB binaries...
1133 OPTIM="$OPTIM -fno-stack-protector"
1135 - OPTIM="$OPTIM -fstack-protector"
1138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1139 $as_echo "yes" >&6; }
1140 @@ -8568,13 +8570,7 @@ fi
1144 - # Find the PAM configuration directory, if any...
1145 - for dir in /private/etc/pam.d /etc/pam.d; do
1146 - if test -d $dir; then
1151 + PAMDIR=/raven/etc/pam.d
1157 [FILE:388:patches/patch-cups_getifaddrs-internal.h]
1158 --- cups/getifaddrs-internal.h.orig 2019-08-23 15:19:38 UTC
1159 +++ cups/getifaddrs-internal.h
1161 # define CUPS_SOCAST
1162 # endif /* _WIN32 */
1164 +# if defined(__DragonFly__) || defined(__FreeBSD__)
1165 +# include <netinet/in.h>
1168 # if defined(__APPLE__) && !defined(_SOCKLEN_T)
1170 * macOS 10.2.x does not define socklen_t, and in fact uses an int instead of
1173 [FILE:775:patches/patch-scheduler_auth.c]
1174 --- scheduler/auth.c.orig 2019-08-23 15:19:38 UTC
1175 +++ scheduler/auth.c
1176 @@ -441,7 +441,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I
1178 peersize = sizeof(peercred);
1181 +# if defined(__APPLE__) || defined(__FreeBSD__)
1182 if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize))
1184 if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred, &peersize))
1185 @@ -839,7 +839,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I
1187 peersize = sizeof(peercred);
1190 +# if defined(__APPLE__) || defined(__FreeBSD__)
1191 if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize))
1193 if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred,
1196 [FILE:468:patches/patch-scheduler_client.c]
1197 --- scheduler/client.c.orig 2019-08-23 15:19:38 UTC
1198 +++ scheduler/client.c
1199 @@ -3506,8 +3506,8 @@ pipe_command(cupsd_client_t *con, /* I -
1200 * Then execute the command...
1203 - if (cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
1204 - -1, -1, root, DefaultProfile, NULL, &pid) < 0)
1205 + if (!cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
1206 + -1, -1, root, DefaultProfile, NULL, &pid))
1209 * Error - can't fork!
1212 [FILE:683:patches/patch-scheduler_cups-driverd.cxx]
1213 --- scheduler/cups-driverd.cxx.orig 2019-08-23 15:19:38 UTC
1214 +++ scheduler/cups-driverd.cxx
1215 @@ -909,7 +909,7 @@ get_file(const char *name, /* I - Name
1219 -#elif defined(__linux)
1220 +#elif defined(__linux) || defined(__FreeBSD__) || defined(__DragonFly__)
1221 if (!strncmp(name, "lsb/usr/", 8))
1224 @@ -1089,7 +1089,7 @@ list_ppds(int request_id, /* I -
1225 load_ppds("/System/Library/Printers/PPDs/Contents/Resources/en.lproj",
1226 "System/Library/Printers/PPDs/Contents/Resources/en.lproj", 0);
1228 -#elif defined(__linux)
1229 +#elif defined(__linux) || defined(__FreeBSD__) || defined(__DragonFly__)
1231 * Load PPDs from LSB-defined locations...
1235 [FILE:462:patches/patch-scheduler_subscriptions.c]
1236 --- scheduler/subscriptions.c.orig 2019-08-23 15:19:38 UTC
1237 +++ scheduler/subscriptions.c
1238 @@ -1527,8 +1527,8 @@ cupsd_start_notifier(
1239 * Create the notifier process...
1242 - if (cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
1243 - -1, -1, 0, DefaultProfile, NULL, &pid) < 0)
1244 + if (!cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
1245 + -1, -1, 0, DefaultProfile, NULL, &pid))
1248 * Error - can't fork!
1251 [FILE:118:files/cups]
1252 # $FreeBSD: head/print/cups/files/cups 410825 2016-03-11 11:53:42Z tijl $
1255 account include system
1258 [FILE:318:files/cups.conf.sample]
1259 # Allow members of group cups to access generic USB printer devices
1262 match "system" "USB";
1263 match "subsystem" "INTERFACE";
1264 match "type" "ATTACH";
1265 match "intclass" "0x07";
1266 match "intsubclass" "0x01";
1267 match "intprotocol" "(0x01|0x02|0x03)";
1268 action "chgrp cups /dev/$cdev; chmod g+rw /dev/$cdev";
1272 [FILE:435:files/cupsd.in]
1276 # REQUIRE: DAEMON dbus
1279 # Add the following to /etc/rc.conf[.local] to enable this service
1281 # cupsd_enable="YES"
1287 rcvar="cupsd_enable"
1289 start_precmd="${name}_prestart"
1291 command="%%PREFIX%%/sbin/cupsd"
1292 extra_commands="reload"
1296 if [ -n "$TZ" ]; then
1301 load_rc_config ${name}
1303 : ${cupsd_enable=NO}