summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/cups/MESSAGE.libusb11
-rw-r--r--print/cups/options.mk6
2 files changed, 15 insertions, 2 deletions
diff --git a/print/cups/MESSAGE.libusb b/print/cups/MESSAGE.libusb
new file mode 100644
index 00000000000..d60492d7fcd
--- /dev/null
+++ b/print/cups/MESSAGE.libusb
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE.libusb,v 1.1 2010/06/09 08:58:05 sbd Exp $
+
+To get the libusb DeviceURI's of attached printers run:
+
+${PREFIX}/libexec/cups/backend/usb
+
+The DeviceURI is the string starting with "usb://".
+
+Note: ulpt(4)/usblp printer can be accessed with a "usb:/dev/" DeviceURI.
+===========================================================================
diff --git a/print/cups/options.mk b/print/cups/options.mk
index f911dc7ff84..e889b3a65e8 100644
--- a/print/cups/options.mk
+++ b/print/cups/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2010/05/26 09:18:48 sbd Exp $
+# $NetBSD: options.mk,v 1.10 2010/06/09 08:58:05 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
PKG_OPTIONS_REQUIRED_GROUPS= pdftops
@@ -9,6 +9,8 @@ PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript
.include "../../mk/bsd.options.mk"
+MESSAGE_SRC= ${PKGDIR}/MESSAGE
+
.if !empty(PKG_OPTIONS:Macl)
CONFIGURE_ARGS+= --enable-acl
.else
@@ -48,6 +50,7 @@ CONFIGURE_ARGS+= --disable-gssapi
.if !empty(PKG_OPTIONS:Mlibusb)
.include "../../devel/libusb/buildlink3.mk"
CONFIGURE_ARGS+= --enable-libusb
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb
.else
CONFIGURE_ARGS+= --disable-libusb
.endif
@@ -56,7 +59,6 @@ PLIST_VARS+= pam
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam
-MESSAGE_SRC= ${PKGDIR}/MESSAGE
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
PLIST.pam= yes
.else