summaryrefslogtreecommitdiff
path: root/package/cups/files
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/cups/files
Initial import
Diffstat (limited to 'package/cups/files')
-rw-r--r--package/cups/files/cupsd.init28
-rw-r--r--package/cups/files/etc/cups/classes.conf7
-rw-r--r--package/cups/files/etc/cups/client.conf9
-rw-r--r--package/cups/files/etc/cups/cupsd.conf34
-rw-r--r--package/cups/files/etc/cups/printers.conf23
5 files changed, 101 insertions, 0 deletions
diff --git a/package/cups/files/cupsd.init b/package/cups/files/cupsd.init
new file mode 100644
index 000000000..d22f55c96
--- /dev/null
+++ b/package/cups/files/cupsd.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#FWINIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${cups:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ [ -d /var/cache/cups ] || mkdir -p /var/cache/cups
+ [ -d /var/cups ] || mkdir -p /var/cups/tmp
+ [ -d /var/cups/spool/cups/tmp ] || mkdir -p /var/cups/spool/cups/tmp
+ /usr/sbin/cupsd -c /etc/cups/cupsd.conf
+ ;;
+stop)
+ killall cupsd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ ;;
+esac
+exit $?
diff --git a/package/cups/files/etc/cups/classes.conf b/package/cups/files/etc/cups/classes.conf
new file mode 100644
index 000000000..15afda75a
--- /dev/null
+++ b/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/package/cups/files/etc/cups/client.conf b/package/cups/files/etc/cups/client.conf
new file mode 100644
index 000000000..c8d9f910e
--- /dev/null
+++ b/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/package/cups/files/etc/cups/cupsd.conf b/package/cups/files/etc/cups/cupsd.conf
new file mode 100644
index 000000000..89aa40c2a
--- /dev/null
+++ b/package/cups/files/etc/cups/cupsd.conf
@@ -0,0 +1,34 @@
+AccessLog syslog
+ErrorLog syslog
+LogLevel info
+PageLog syslog
+PreserveJobHistory No
+PreserveJobFiles No
+AutoPurgeJobs Yes
+MaxJobs 25
+MaxPrinterHistory 10
+RequestRoot /tmp/cups
+User cups
+Group cups
+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/package/cups/files/etc/cups/printers.conf b/package/cups/files/etc/cups/printers.conf
new file mode 100644
index 000000000..88bba1b13
--- /dev/null
+++ b/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 parallel:/dev/printers/0
+State Idle
+Accepting Yes
+JobSheets none none
+QuotaPeriod 0
+PageLimit 0
+KLimit 0
+</Printer>