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.2.11
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 ${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 23e2014f3ae653b8d6d2bb15ba7569a86bc381045f3c7ed2d1876c57dc112312 10364301 apple-cups-2.2.11.tar.gz
117 [FILE:13370: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
124 libexec/cups/backend/
144 etc/dbus-1/system.d/cups.conf
167 libexec/cups/backend/
175 libexec/cups/cgi-bin/
195 libexec/cups/monitor/
198 libexec/cups/notifier/
217 share/applications/cups.desktop
218 share/cups/drv/sample.drv
221 create-printer-subscription.test
226 get-completed-jobs.test
228 get-notifications.test
229 get-printer-attributes.test
230 get-subscriptions.test
241 print-job-deflate.test
260 share/cups/templates/
263 add-rss-subscription.tmpl
273 class-jobs-header.tmpl
294 list-available-printers.tmpl
307 printer-cancel-jobs.tmpl
308 printer-configured.tmpl
312 printer-jobs-header.tmpl
313 printer-modified.tmpl
324 set-printer-options-header.tmpl
325 set-printer-options-trailer.tmpl
326 subscription-added.tmpl
327 subscription-canceled.tmpl
331 share/cups/templates/de/
334 add-rss-subscription.tmpl
344 class-jobs-header.tmpl
365 list-available-printers.tmpl
378 printer-cancel-jobs.tmpl
379 printer-configured.tmpl
383 printer-jobs-header.tmpl
384 printer-modified.tmpl
395 set-printer-options-header.tmpl
396 set-printer-options-trailer.tmpl
397 subscription-added.tmpl
398 subscription-canceled.tmpl
402 share/cups/templates/es/
405 add-rss-subscription.tmpl
415 class-jobs-header.tmpl
436 list-available-printers.tmpl
449 printer-cancel-jobs.tmpl
450 printer-configured.tmpl
454 printer-jobs-header.tmpl
455 printer-modified.tmpl
466 set-printer-options-header.tmpl
467 set-printer-options-trailer.tmpl
468 subscription-added.tmpl
469 subscription-canceled.tmpl
473 share/cups/templates/fr/
476 add-rss-subscription.tmpl
486 class-jobs-header.tmpl
507 list-available-printers.tmpl
520 printer-cancel-jobs.tmpl
521 printer-configured.tmpl
525 printer-jobs-header.tmpl
526 printer-modified.tmpl
537 set-printer-options-header.tmpl
538 set-printer-options-trailer.tmpl
539 subscription-added.tmpl
540 subscription-canceled.tmpl
544 share/cups/templates/ja/
547 add-rss-subscription.tmpl
557 class-jobs-header.tmpl
578 list-available-printers.tmpl
591 printer-cancel-jobs.tmpl
592 printer-configured.tmpl
596 printer-jobs-header.tmpl
597 printer-modified.tmpl
608 set-printer-options-header.tmpl
609 set-printer-options-trailer.tmpl
610 subscription-added.tmpl
611 subscription-canceled.tmpl
615 share/cups/templates/pt_BR/
618 add-rss-subscription.tmpl
628 class-jobs-header.tmpl
649 list-available-printers.tmpl
662 printer-cancel-jobs.tmpl
663 printer-configured.tmpl
667 printer-jobs-header.tmpl
668 printer-modified.tmpl
679 set-printer-options-header.tmpl
680 set-printer-options-trailer.tmpl
681 subscription-added.tmpl
682 subscription-canceled.tmpl
686 share/cups/templates/ru/
689 add-rss-subscription.tmpl
699 class-jobs-header.tmpl
720 list-available-printers.tmpl
733 printer-cancel-jobs.tmpl
734 printer-configured.tmpl
738 printer-jobs-header.tmpl
739 printer-modified.tmpl
750 set-printer-options-header.tmpl
751 set-printer-options-trailer.tmpl
752 subscription-added.tmpl
753 subscription-canceled.tmpl
757 share/icons/hicolor/128x128/apps/cups.png
758 share/icons/hicolor/16x16/apps/cups.png
759 share/icons/hicolor/32x32/apps/cups.png
760 share/icons/hicolor/64x64/apps/cups.png
761 share/locale/ca/cups_ca.po
762 share/locale/cs/cups_cs.po
763 share/locale/de/cups_de.po
764 share/locale/es/cups_es.po
765 share/locale/fr/cups_fr.po
766 share/locale/it/cups_it.po
767 share/locale/ja/cups_ja.po
768 share/locale/pt_BR/cups_pt_BR.po
769 share/locale/ru/cups_ru.po
770 share/locale/zh_CN/cups_zh_CN.po
802 subscriptions.conf.5.gz
830 @dir libexec/cups/driver
831 @dir share/cups/banners
833 @dir share/cups/model
834 @dir share/cups/profiles
835 @dir(,cups,) etc/cups/ppd
836 @dir(,cups,1770) /var/spool/cups/tmp
837 @dir(,cups,700) etc/cups/ssl
838 @dir(,cups,775) /var/cache/cups/rss
839 @dir(cups,,511) /var/run/cups/certs
840 @postexec chmod 710 /var/spool/cups && chgrp cups /var/spool/cups
841 @postexec chmod 770 /var/cache/cups && chgrp cups /var/cache/cups
844 [FILE:1845:manifests/plist.docs]
851 share/doc/cups/de/index.html
852 share/doc/cups/es/index.html
867 man-classes.conf.html
870 man-cups-files.conf.html
876 man-cupsd-helper.html
904 man-printers.conf.html
905 man-subscriptions.conf.html
910 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-03-22 19:51:36 UTC
967 @@ -297,7 +297,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 @@ -377,7 +376,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 @@ -408,7 +406,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 @@ -419,7 +417,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-03-22 19:51:36 UTC
1005 +++ backend/usb-libusb.c
1006 @@ -1440,7 +1440,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-03-22 19:51:36 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:3805:patches/patch-configure]
1036 --- configure.orig 2019-03-22 19:51:36 UTC
1038 @@ -5775,7 +5775,7 @@ fi
1041 case $host_os_name in
1043 + darwin* | *bsd* | dragonfly* | solaris*)
1047 @@ -5871,7 +5871,6 @@ if test "${with_dbusdir+set}" = set; the
1053 DBUS_NOTIFIERLIBS=""
1055 @@ -6435,7 +6434,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 @@ -6489,11 +6488,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 @@ -6550,7 +6553,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"
1089 AMANDIR="/usr/share/man"
1090 @@ -6572,22 +6575,6 @@ fi
1093 case "$host_os_name" in
1102 - linux* | gnu* | darwin*)
1103 - # Linux, GNU Hurd, and macOS
1113 @@ -6628,7 +6615,7 @@ if test x$enable_shared != xno; then
1115 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
1117 - linux* | gnu* | *bsd*)
1118 + linux* | gnu* | *bsd* | dragonfly*)
1119 LIBCUPS="lib$cupsbase.so.2"
1120 LIBCUPSIMAGE="libcupsimage.so.2"
1122 @@ -6709,12 +6696,11 @@ if test "$DSO" != ":"; then
1123 EXPORT_LDFLAGS="-R$libdir"
1127 + *bsd* | dragonfly*)
1129 if test $exec_prefix != /usr; then
1130 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
1131 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
1132 - EXPORT_LDFLAGS="-Wl,-R$libdir"
1136 @@ -6914,13 +6900,13 @@ if test -n "$GCC"; then
1137 OPTIM="-fPIC $OPTIM"
1140 - # The -fstack-protector option is available with some versions of
1141 + # The option is available with some versions of
1142 # GCC and adds "stack canaries" which detect when the return address
1143 # has been overwritten, preventing many types of exploit attacks.
1144 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
1145 -$as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
1146 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports " >&5
1147 +$as_echo_n "checking whether compiler supports ... " >&6; }
1149 - CFLAGS="$CFLAGS -fstack-protector"
1151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1152 /* end confdefs.h. */
1154 @@ -6937,7 +6923,7 @@ if ac_fn_c_try_link "$LINENO"; then :
1155 # Can't use stack-protector with LSB binaries...
1156 OPTIM="$OPTIM -fno-stack-protector"
1158 - OPTIM="$OPTIM -fstack-protector"
1161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1162 $as_echo "yes" >&6; }
1163 @@ -8733,13 +8719,7 @@ fi
1167 - # Find the PAM configuration directory, if any...
1168 - for dir in /private/etc/pam.d /etc/pam.d; do
1169 - if test -d $dir; then
1174 + PAMDIR=/raven/etc/pam.d
1180 [FILE:324:patches/patch-cups-config.in]
1181 --- cups-config.in.orig 2019-03-22 19:51:36 UTC
1183 @@ -103,7 +103,7 @@ while test $# -gt 0; do
1186 if test $static = no; then
1187 - libs="@EXTLINKCUPS@ $LIBS";
1188 + libs="@EXTLINKCUPS@";
1189 if test $image = yes; then
1190 libs="@EXTLINKCUPSIMAGE@ $libs"
1194 [FILE:775:patches/patch-scheduler_auth.c]
1195 --- scheduler/auth.c.orig 2019-03-22 19:51:36 UTC
1196 +++ scheduler/auth.c
1197 @@ -451,7 +451,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I
1199 peersize = sizeof(peercred);
1202 +# if defined(__APPLE__) || defined(__FreeBSD__)
1203 if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize))
1205 if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred, &peersize))
1206 @@ -849,7 +849,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I
1208 peersize = sizeof(peercred);
1211 +# if defined(__APPLE__) || defined(__FreeBSD__)
1212 if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize))
1214 if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred,
1217 [FILE:468:patches/patch-scheduler_client.c]
1218 --- scheduler/client.c.orig 2019-03-22 19:51:36 UTC
1219 +++ scheduler/client.c
1220 @@ -3816,8 +3816,8 @@ pipe_command(cupsd_client_t *con, /* I -
1221 * Then execute the command...
1224 - if (cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
1225 - -1, -1, root, DefaultProfile, NULL, &pid) < 0)
1226 + if (!cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
1227 + -1, -1, root, DefaultProfile, NULL, &pid))
1230 * Error - can't fork!
1233 [FILE:683:patches/patch-scheduler_cups-driverd.cxx]
1234 --- scheduler/cups-driverd.cxx.orig 2019-03-22 19:51:36 UTC
1235 +++ scheduler/cups-driverd.cxx
1236 @@ -913,7 +913,7 @@ get_file(const char *name, /* I - Name
1240 -#elif defined(__linux)
1241 +#elif defined(__linux) || defined(__FreeBSD__) || defined(__DragonFly__)
1242 if (!strncmp(name, "lsb/usr/", 8))
1245 @@ -1093,7 +1093,7 @@ list_ppds(int request_id, /* I -
1246 load_ppds("/System/Library/Printers/PPDs/Contents/Resources/en.lproj",
1247 "System/Library/Printers/PPDs/Contents/Resources/en.lproj", 0);
1249 -#elif defined(__linux)
1250 +#elif defined(__linux) || defined(__FreeBSD__) || defined(__DragonFly__)
1252 * Load PPDs from LSB-defined locations...
1256 [FILE:462:patches/patch-scheduler_subscriptions.c]
1257 --- scheduler/subscriptions.c.orig 2019-03-22 19:51:36 UTC
1258 +++ scheduler/subscriptions.c
1259 @@ -1564,8 +1564,8 @@ cupsd_start_notifier(
1260 * Create the notifier process...
1263 - if (cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
1264 - -1, -1, 0, DefaultProfile, NULL, &pid) < 0)
1265 + if (!cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
1266 + -1, -1, 0, DefaultProfile, NULL, &pid))
1269 * Error - can't fork!
1272 [FILE:118:files/cups]
1273 # $FreeBSD: head/print/cups/files/cups 410825 2016-03-11 11:53:42Z tijl $
1276 account include system
1279 [FILE:318:files/cups.conf.sample]
1280 # Allow members of group cups to access generic USB printer devices
1283 match "system" "USB";
1284 match "subsystem" "INTERFACE";
1285 match "type" "ATTACH";
1286 match "intclass" "0x07";
1287 match "intsubclass" "0x01";
1288 match "intprotocol" "(0x01|0x02|0x03)";
1289 action "chgrp cups /dev/$cdev; chmod g+rw /dev/$cdev";
1293 [FILE:435:files/cupsd.in]
1297 # REQUIRE: DAEMON dbus
1300 # Add the following to /etc/rc.conf[.local] to enable this service
1302 # cupsd_enable="YES"
1308 rcvar="cupsd_enable"
1310 start_precmd="${name}_prestart"
1312 command="%%PREFIX%%/sbin/cupsd"
1313 extra_commands="reload"
1317 if [ -n "$TZ" ]; then
1322 load_rc_config ${name}
1324 : ${cupsd_enable=NO}