1.5b2
This commit is contained in:
parent
cb43936c55
commit
5bd20b0884
1
.gitignore
vendored
1
.gitignore
vendored
@ -46,3 +46,4 @@ cups-1.4.4-source.tar.bz2
|
|||||||
/cups-1.4.5-source.tar.bz2
|
/cups-1.4.5-source.tar.bz2
|
||||||
/cups-1.4.6-source.tar.bz2
|
/cups-1.4.6-source.tar.bz2
|
||||||
/cups-1.5b1-source.tar.bz2
|
/cups-1.5b1-source.tar.bz2
|
||||||
|
/cups-1.5b2-source.tar.bz2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c
|
diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c
|
||||||
--- cups-1.5b1/cups/dest.c.cups-get-classes 2011-05-20 05:49:49.000000000 +0200
|
--- cups-1.5b1/cups/dest.c.cups-get-classes 2011-05-20 05:49:49.000000000 +0200
|
||||||
+++ cups-1.5b1/cups/dest.c 2011-05-24 16:03:08.000000000 +0200
|
+++ cups-1.5b1/cups/dest.c 2011-05-26 11:06:22.000000000 +0200
|
||||||
@@ -534,6 +534,7 @@ _cupsGetDests(http_t *http, /* I -
|
@@ -534,6 +534,7 @@ _cupsGetDests(http_t *http, /* I -
|
||||||
char uri[1024]; /* printer-uri value */
|
char uri[1024]; /* printer-uri value */
|
||||||
int num_options; /* Number of options */
|
int num_options; /* Number of options */
|
||||||
@ -71,7 +71,7 @@ diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c
|
|||||||
if ((dest = cups_add_dest(printer_name, NULL, &num_dests, dests)) != NULL)
|
if ((dest = cups_add_dest(printer_name, NULL, &num_dests, dests)) != NULL)
|
||||||
{
|
{
|
||||||
dest->num_options = num_options;
|
dest->num_options = num_options;
|
||||||
@@ -754,6 +796,16 @@ _cupsGetDests(http_t *http, /* I -
|
@@ -754,6 +796,15 @@ _cupsGetDests(http_t *http, /* I -
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -81,8 +81,7 @@ diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c
|
|||||||
+ */
|
+ */
|
||||||
+
|
+
|
||||||
+ if (get_classes)
|
+ if (get_classes)
|
||||||
+ num_dests = cups_get_sdests (http, CUPS_GET_CLASSES, name,
|
+ num_dests = _cupsGetDests (http, CUPS_GET_CLASSES, name, dests);
|
||||||
+ num_dests, dests);
|
|
||||||
+
|
+
|
||||||
+ /*
|
+ /*
|
||||||
* Return the count...
|
* Return the count...
|
||||||
|
@ -96,7 +96,7 @@ diff -up cups-1.5b1/backend/Makefile.eggcups cups-1.5b1/backend/Makefile
|
|||||||
ipp: ipp.o ../cups/$(LIBCUPS) libbackend.a
|
ipp: ipp.o ../cups/$(LIBCUPS) libbackend.a
|
||||||
echo Linking $@...
|
echo Linking $@...
|
||||||
- $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS)
|
- $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS)
|
||||||
+ $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS) $(CUPSDLIBS)
|
+ $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS) $(SERVERLIBS)
|
||||||
$(RM) http
|
$(RM) http
|
||||||
$(LN) ipp http
|
$(LN) ipp http
|
||||||
|
|
||||||
|
105
cups-lspp.patch
105
cups-lspp.patch
@ -1,6 +1,6 @@
|
|||||||
diff -up cups-1.5b1/config.h.in.lspp cups-1.5b1/config.h.in
|
diff -up cups-1.5b1/config.h.in.lspp cups-1.5b1/config.h.in
|
||||||
--- cups-1.5b1/config.h.in.lspp 2011-05-20 05:49:49.000000000 +0200
|
--- cups-1.5b1/config.h.in.lspp 2011-05-20 05:49:49.000000000 +0200
|
||||||
+++ cups-1.5b1/config.h.in 2011-05-24 18:22:51.000000000 +0200
|
+++ cups-1.5b1/config.h.in 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -733,6 +733,12 @@
|
@@ -733,6 +733,12 @@
|
||||||
|
|
||||||
#undef HAVE_XPC
|
#undef HAVE_XPC
|
||||||
@ -15,8 +15,8 @@ diff -up cups-1.5b1/config.h.in.lspp cups-1.5b1/config.h.in
|
|||||||
#endif /* !_CUPS_CONFIG_H_ */
|
#endif /* !_CUPS_CONFIG_H_ */
|
||||||
|
|
||||||
diff -up cups-1.5b1/config-scripts/cups-lspp.m4.lspp cups-1.5b1/config-scripts/cups-lspp.m4
|
diff -up cups-1.5b1/config-scripts/cups-lspp.m4.lspp cups-1.5b1/config-scripts/cups-lspp.m4
|
||||||
--- cups-1.5b1/config-scripts/cups-lspp.m4.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/config-scripts/cups-lspp.m4.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/config-scripts/cups-lspp.m4 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/config-scripts/cups-lspp.m4 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -0,0 +1,36 @@
|
@@ -0,0 +1,36 @@
|
||||||
+dnl
|
+dnl
|
||||||
+dnl LSPP code for the Common UNIX Printing System (CUPS).
|
+dnl LSPP code for the Common UNIX Printing System (CUPS).
|
||||||
@ -56,7 +56,7 @@ diff -up cups-1.5b1/config-scripts/cups-lspp.m4.lspp cups-1.5b1/config-scripts/c
|
|||||||
+fi
|
+fi
|
||||||
diff -up cups-1.5b1/configure.in.lspp cups-1.5b1/configure.in
|
diff -up cups-1.5b1/configure.in.lspp cups-1.5b1/configure.in
|
||||||
--- cups-1.5b1/configure.in.lspp 2010-11-20 02:03:46.000000000 +0100
|
--- cups-1.5b1/configure.in.lspp 2010-11-20 02:03:46.000000000 +0100
|
||||||
+++ cups-1.5b1/configure.in 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/configure.in 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -41,6 +41,8 @@ sinclude(config-scripts/cups-defaults.m4
|
@@ -41,6 +41,8 @@ sinclude(config-scripts/cups-defaults.m4
|
||||||
sinclude(config-scripts/cups-pdf.m4)
|
sinclude(config-scripts/cups-pdf.m4)
|
||||||
sinclude(config-scripts/cups-scripting.m4)
|
sinclude(config-scripts/cups-scripting.m4)
|
||||||
@ -68,8 +68,8 @@ diff -up cups-1.5b1/configure.in.lspp cups-1.5b1/configure.in
|
|||||||
LANGFILES=""
|
LANGFILES=""
|
||||||
diff -up cups-1.5b1/cups/cups.h.lspp cups-1.5b1/cups/cups.h
|
diff -up cups-1.5b1/cups/cups.h.lspp cups-1.5b1/cups/cups.h
|
||||||
--- cups-1.5b1/cups/cups.h.lspp 2011-05-12 07:46:30.000000000 +0200
|
--- cups-1.5b1/cups/cups.h.lspp 2011-05-12 07:46:30.000000000 +0200
|
||||||
+++ cups-1.5b1/cups/cups.h 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/cups/cups.h 2011-05-26 14:34:20.000000000 +0200
|
||||||
@@ -15,6 +15,9 @@
|
@@ -15,12 +15,16 @@
|
||||||
* This file is subject to the Apple OS-Developed Software exception.
|
* This file is subject to the Apple OS-Developed Software exception.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -79,22 +79,29 @@ diff -up cups-1.5b1/cups/cups.h.lspp cups-1.5b1/cups/cups.h
|
|||||||
#ifndef _CUPS_CUPS_H_
|
#ifndef _CUPS_CUPS_H_
|
||||||
# define _CUPS_CUPS_H_
|
# define _CUPS_CUPS_H_
|
||||||
|
|
||||||
@@ -85,6 +88,12 @@ extern "C" {
|
/*
|
||||||
|
* Include necessary headers...
|
||||||
|
*/
|
||||||
|
+# include "config.h"
|
||||||
|
|
||||||
|
# include <sys/types.h>
|
||||||
|
# if defined(WIN32) && !defined(__CUPS_SSIZE_T_DEFINED)
|
||||||
|
@@ -84,6 +88,12 @@ extern "C" {
|
||||||
|
# define CUPS_WHICHJOBS_ACTIVE 0
|
||||||
# define CUPS_WHICHJOBS_COMPLETED 1
|
# define CUPS_WHICHJOBS_COMPLETED 1
|
||||||
|
|
||||||
|
+# ifdef WITH_LSPP
|
||||||
|
+# define MLS_CONFIG "mls"
|
||||||
|
+# define TE_CONFIG "te"
|
||||||
|
+# define SELINUX_CONFIG "SELinux"
|
||||||
|
+# define UNKNOWN_SL "UNKNOWN SL"
|
||||||
|
+# endif /* WITH_LSPP */
|
||||||
|
|
||||||
+# ifdef WITH_LSPP
|
|
||||||
+# define MLS_CONFIG "mls"
|
|
||||||
+# define TE_CONFIG "te"
|
|
||||||
+# define SELINUX_CONFIG "SELinux"
|
|
||||||
+# define UNKNOWN_SL "UNKNOWN SL"
|
|
||||||
+# endif /* WITH_LSPP */
|
|
||||||
/*
|
/*
|
||||||
* Types and structures...
|
* Types and structures...
|
||||||
*/
|
|
||||||
diff -up cups-1.5b1/data/Makefile.lspp cups-1.5b1/data/Makefile
|
diff -up cups-1.5b1/data/Makefile.lspp cups-1.5b1/data/Makefile
|
||||||
--- cups-1.5b1/data/Makefile.lspp 2011-05-12 07:21:56.000000000 +0200
|
--- cups-1.5b1/data/Makefile.lspp 2011-05-12 07:21:56.000000000 +0200
|
||||||
+++ cups-1.5b1/data/Makefile 2011-05-24 18:23:28.000000000 +0200
|
+++ cups-1.5b1/data/Makefile 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -25,7 +25,11 @@ BANNERS = \
|
@@ -25,7 +25,11 @@ BANNERS = \
|
||||||
secret \
|
secret \
|
||||||
standard \
|
standard \
|
||||||
@ -109,8 +116,8 @@ diff -up cups-1.5b1/data/Makefile.lspp cups-1.5b1/data/Makefile
|
|||||||
CHARSETS = \
|
CHARSETS = \
|
||||||
utf-8
|
utf-8
|
||||||
diff -up cups-1.5b1/data/mls.lspp cups-1.5b1/data/mls
|
diff -up cups-1.5b1/data/mls.lspp cups-1.5b1/data/mls
|
||||||
--- cups-1.5b1/data/mls.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/data/mls.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/data/mls 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/data/mls 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -0,0 +1,261 @@
|
@@ -0,0 +1,261 @@
|
||||||
+%!PS-Adobe-3.0
|
+%!PS-Adobe-3.0
|
||||||
+%%BoundingBox: 0 0 612 792
|
+%%BoundingBox: 0 0 612 792
|
||||||
@ -374,8 +381,8 @@ diff -up cups-1.5b1/data/mls.lspp cups-1.5b1/data/mls
|
|||||||
+%
|
+%
|
||||||
+%%EOF
|
+%%EOF
|
||||||
diff -up cups-1.5b1/data/selinux.lspp cups-1.5b1/data/selinux
|
diff -up cups-1.5b1/data/selinux.lspp cups-1.5b1/data/selinux
|
||||||
--- cups-1.5b1/data/selinux.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/data/selinux.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/data/selinux 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/data/selinux 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -0,0 +1,261 @@
|
@@ -0,0 +1,261 @@
|
||||||
+%!PS-Adobe-3.0
|
+%!PS-Adobe-3.0
|
||||||
+%%BoundingBox: 0 0 612 792
|
+%%BoundingBox: 0 0 612 792
|
||||||
@ -639,8 +646,8 @@ diff -up cups-1.5b1/data/selinux.lspp cups-1.5b1/data/selinux
|
|||||||
+%
|
+%
|
||||||
+%%EOF
|
+%%EOF
|
||||||
diff -up cups-1.5b1/data/te.lspp cups-1.5b1/data/te
|
diff -up cups-1.5b1/data/te.lspp cups-1.5b1/data/te
|
||||||
--- cups-1.5b1/data/te.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/data/te.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/data/te 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/data/te 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -0,0 +1,261 @@
|
@@ -0,0 +1,261 @@
|
||||||
+%!PS-Adobe-3.0
|
+%!PS-Adobe-3.0
|
||||||
+%%BoundingBox: 0 0 612 792
|
+%%BoundingBox: 0 0 612 792
|
||||||
@ -905,7 +912,7 @@ diff -up cups-1.5b1/data/te.lspp cups-1.5b1/data/te
|
|||||||
+%%EOF
|
+%%EOF
|
||||||
diff -up cups-1.5b1/filter/common.c.lspp cups-1.5b1/filter/common.c
|
diff -up cups-1.5b1/filter/common.c.lspp cups-1.5b1/filter/common.c
|
||||||
--- cups-1.5b1/filter/common.c.lspp 2011-05-20 05:49:49.000000000 +0200
|
--- cups-1.5b1/filter/common.c.lspp 2011-05-20 05:49:49.000000000 +0200
|
||||||
+++ cups-1.5b1/filter/common.c 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/filter/common.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -30,6 +30,12 @@
|
@@ -30,6 +30,12 @@
|
||||||
* Include necessary headers...
|
* Include necessary headers...
|
||||||
*/
|
*/
|
||||||
@ -1076,7 +1083,7 @@ diff -up cups-1.5b1/filter/common.c.lspp cups-1.5b1/filter/common.c
|
|||||||
/*
|
/*
|
||||||
diff -up cups-1.5b1/filter/pstops.c.lspp cups-1.5b1/filter/pstops.c
|
diff -up cups-1.5b1/filter/pstops.c.lspp cups-1.5b1/filter/pstops.c
|
||||||
--- cups-1.5b1/filter/pstops.c.lspp 2011-05-20 08:52:23.000000000 +0200
|
--- cups-1.5b1/filter/pstops.c.lspp 2011-05-20 08:52:23.000000000 +0200
|
||||||
+++ cups-1.5b1/filter/pstops.c 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/filter/pstops.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -3258,6 +3258,18 @@ write_label_prolog(pstops_doc_t *doc, /*
|
@@ -3258,6 +3258,18 @@ write_label_prolog(pstops_doc_t *doc, /*
|
||||||
{
|
{
|
||||||
const char *classification; /* CLASSIFICATION environment variable */
|
const char *classification; /* CLASSIFICATION environment variable */
|
||||||
@ -1233,8 +1240,8 @@ diff -up cups-1.5b1/filter/pstops.c.lspp cups-1.5b1/filter/pstops.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
diff -up cups-1.5b1/Makedefs.in.lspp cups-1.5b1/Makedefs.in
|
diff -up cups-1.5b1/Makedefs.in.lspp cups-1.5b1/Makedefs.in
|
||||||
--- cups-1.5b1/Makedefs.in.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/Makedefs.in.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/Makedefs.in 2011-05-24 18:24:42.000000000 +0200
|
+++ cups-1.5b1/Makedefs.in 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -157,7 +157,7 @@ LDFLAGS = -L../cgi-bin -L../cups -L../f
|
@@ -157,7 +157,7 @@ LDFLAGS = -L../cgi-bin -L../cups -L../f
|
||||||
LEGACY_BACKENDS = @LEGACY_BACKENDS@
|
LEGACY_BACKENDS = @LEGACY_BACKENDS@
|
||||||
LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(LIBZ)
|
LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(LIBZ)
|
||||||
@ -1245,8 +1252,8 @@ diff -up cups-1.5b1/Makedefs.in.lspp cups-1.5b1/Makedefs.in
|
|||||||
OPTIONS =
|
OPTIONS =
|
||||||
PAMLIBS = @PAMLIBS@
|
PAMLIBS = @PAMLIBS@
|
||||||
diff -up cups-1.5b1/scheduler/client.c.lspp cups-1.5b1/scheduler/client.c
|
diff -up cups-1.5b1/scheduler/client.c.lspp cups-1.5b1/scheduler/client.c
|
||||||
--- cups-1.5b1/scheduler/client.c.lspp 2011-05-20 05:49:49.000000000 +0200
|
--- cups-1.5b1/scheduler/client.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/client.c 2011-05-24 18:28:17.000000000 +0200
|
+++ cups-1.5b1/scheduler/client.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -44,6 +44,7 @@
|
@@ -44,6 +44,7 @@
|
||||||
* valid_host() - Is the Host: field valid?
|
* valid_host() - Is the Host: field valid?
|
||||||
* write_file() - Send a file via HTTP.
|
* write_file() - Send a file via HTTP.
|
||||||
@ -1466,7 +1473,7 @@ diff -up cups-1.5b1/scheduler/client.c.lspp cups-1.5b1/scheduler/client.c
|
|||||||
*/
|
*/
|
||||||
diff -up cups-1.5b1/scheduler/client.h.lspp cups-1.5b1/scheduler/client.h
|
diff -up cups-1.5b1/scheduler/client.h.lspp cups-1.5b1/scheduler/client.h
|
||||||
--- cups-1.5b1/scheduler/client.h.lspp 2011-03-25 22:25:38.000000000 +0100
|
--- cups-1.5b1/scheduler/client.h.lspp 2011-03-25 22:25:38.000000000 +0100
|
||||||
+++ cups-1.5b1/scheduler/client.h 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/scheduler/client.h 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -18,6 +18,13 @@
|
@@ -18,6 +18,13 @@
|
||||||
#endif /* HAVE_AUTHORIZATION_H */
|
#endif /* HAVE_AUTHORIZATION_H */
|
||||||
|
|
||||||
@ -1503,8 +1510,8 @@ diff -up cups-1.5b1/scheduler/client.h.lspp cups-1.5b1/scheduler/client.h
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
diff -up cups-1.5b1/scheduler/conf.c.lspp cups-1.5b1/scheduler/conf.c
|
diff -up cups-1.5b1/scheduler/conf.c.lspp cups-1.5b1/scheduler/conf.c
|
||||||
--- cups-1.5b1/scheduler/conf.c.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/conf.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/conf.c 2011-05-24 18:31:23.000000000 +0200
|
+++ cups-1.5b1/scheduler/conf.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -31,6 +31,7 @@
|
@@ -31,6 +31,7 @@
|
||||||
* read_location() - Read a <Location path> definition.
|
* read_location() - Read a <Location path> definition.
|
||||||
* read_policy() - Read a <Policy name> definition.
|
* read_policy() - Read a <Policy name> definition.
|
||||||
@ -1598,9 +1605,9 @@ diff -up cups-1.5b1/scheduler/conf.c.lspp cups-1.5b1/scheduler/conf.c
|
|||||||
+int is_lspp_config()
|
+int is_lspp_config()
|
||||||
+{
|
+{
|
||||||
+ if (Classification != NULL)
|
+ if (Classification != NULL)
|
||||||
+ return ((strcasecmp(Classification, MLS_CONFIG) == 0)
|
+ return ((_cups_strcasecmp(Classification, MLS_CONFIG) == 0)
|
||||||
+ || (strcasecmp(Classification, TE_CONFIG) == 0)
|
+ || (_cups_strcasecmp(Classification, TE_CONFIG) == 0)
|
||||||
+ || (strcasecmp(Classification, SELINUX_CONFIG) == 0));
|
+ || (_cups_strcasecmp(Classification, SELINUX_CONFIG) == 0));
|
||||||
+ else
|
+ else
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
@ -1610,8 +1617,8 @@ diff -up cups-1.5b1/scheduler/conf.c.lspp cups-1.5b1/scheduler/conf.c
|
|||||||
/*
|
/*
|
||||||
* 'read_policy()' - Read a <Policy name> definition.
|
* 'read_policy()' - Read a <Policy name> definition.
|
||||||
diff -up cups-1.5b1/scheduler/conf.h.lspp cups-1.5b1/scheduler/conf.h
|
diff -up cups-1.5b1/scheduler/conf.h.lspp cups-1.5b1/scheduler/conf.h
|
||||||
--- cups-1.5b1/scheduler/conf.h.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/conf.h.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/conf.h 2011-05-24 18:20:36.000000000 +0200
|
+++ cups-1.5b1/scheduler/conf.h 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -250,6 +250,12 @@ VAR char *ServerKey VALUE(NULL);
|
@@ -250,6 +250,12 @@ VAR char *ServerKey VALUE(NULL);
|
||||||
VAR int SSLOptions VALUE(CUPSD_SSL_NONE);
|
VAR int SSLOptions VALUE(CUPSD_SSL_NONE);
|
||||||
/* SSL/TLS options */
|
/* SSL/TLS options */
|
||||||
@ -1636,8 +1643,8 @@ diff -up cups-1.5b1/scheduler/conf.h.lspp cups-1.5b1/scheduler/conf.h
|
|||||||
/*
|
/*
|
||||||
* Prototypes...
|
* Prototypes...
|
||||||
diff -up cups-1.5b1/scheduler/ipp.c.lspp cups-1.5b1/scheduler/ipp.c
|
diff -up cups-1.5b1/scheduler/ipp.c.lspp cups-1.5b1/scheduler/ipp.c
|
||||||
--- cups-1.5b1/scheduler/ipp.c.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/ipp.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/ipp.c 2011-05-24 18:37:00.000000000 +0200
|
+++ cups-1.5b1/scheduler/ipp.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -41,6 +41,7 @@
|
@@ -41,6 +41,7 @@
|
||||||
* cancel_all_jobs() - Cancel all or selected print jobs.
|
* cancel_all_jobs() - Cancel all or selected print jobs.
|
||||||
* cancel_job() - Cancel a print job.
|
* cancel_job() - Cancel a print job.
|
||||||
@ -2177,9 +2184,9 @@ diff -up cups-1.5b1/scheduler/ipp.c.lspp cups-1.5b1/scheduler/ipp.c
|
|||||||
+ if (job->scon != NULL && strncmp(job->scon, UNKNOWN_SL, strlen(UNKNOWN_SL)) != 0)
|
+ if (job->scon != NULL && strncmp(job->scon, UNKNOWN_SL, strlen(UNKNOWN_SL)) != 0)
|
||||||
+ {
|
+ {
|
||||||
+ jobcon = context_new(job->scon);
|
+ jobcon = context_new(job->scon);
|
||||||
+ if (strcasecmp(name, MLS_CONFIG) == 0)
|
+ if (_cups_strcasecmp(name, MLS_CONFIG) == 0)
|
||||||
+ mls_label = context_range_get(jobcon);
|
+ mls_label = context_range_get(jobcon);
|
||||||
+ else if (strcasecmp(name, TE_CONFIG) == 0)
|
+ else if (_cups_strcasecmp(name, TE_CONFIG) == 0)
|
||||||
+ mls_label = context_type_get(jobcon);
|
+ mls_label = context_type_get(jobcon);
|
||||||
+ else // default to using the whole context string
|
+ else // default to using the whole context string
|
||||||
+ mls_label = context_str(jobcon);
|
+ mls_label = context_str(jobcon);
|
||||||
@ -2240,8 +2247,8 @@ diff -up cups-1.5b1/scheduler/ipp.c.lspp cups-1.5b1/scheduler/ipp.c
|
|||||||
* Check the username against the owner...
|
* Check the username against the owner...
|
||||||
*/
|
*/
|
||||||
diff -up cups-1.5b1/scheduler/job.c.lspp cups-1.5b1/scheduler/job.c
|
diff -up cups-1.5b1/scheduler/job.c.lspp cups-1.5b1/scheduler/job.c
|
||||||
--- cups-1.5b1/scheduler/job.c.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/job.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/job.c 2011-05-24 18:44:14.000000000 +0200
|
+++ cups-1.5b1/scheduler/job.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -64,6 +64,9 @@
|
@@ -64,6 +64,9 @@
|
||||||
* update_job_attrs() - Update the job-printer-* attributes.
|
* update_job_attrs() - Update the job-printer-* attributes.
|
||||||
*/
|
*/
|
||||||
@ -2313,11 +2320,11 @@ diff -up cups-1.5b1/scheduler/job.c.lspp cups-1.5b1/scheduler/job.c
|
|||||||
+ else
|
+ else
|
||||||
+ label_template = strdup(attr->values[0].string.text);
|
+ label_template = strdup(attr->values[0].string.text);
|
||||||
+
|
+
|
||||||
+ if (strcasecmp(label_template, MLS_CONFIG) == 0)
|
+ if (_cups_strcasecmp(label_template, MLS_CONFIG) == 0)
|
||||||
+ mls_label = context_range_get(jobcon);
|
+ mls_label = context_range_get(jobcon);
|
||||||
+ else if (strcasecmp(label_template, TE_CONFIG) == 0)
|
+ else if (_cups_strcasecmp(label_template, TE_CONFIG) == 0)
|
||||||
+ mls_label = context_type_get(jobcon);
|
+ mls_label = context_type_get(jobcon);
|
||||||
+ else if (strcasecmp(label_template, SELINUX_CONFIG) == 0)
|
+ else if (_cups_strcasecmp(label_template, SELINUX_CONFIG) == 0)
|
||||||
+ mls_label = context_str(jobcon);
|
+ mls_label = context_str(jobcon);
|
||||||
+ else
|
+ else
|
||||||
+ mls_label = label_template;
|
+ mls_label = label_template;
|
||||||
@ -2613,7 +2620,7 @@ diff -up cups-1.5b1/scheduler/job.c.lspp cups-1.5b1/scheduler/job.c
|
|||||||
*/
|
*/
|
||||||
diff -up cups-1.5b1/scheduler/job.h.lspp cups-1.5b1/scheduler/job.h
|
diff -up cups-1.5b1/scheduler/job.h.lspp cups-1.5b1/scheduler/job.h
|
||||||
--- cups-1.5b1/scheduler/job.h.lspp 2011-05-18 04:27:11.000000000 +0200
|
--- cups-1.5b1/scheduler/job.h.lspp 2011-05-18 04:27:11.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/job.h 2011-05-24 18:45:43.000000000 +0200
|
+++ cups-1.5b1/scheduler/job.h 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -13,6 +13,13 @@
|
@@ -13,6 +13,13 @@
|
||||||
* file is missing or damaged, see the license at "http://www.cups.org/".
|
* file is missing or damaged, see the license at "http://www.cups.org/".
|
||||||
*/
|
*/
|
||||||
@ -2640,8 +2647,8 @@ diff -up cups-1.5b1/scheduler/job.h.lspp cups-1.5b1/scheduler/job.h
|
|||||||
|
|
||||||
typedef struct cupsd_joblog_s /**** Job log message ****/
|
typedef struct cupsd_joblog_s /**** Job log message ****/
|
||||||
diff -up cups-1.5b1/scheduler/main.c.lspp cups-1.5b1/scheduler/main.c
|
diff -up cups-1.5b1/scheduler/main.c.lspp cups-1.5b1/scheduler/main.c
|
||||||
--- cups-1.5b1/scheduler/main.c.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/main.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/main.c 2011-05-24 18:46:29.000000000 +0200
|
+++ cups-1.5b1/scheduler/main.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -36,6 +36,8 @@
|
@@ -36,6 +36,8 @@
|
||||||
* usage() - Show scheduler usage.
|
* usage() - Show scheduler usage.
|
||||||
*/
|
*/
|
||||||
@ -2710,8 +2717,8 @@ diff -up cups-1.5b1/scheduler/main.c.lspp cups-1.5b1/scheduler/main.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
diff -up cups-1.5b1/scheduler/printers.c.lspp cups-1.5b1/scheduler/printers.c
|
diff -up cups-1.5b1/scheduler/printers.c.lspp cups-1.5b1/scheduler/printers.c
|
||||||
--- cups-1.5b1/scheduler/printers.c.lspp 2011-05-24 18:20:36.000000000 +0200
|
--- cups-1.5b1/scheduler/printers.c.lspp 2011-05-26 14:33:28.000000000 +0200
|
||||||
+++ cups-1.5b1/scheduler/printers.c 2011-05-24 18:47:43.000000000 +0200
|
+++ cups-1.5b1/scheduler/printers.c 2011-05-26 14:33:28.000000000 +0200
|
||||||
@@ -56,6 +56,8 @@
|
@@ -56,6 +56,8 @@
|
||||||
* write_xml_string() - Write a string with XML escaping.
|
* write_xml_string() - Write a string with XML escaping.
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +32,7 @@ diff -up cups-1.5b1/backend/snmp-supplies.c.snmp-quirks cups-1.5b1/backend/snmp-
|
|||||||
static int charset = -1; /* Character set for supply names */
|
static int charset = -1; /* Character set for supply names */
|
||||||
static int num_supplies = 0;
|
static int num_supplies = 0;
|
||||||
/* Number of supplies found */
|
/* Number of supplies found */
|
||||||
++static int quirks = 0; /* Printer quirks */
|
+static int quirks = 0; /* Printer quirks */
|
||||||
static backend_supplies_t supplies[CUPS_MAX_SUPPLIES];
|
static backend_supplies_t supplies[CUPS_MAX_SUPPLIES];
|
||||||
/* Supply information */
|
/* Supply information */
|
||||||
static int supply_state = -1;
|
static int supply_state = -1;
|
||||||
|
47
cups.spec
47
cups.spec
@ -10,12 +10,12 @@
|
|||||||
# but we use lib for compatibility with 3rd party drivers (at upstream request).
|
# but we use lib for compatibility with 3rd party drivers (at upstream request).
|
||||||
%global cups_serverbin %{_exec_prefix}/lib/cups
|
%global cups_serverbin %{_exec_prefix}/lib/cups
|
||||||
|
|
||||||
%global alphatag b1
|
%global alphatag b2
|
||||||
|
|
||||||
Summary: Common Unix Printing System
|
Summary: Common Unix Printing System
|
||||||
Name: cups
|
Name: cups
|
||||||
Version: 1.5
|
Version: 1.5
|
||||||
Release: 0.1.%{alphatag}%{?dist}
|
Release: 0.2.%{alphatag}%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://ftp.easysw.com/pub/cups/%{version}%{alphatag}/cups-%{version}%{alphatag}-source.tar.bz2
|
Source: http://ftp.easysw.com/pub/cups/%{version}%{alphatag}/cups-%{version}%{alphatag}-source.tar.bz2
|
||||||
@ -70,6 +70,7 @@ Patch29: cups-ricoh-deviceid-oid.patch
|
|||||||
Patch30: cups-usb-parallel.patch
|
Patch30: cups-usb-parallel.patch
|
||||||
Patch31: cups-avahi.patch
|
Patch31: cups-avahi.patch
|
||||||
Patch32: cups-icc.patch
|
Patch32: cups-icc.patch
|
||||||
|
Patch33: cups-1.5b-workaround.patch
|
||||||
|
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
|
|
||||||
@ -176,6 +177,10 @@ Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
|||||||
Requires: php(zend-abi) = %{php_zend_api}
|
Requires: php(zend-abi) = %{php_zend_api}
|
||||||
Requires: php(api) = %{php_core_api}
|
Requires: php(api) = %{php_core_api}
|
||||||
|
|
||||||
|
%package ipptool
|
||||||
|
Summary: Common Unix Printing System - tool for performing IPP requests
|
||||||
|
Group: System Environment/Daemons
|
||||||
|
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Common UNIX Printing System provides a portable printing layer for
|
The Common UNIX Printing System provides a portable printing layer for
|
||||||
@ -206,6 +211,9 @@ The Common UNIX Printing System provides a portable printing layer for
|
|||||||
UNIX® operating systems. This is the package that provides a PHP
|
UNIX® operating systems. This is the package that provides a PHP
|
||||||
module.
|
module.
|
||||||
|
|
||||||
|
%description ipptool
|
||||||
|
Sends IPP requests to the specified URI and tests and/or displays the results.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{alphatag}
|
%setup -q -n %{name}-%{version}%{alphatag}
|
||||||
# Don't gzip man pages in the Makefile, let rpmbuild do it.
|
# Don't gzip man pages in the Makefile, let rpmbuild do it.
|
||||||
@ -275,6 +283,8 @@ module.
|
|||||||
# ICC colord support.
|
# ICC colord support.
|
||||||
#%patch32 -p1 -b .icc
|
#%patch32 -p1 -b .icc
|
||||||
|
|
||||||
|
%patch33 -p1 -b .15b-workaround
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
# LSPP support.
|
# LSPP support.
|
||||||
%patch100 -p1 -b .lspp
|
%patch100 -p1 -b .lspp
|
||||||
@ -382,9 +392,6 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/ppd
|
|||||||
|
|
||||||
echo ipp > $RPM_BUILD_ROOT%{_sysconfdir}/portreserve/%{name}
|
echo ipp > $RPM_BUILD_ROOT%{_sysconfdir}/portreserve/%{name}
|
||||||
|
|
||||||
# Handle https:// device URIs (bug #478677, STR #3122).
|
|
||||||
ln -s ipp $RPM_BUILD_ROOT%{cups_serverbin}/backend/https
|
|
||||||
|
|
||||||
# Remove unshipped files.
|
# Remove unshipped files.
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat? $RPM_BUILD_ROOT%{_mandir}/*/cat?
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat? $RPM_BUILD_ROOT%{_mandir}/*/cat?
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/cups.desktop
|
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/cups.desktop
|
||||||
@ -524,6 +531,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{cups_serverbin}/daemon/cups-polld
|
%{cups_serverbin}/daemon/cups-polld
|
||||||
%{cups_serverbin}/daemon/cups-deviced
|
%{cups_serverbin}/daemon/cups-deviced
|
||||||
%{cups_serverbin}/daemon/cups-driverd
|
%{cups_serverbin}/daemon/cups-driverd
|
||||||
|
%{cups_serverbin}/daemon/cups-exec
|
||||||
%{cups_serverbin}/notifier
|
%{cups_serverbin}/notifier
|
||||||
%{cups_serverbin}/filter
|
%{cups_serverbin}/filter
|
||||||
%{cups_serverbin}/monitor
|
%{cups_serverbin}/monitor
|
||||||
@ -538,7 +546,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir %{_datadir}/cups/banners
|
%dir %{_datadir}/cups/banners
|
||||||
%{_datadir}/cups/banners/*
|
%{_datadir}/cups/banners/*
|
||||||
%{_datadir}/cups/charsets
|
%{_datadir}/cups/charsets
|
||||||
%{_datadir}/cups/charmaps
|
|
||||||
%{_datadir}/cups/data
|
%{_datadir}/cups/data
|
||||||
%{_datadir}/cups/fonts
|
%{_datadir}/cups/fonts
|
||||||
%{_datadir}/cups/model
|
%{_datadir}/cups/model
|
||||||
@ -593,16 +600,34 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
||||||
%{php_extdir}/phpcups.so
|
%{php_extdir}/phpcups.so
|
||||||
|
|
||||||
|
%files ipptool
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/ipptool
|
||||||
|
%dir %{_datadir}/cups/ipptool
|
||||||
|
%{_datadir}/cups/ipptool/create-printer-subscription.test
|
||||||
|
%{_datadir}/cups/ipptool/get-completed-jobs.test
|
||||||
|
%{_datadir}/cups/ipptool/get-jobs.test
|
||||||
|
%{_datadir}/cups/ipptool/ipp-1.1.test
|
||||||
|
%{_datadir}/cups/ipptool/ipp-2.0.test
|
||||||
|
%{_datadir}/cups/ipptool/ipp-2.1.test
|
||||||
|
%{_datadir}/cups/ipptool/testfile.jpg
|
||||||
|
%{_datadir}/cups/ipptool/testfile.pdf
|
||||||
|
%{_datadir}/cups/ipptool/testfile.ps
|
||||||
|
%{_datadir}/cups/ipptool/testfile.txt
|
||||||
|
%{_mandir}/man1/ipptool.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 26 2011 Jiri Popelka <jpopelka@redhat.com> 1:1.5-0.2.b2
|
||||||
|
- 1.5b2
|
||||||
|
- TODO:
|
||||||
|
- remove OR port cups-serialize-gnutls.patch ??? (STR#3605)
|
||||||
|
- port avahi.patch
|
||||||
|
- port icc.patch
|
||||||
|
|
||||||
* Tue May 24 2011 Jiri Popelka <jpopelka@redhat.com> 1:1.5-0.1.b1
|
* Tue May 24 2011 Jiri Popelka <jpopelka@redhat.com> 1:1.5-0.1.b1
|
||||||
- 1.5b1
|
- 1.5b1
|
||||||
- removed cups-texttops-rotate-page.patch (#572338 is CANTFIX)
|
- removed cups-texttops-rotate-page.patch (#572338 is CANTFIX)
|
||||||
- removed cups-page-label.patch (#520141 seems to be CANTFIX)
|
- removed cups-page-label.patch (#520141 seems to be CANTFIX)
|
||||||
- TODO:
|
|
||||||
- work-around STR#3846
|
|
||||||
- remove OR port cups-serialize-gnutls.patch ??? (STR#3605)
|
|
||||||
- port avahi.patch
|
|
||||||
- port icc.patch
|
|
||||||
|
|
||||||
* Wed May 18 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.6-17
|
* Wed May 18 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.6-17
|
||||||
- Package parallel port printer device nodes (bug #678804).
|
- Package parallel port printer device nodes (bug #678804).
|
||||||
|
Loading…
Reference in New Issue
Block a user