Bladeren bron

add missing files and move up to EVAL because required by EVAL package

Ralf S. Engelschall 22 jaren geleden
bovenliggende
commit
41bc5cc3e5
4 gewijzigde bestanden met toevoegingen van 191 en 2 verwijderingen
  1. 28 0
      cups/cups.patch
  2. 2 2
      cups/cups.spec
  3. 142 0
      cups/cupsd.conf
  4. 19 0
      cups/rc.cups

+ 28 - 0
cups/cups.patch

@@ -0,0 +1,28 @@
+--- scheduler/main.c.orig	2003-05-01 19:58:28.000000000 +0200
++++ scheduler/main.c	2003-05-03 18:54:34.000000000 +0200
+@@ -222,6 +222,25 @@
+ 
+     chdir("/");
+ 
++   /*
++    * Write PID file
++    */
++#ifdef PID_FILE
++    {
++      mode_t old_umask;
++      pid_t  pid;
++      FILE   *fp;
++
++      old_umask = umask((mode_t) 0022);
++      pid = getpid();
++      if ((fp = fopen(PID_FILE, "w")) == NULL)
++        syslog(LOG_ERR, "cannot write PID file '%s'", PID_FILE);
++      fprintf(fp, "%ld\n", (long)pid);
++      fclose(fp);
++      umask(old_umask);
++    }
++#endif
++
+ #ifndef DEBUG
+    /*
+     * Disable core dumps...

+ 2 - 2
cups/cups.spec

@@ -29,11 +29,11 @@ Summary:      Common Unix Printing System
 URL:          http://www.cups.org/
 Vendor:       Easy Software Products
 Packager:     The OpenPKG Project
-Distribution: OpenPKG [JUNK]
+Distribution: OpenPKG [EVAL]
 Group:        Print
 License:      GPL/LGPL with exceptions
 Version:      1.1.19
-Release:      20030606
+Release:      20030609
 
 #   package options
 %option       with_openssl   no

+ 142 - 0
cups/cupsd.conf

@@ -0,0 +1,142 @@
+##
+##  @l_prefix@/etc/cups/cupsd.conf
+##
+
+#
+#   Server identity
+#
+
+#ServerName             myhost.domain.com
+#ServerAdmin            root@your.domain.com
+
+#
+#   Server options
+#
+
+#   User/group setting when running external commands like filters
+#User                   @l_musr@
+#Group                  @l_mgrp@
+
+#   Name of the user assigned to unauthenticated accesses from remote systems.
+#RemoteRoot             remroot
+
+LogLevel                info
+#AccessLog              @l_prefix@/var/cups/log/access_log
+#ErrorLog               @l_prefix@/var/cups/log/error_log
+#PageLog                @l_prefix@/var/cups/log/page_log
+
+#DataDir                @l_prefix@/share/cups
+#DocumentRoot           @l_prefix@/share/doc/cups
+#FontPath               @l_prefix@/share/cups/fonts
+#RequestRoot            @l_prefix@/var/cups/spool
+#ServerBin              @l_prefix@/libexec/cups
+#ServerRoot             @l_prefix@/etc/cups
+#TempDir                @l_prefix@/var/cups/spool/tmp
+
+#   Automatic printcap generation - specify suitable file, e.g. /etc/printcap
+#   or disable file generation by leaving blank.
+Printcap
+
+#   Format of the printcap file, currently either BSD or Solaris.
+PrintcapFormat          BSD
+
+#DefaultCharset         utf-8
+#DefaultLanguage        en
+
+#MaxCopies              100
+#MaxJobs                500
+
+#RIPCache               8m
+
+#PreserveJobHistory     Yes
+#PreserveJobFiles       No
+#AutoPurgeJobs          No
+
+#
+#   Network options
+#
+
+Listen                  127.0.0.1:631
+
+#HostNameLookups        On
+
+#MaxClients             100
+#MaxClientsPerHost      0
+#MaxRequestSize         0
+
+#KeepAlive              On
+#KeepAliveTimeout       60
+#Timeout                300
+
+#
+#   Browsing options
+#
+
+Browsing                On
+BrowseProtocols         cups
+BrowseShortNames        Yes
+
+BrowseAddress           @LOCAL
+BrowsePort              631
+
+BrowseInterval          30
+BrowseTimeout           300
+
+BrowseOrder             allow,deny
+BrowseAllow             All
+BrowseDeny              None
+
+ImplicitClasses         On
+ImplicitAnyCLasses      Off
+HideImplicitMembers     On
+
+#
+#   Security Options
+#
+
+#ServerCertificate      @l_prefix@/etc/cups/ssl/server.crt
+#ServerKey              @l_prefix@/etc/cups/ssl/server.key
+
+SystemGroup             @l_sgrp@
+
+<Location />
+    AuthType            None
+    Order               Deny,Allow
+    Deny                From All
+    Allow               From 127.0.0.1
+</Location>
+
+<Location /admin>
+    AuthType            Basic
+    AuthClass           System
+    Encryption          IfRequested
+    Order               Deny,Allow
+    Deny                From All
+    Allow               From 127.0.0.1
+</Location>
+
+#<Location /classes>
+#    You may wish to limit access to printers and classes, either with Allow
+#    and Deny lines, or by requiring a username and password.
+#</Location>
+
+#<Location /classes/name>
+#    You may wish to limit access to printers and classes, either with Allow
+#    and Deny lines, or by requiring a username and password.
+#</Location>
+
+#<Location /jobs>
+#    You may wish to limit access to job operations, either with Allow
+#    and Deny lines, or by requiring a username and password.
+#</Location>
+
+#<Location /printers>
+#    You may wish to limit access to printers and classes, either with Allow
+#    and Deny lines, or by requiring a username and password.
+#</Location>
+
+#<Location /printers/name>
+#    You may wish to limit access to printers and classes, either with Allow
+#    and Deny lines, or by requiring a username and password.
+#</Location>
+

+ 19 - 0
cups/rc.cups

@@ -0,0 +1,19 @@
+#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+##  rc.teapop -- Run-Commands for CUPS
+##
+
+%config
+    cups_enable="yes"
+
+%start -p 200 -u @l_susr@
+    opServiceEnabled cups || exit 0
+    @l_prefix@/libexec/cups/cupsd
+
+%stop -p 200 -u @l_susr@
+    opServiceEnabled cups || exit 0
+    if [ -f @l_prefix@/var/cups/cupsd.pid ]; then
+        kill -TERM `cat @l_prefix@/var/cups/cupsd.pid`
+        rm -f @l_prefix@/var/cups/cupsd.pid >/dev/null 2>&1 || true
+    fi
+