summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2010-06-09 08:58:05 +0000
committersbd <sbd@pkgsrc.org>2010-06-09 08:58:05 +0000
commit469a1625868cd42c79396b90922a4b7b948e80fa (patch)
treef4d847aaa8fdcd1329f40a277dbc437883e09081 /print
parent459b02b201e9d1b9de99039016d59b85b1a176e1 (diff)
downloadpkgsrc-469a1625868cd42c79396b90922a4b7b948e80fa.tar.gz
Include a MESSAGE on how to use libusb DeviceURI's if the libusb option is on.
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