summaryrefslogtreecommitdiff
path: root/openwrt/package/cups/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/cups/files')
-rw-r--r--openwrt/package/cups/files/etc/cups/classes.conf7
-rw-r--r--openwrt/package/cups/files/etc/cups/client.conf9
-rw-r--r--openwrt/package/cups/files/etc/cups/cupsd.conf50
-rw-r--r--openwrt/package/cups/files/etc/cups/printers.conf23
-rwxr-xr-xopenwrt/package/cups/files/etc/init.d/S60cups4
-rw-r--r--openwrt/package/cups/files/usr/share/doc/cups/index.html36
6 files changed, 129 insertions, 0 deletions
diff --git a/openwrt/package/cups/files/etc/cups/classes.conf b/openwrt/package/cups/files/etc/cups/classes.conf
new file mode 100644
index 0000000000..15afda75a2
--- /dev/null
+++ b/openwrt/package/cups/files/etc/cups/classes.conf
@@ -0,0 +1,7 @@
+########################################################################
+# #
+# This is a sample class configuration file. This file is included #
+# from the main configuration file (cups.conf) and lists all of the #
+# printer classes known to the system. #
+# #
+########################################################################
diff --git a/openwrt/package/cups/files/etc/cups/client.conf b/openwrt/package/cups/files/etc/cups/client.conf
new file mode 100644
index 0000000000..c8d9f910ed
--- /dev/null
+++ b/openwrt/package/cups/files/etc/cups/client.conf
@@ -0,0 +1,9 @@
+########################################################################
+# #
+# This is the CUPS client configuration file. This file is used to #
+# define client-specific parameters, such as the default server or #
+# default encryption settings. #
+# #
+########################################################################
+
+Encryption Never
diff --git a/openwrt/package/cups/files/etc/cups/cupsd.conf b/openwrt/package/cups/files/etc/cups/cupsd.conf
new file mode 100644
index 0000000000..e84de453b3
--- /dev/null
+++ b/openwrt/package/cups/files/etc/cups/cupsd.conf
@@ -0,0 +1,50 @@
+########################################################################
+# #
+# This is the CUPS configuration file. If you are familiar with #
+# Apache or any of the other popular web servers, we've followed the #
+# same format. Any configuration variable used here has the same #
+# semantics as the corresponding variable in Apache. If we need #
+# different functionality then a different name is used to avoid #
+# confusion... #
+# #
+########################################################################
+
+
+AccessLog syslog
+ErrorLog syslog
+LogLevel info
+PageLog syslog
+PreserveJobHistory No
+PreserveJobFiles No
+AutoPurgeJobs Yes
+MaxJobs 25
+MaxPrinterHistory 10
+#Printcap /etc/printcap
+#PrintcapFormat BSD
+RequestRoot /tmp/cups
+#RemoteRoot remroot
+User root
+Group root
+RIPCache 512k
+TempDir /tmp/cups
+Port 631
+HostNameLookups Off
+KeepAlive On
+Browsing On
+BrowseProtocols cups
+
+<Location />
+AuthType Basic
+AuthClass System
+Order Allow,Deny
+Allow From All
+</Location>
+
+<Location /admin>
+AuthType Basic
+AuthClass System
+
+Order Allow,Deny
+Allow From All
+</Location>
+
diff --git a/openwrt/package/cups/files/etc/cups/printers.conf b/openwrt/package/cups/files/etc/cups/printers.conf
new file mode 100644
index 0000000000..a3bce1d013
--- /dev/null
+++ b/openwrt/package/cups/files/etc/cups/printers.conf
@@ -0,0 +1,23 @@
+<DefaultPrinter USB>
+Info USB Printer
+Location
+DeviceURI usb:/dev/usb/lp0
+State Idle
+Accepting Yes
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+</Printer>
+
+<Printer LP>
+Info Parallel Port Printer
+Location
+DeviceURI usb:/dev/printers/0
+State Idle
+Accepting Yes
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+</Printer>
diff --git a/openwrt/package/cups/files/etc/init.d/S60cups b/openwrt/package/cups/files/etc/init.d/S60cups
new file mode 100755
index 0000000000..8e5fd63c48
--- /dev/null
+++ b/openwrt/package/cups/files/etc/init.d/S60cups
@@ -0,0 +1,4 @@
+#!/bin/sh
+mkdir -p /tmp/cups
+mkdir -p /tmp/spool/cups/tmp
+exec /usr/sbin/cupsd
diff --git a/openwrt/package/cups/files/usr/share/doc/cups/index.html b/openwrt/package/cups/files/usr/share/doc/cups/index.html
new file mode 100644
index 0000000000..368f6cf263
--- /dev/null
+++ b/openwrt/package/cups/files/usr/share/doc/cups/index.html
@@ -0,0 +1,36 @@
+<HTML>
+<HEAD>
+ <TITLE>Common UNIX Printing System</TITLE>
+ <LINK REL=STYLESHEET TYPE="text/css" HREF="cups.css">
+ <MAP NAME="navbar">
+ <AREA SHAPE="RECT" COORDS="12,10,50,20" HREF="http://www.easysw.com" ALT="Easy Software Products Home Page">
+ <AREA SHAPE="RECT" COORDS="82,10,196,20" HREF="/admin" ALT="Do Administration Tasks">
+ <AREA SHAPE="RECT" COORDS="216,10,280,20" HREF="/classes" ALT="Manage Printer Classes Status">
+ <AREA SHAPE="RECT" COORDS="300,10,336,20" HREF="http://www.cups.org/documentation.php" ALT="On-Line Help">
+ <AREA SHAPE="RECT" COORDS="356,10,394,20" HREF="/jobs" ALT="Manage Jobs">
+ <AREA SHAPE="RECT" COORDS="414,10,476,20" HREF="/printers" ALT="Manage Printers">
+ <AREA SHAPE="RECT" COORDS="496,10,568,20" HREF="http://www.cups.org" ALT="Download the Current CUPS Software">
+ </MAP>
+</HEAD>
+
+<BODY BGCOLOR="#cccc99" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF">
+<CENTER>
+<IMG SRC="/images/navbar.gif" WIDTH="583" HEIGHT="30" USEMAP="#navbar" BORDER="0" ALT="Common UNIX Printing System">
+</CENTER>
+
+<H1><A HREF="admin">Do Administration Tasks</A></H1>
+<H1><A HREF="classes">Manage Printer Classes</A></H1>
+<H1><A HREF="http://www.cups.org/documentation.php">On-Line Help</A></H1>
+<H1><A HREF="jobs">Manage Jobs</A></H1>
+<H1><A HREF="printers">Manage Printers</A></H1>
+<H1><A HREF="http://www.cups.org">Download the Current CUPS Software</A></H1>
+
+<HR>
+
+<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the
+trademark property of <A HREF="http://www.easysw.com">Easy Software
+Products</A>. CUPS is copyright 1997-2005 by Easy Software Products,
+All Rights Reserved.
+
+</BODY>
+</HTML>