]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Fri, 24 Jun 2016 19:37:19 +0000 (21:37 +0200)
committerroot <root@uhu1.uhu-banane.de>
Fri, 24 Jun 2016 19:37:19 +0000 (21:37 +0200)
.etckeeper
cups/cups-files.conf.default [new file with mode: 0644]
cups/cupsd.conf
cups/snmp.conf.default [new file with mode: 0644]
init.d/cupsd

index 5beed4b43670c5445e76c9ac8752f52dc902ae2a..d6619fc8d79f22dcacf4dde347ef9c55a172fa74 100755 (executable)
@@ -836,6 +836,8 @@ maybe chmod 0644 'cups/client.conf'
 maybe chmod 0644 'cups/cups-browsed.conf'
 maybe chgrp 'lp' 'cups/cups-files.conf'
 maybe chmod 0640 'cups/cups-files.conf'
+maybe chgrp 'lp' 'cups/cups-files.conf.default'
+maybe chmod 0640 'cups/cups-files.conf.default'
 maybe chgrp 'lp' 'cups/cupsd.conf'
 maybe chmod 0640 'cups/cupsd.conf'
 maybe chmod 0755 'cups/interfaces'
@@ -844,6 +846,8 @@ maybe chmod 0755 'cups/ppd'
 maybe chmod 0644 'cups/ppd/.keep_net-print_cups-0'
 maybe chgrp 'lp' 'cups/snmp.conf'
 maybe chmod 0640 'cups/snmp.conf'
+maybe chgrp 'lp' 'cups/snmp.conf.default'
+maybe chmod 0640 'cups/snmp.conf.default'
 maybe chmod 0755 'cups/ssl'
 maybe chmod 0644 'cups/ssl/.keep_net-print_cups-0'
 maybe chmod 0755 'dbus-1'
diff --git a/cups/cups-files.conf.default b/cups/cups-files.conf.default
new file mode 100644 (file)
index 0000000..44dc3fe
--- /dev/null
@@ -0,0 +1,93 @@
+#
+# File/directory/user/group configuration file for the CUPS scheduler.
+# See "man cups-files.conf" for a complete description of this file.
+#
+
+# List of events that are considered fatal errors for the scheduler...
+#FatalErrors config
+
+# Do we call fsync() after writing configuration or status files?
+#SyncOnClose No
+
+# Default user and group for filters/backends/helper programs; this cannot be
+# any user or group that resolves to ID 0 for security reasons...
+#User lp
+#Group lp
+
+# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
+# This cannot contain the Group value for security reasons...
+SystemGroup lpadmin
+
+
+# User that is substituted for unauthenticated (remote) root accesses...
+#RemoteRoot remroot
+
+# Do we allow file: device URIs other than to /dev/null?
+#FileDevice No
+
+# Permissions for configuration and log files...
+#ConfigFilePerm 0640
+#LogFilePerm 0644
+
+# Location of the file logging all access to the scheduler; may be the name
+# "syslog". If not an absolute path, the value of ServerRoot is used as the
+# root directory.  Also see the "AccessLogLevel" directive in cupsd.conf.
+AccessLog /var/log/cups/access_log
+
+# Location of cache files used by the scheduler...
+#CacheDir /var/cache/cups
+
+# Location of data files used by the scheduler...
+#DataDir /usr/share/cups
+
+# Location of the static web content served by the scheduler...
+#DocumentRoot /usr/share/cups/html
+
+# Location of the file logging all messages produced by the scheduler and any
+# helper programs; may be the name "syslog". If not an absolute path, the value
+# of ServerRoot is used as the root directory.  Also see the "LogLevel"
+# directive in cupsd.conf.
+ErrorLog /var/log/cups/error_log
+
+# Location of fonts used by older print filters...
+#FontPath /usr/share/cups/fonts
+
+# Location of LPD configuration
+#LPDConfigFile xinetd:///etc/xinetd.d/cups-lpd
+
+# Location of the file logging all pages printed by the scheduler and any
+# helper programs; may be the name "syslog". If not an absolute path, the value
+# of ServerRoot is used as the root directory.  Also see the "PageLogFormat"
+# directive in cupsd.conf.
+PageLog /var/log/cups/page_log
+
+# Location of the file listing all of the local printers...
+#Printcap /etc/printcap
+
+# Format of the Printcap file...
+#PrintcapFormat bsd
+#PrintcapFormat plist
+#PrintcapFormat solaris
+
+# Location of all spool files...
+#RequestRoot /var/spool/cups
+
+# Location of helper programs...
+#ServerBin /usr/lib/cups
+
+# SSL/TLS keychain for the scheduler...
+#ServerKeychain ssl
+
+# Location of other configuration files...
+#ServerRoot /etc/cups
+
+# Location of Samba configuration file...
+#SMBConfigFile 
+
+# Location of scheduler state files...
+#StateDir /run/cups
+
+# Location of scheduler/helper temporary files. This directory is emptied on
+# scheduler startup and cannot be one of the standard (public) temporary
+# directory locations for security reasons...
+#TempDir /var/spool/cups/tmp
index 3d477a87abb9f38a50ae67fb39e5dbe570f73e18..50e11f571cc77f62d03f07a88c02aa1022f6343a 100644 (file)
@@ -39,6 +39,13 @@ WebInterface Yes
   Order allow,deny
 </Location>
 
+# Restrict access to log files...
+<Location /admin/log>
+  AuthType Default
+  Require user @SYSTEM
+  Order allow,deny
+</Location>
+
 # Set the default printer/job policies...
 <Policy default>
   # Job/subscription privacy...
diff --git a/cups/snmp.conf.default b/cups/snmp.conf.default
new file mode 100644 (file)
index 0000000..a7d1e3b
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# SNMP configuration file for CUPS.  See "man cups-snmp.conf" for a complete
+# description of this file.
+#
+
+Address @LOCAL
+Community public
index d81e2bc6e378245a59bb7fa565c898c6fccbe664..7fb1a297d907dcde97bd84131444f8bc41df93f2 100755 (executable)
@@ -1,4 +1,9 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# $Id$
+
+description="The Common Unix Printing System daemon"
+command="/usr/sbin/cupsd"
 
 depend() {
        use net
@@ -7,20 +12,9 @@ depend() {
        after logger
 }
 
-start() {
-       ebegin "Starting cupsd"
-
+start_pre() {
        checkpath -q -d -m 0775 -o root:lp /var/cache/cups
        checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
        checkpath -q -d -m 0755 -o root:lp /run/cups
        checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
-
-       start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
-       eend $?
-}
-
-stop() {
-       ebegin "Stopping cupsd"
-       start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
-       eend $?
 }