aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print/cups-base/Makefile2
-rw-r--r--print/cups-base/files/patch-backend-usb.c22
-rw-r--r--print/cups-base/files/patch-backend-usb.c-1.1.1655
3 files changed, 56 insertions, 23 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 6db3a1ecac59..30c62d10b201 100644
--- a/print/cups-base/Makefile
+++ b/print/cups-base/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cups-base
PORTVERSION= ${CUPS_PORTVER}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES?= print
MAINTAINER= jah4007@cs.rit.edu
diff --git a/print/cups-base/files/patch-backend-usb.c b/print/cups-base/files/patch-backend-usb.c
deleted file mode 100644
index 2acdfa389eeb..000000000000
--- a/print/cups-base/files/patch-backend-usb.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- backend/usb.c.orig Thu May 16 09:44:50 2002
-+++ backend/usb.c Thu Aug 8 11:37:20 2002
-@@ -433,18 +433,7 @@
- #elif defined(__sun)
- #elif defined(__hpux)
- #elif defined(__osf)
--#elif defined(__FreeBSD__)
-- int i; /* Looping var */
-- char device[255]; /* Device filename */
--
--
-- for (i = 0; i < 3; i ++)
-- {
-- sprintf(device, "/dev/unlpt%d", i);
-- if (!access(device, 0))
-- printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1);
-- }
--#elif defined(__NetBSD__) || defined(__OpenBSD__)
-+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
- int i; /* Looping var */
- char device[255]; /* Device filename */
-
diff --git a/print/cups-base/files/patch-backend-usb.c-1.1.16 b/print/cups-base/files/patch-backend-usb.c-1.1.16
new file mode 100644
index 000000000000..a4c618fb2f98
--- /dev/null
+++ b/print/cups-base/files/patch-backend-usb.c-1.1.16
@@ -0,0 +1,55 @@
+--- backend/usb.c.orig Thu May 16 09:44:50 2002
++++ backend/usb.c Sat Aug 17 17:21:33 2002
+@@ -1,5 +1,5 @@
+ /*
+- * "$Id: usb.c,v 1.30 2002/05/16 13:44:50 mike Exp $"
++ * "$Id: usb.c,v 1.32 2002/08/09 00:19:20 mike Exp $"
+ *
+ * USB port backend for the Common UNIX Printing System (CUPS).
+ *
+@@ -431,34 +431,37 @@
+ }
+ #elif defined(__sgi)
+ #elif defined(__sun)
+-#elif defined(__hpux)
+-#elif defined(__osf)
+-#elif defined(__FreeBSD__)
+ int i; /* Looping var */
+ char device[255]; /* Device filename */
+
+
+- for (i = 0; i < 3; i ++)
++ for (i = 0; i < 8; i ++)
+ {
+- sprintf(device, "/dev/unlpt%d", i);
++ sprintf(device, "/dev/usb/printer%d", i);
+ if (!access(device, 0))
+ printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1);
+ }
+-#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#elif defined(__hpux)
++#elif defined(__osf)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ int i; /* Looping var */
+ char device[255]; /* Device filename */
+
+
+- for (i = 0; i < 3; i ++)
++ for (i = 0; i < 8; i ++)
+ {
+ sprintf(device, "/dev/ulpt%d", i);
+ if (!access(device, 0))
+ printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1);
++
++ sprintf(device, "/dev/unlpt%d", i);
++ if (!access(device, 0))
++ printf("direct usb:%s \"Unknown\" \"USB Printer #%d\" (no reset)\n", device, i + 1);
+ }
+ #endif
+ }
+
+
+ /*
+- * End of "$Id: usb.c,v 1.30 2002/05/16 13:44:50 mike Exp $".
++ * End of "$Id: usb.c,v 1.32 2002/08/09 00:19:20 mike Exp $".
+ */