Skip to content

Commit

Permalink
Load cups into easysw/current.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@211 a1ca3aef-8c08-0410-bb20-df032aa958be
  • Loading branch information
jlovell committed Aug 30, 2006
1 parent 8ca02f3 commit d09495f
Show file tree
Hide file tree
Showing 95 changed files with 2,306 additions and 642 deletions.
76 changes: 75 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,80 @@
CHANGES.txt - 2006-07-18
CHANGES.txt - 2006-08-29
------------------------

CHANGES IN CUPS V1.2.3

- The scheduler did not send job-state or
job-config-changed events when a job was held,
released, or changed (STR #1947)
- The scheduler now aborts if the configuration file and
directory checks fail (STR #1941)
- Fixed a problem with ippPort() not using the port
number that was set via the client.conf file or
CUPS_SERVER environment variable (STR #1945)
- HTTP headers were not buffered (STR #1899)
- Some IPP printers (HP) did not like UTF-8 job names
(STR #1837)
- The CUPS desktop icon is now localized for Polish (STR
#1920)
- Printer options were not always honored when printing
from Windows clients (STR #1839)
- The openssl command would lock up the scheduler when
generating an encryption certificate on some platforms
due to a lack of entropy for the random number
generator (STR #1876)
- The web admin page did not recognize that "Listen 631"
enabled remote access (STR #1908)
- The web admin page did not check whether changes were
made to the Basic Server Settings check boxes (STR
#1908)
- The IPP backend could generate N*N copies in certain
edge cases.
- The scheduler did not restore remote printers properly
when BrowseShortNames was enabled (STR #1893)
- Polling did not handle changes to the network
environment on Mac OS X (STR #1896)
- The "make test" subscription tests used invalid
notify-recipient-uri values (STR #1910)
- Printers could be left in an undefined state on system
sleep (STR #1905)
- The Berkeley and System V commands did not always use
the expected character set (STR #1915)
- Remote printing fixes (STR #1881)
- The cupstestppd utility did not validate translation
strings for custom options properly.
- Multi-language PPD files were not properly localized in
the web interface (STR #1913)
- The admin page's simple settings options did not check
for local domain socket or IPv6 addresses and did not
use "localhost" as the listen address.
- An empty BrowseProtocols, BrowseLocalProtocols, or
BrowseRemoteProtocols line would crash the scheduler
instead of disabling the corresponding browsing options.
- The scheduler now logs IPP operation status as debug
messages instead of info or error.
- cupsFileRewind() didn't clear the end-of-file state.
- cupstestppd didn't report the actual misspelling of the
1284DeviceID attribute (STR #1849)
- BrowseRelay didn't work on Debian (STR #1887)
- configure --without-languages didn't work (STR #1879)
- Manually added remote printers did not work (STR #1881)
- The <cups/backend.h> header was not installed.
- Updated the build files for Autoconf 2.60 (STR #1853)
- The scheduler incorrectly terminated the polling
processes after receiving a partial log line.
- The cups-lpd mini-daemon reported "No printer-state
attribute found" errors when reporting the queue status
(PR #6250, STR #1821)
- SNMP backend improvements (STR #1737, STR #1742, STR
#1790, STR #1835, STR #1880)
- The scheduler erroneously reported an error with the
CGI pipe (STR #1860)
- Fixed HP-UX compile problems (STR #1858, STR #1859)
- cupstestppd crashed with some PPD files (STR #1864)
- The <cups/dir.h> and <cups/file.h> header files did not
work with C++.


CHANGES IN CUPS V1.2.2

- Documentation updates (STR #1765, STR #1780)
Expand Down
8 changes: 6 additions & 2 deletions Makedefs.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# "$Id: Makedefs.in 5609 2006-05-30 20:31:10Z mike $"
# "$Id: Makedefs.in 5799 2006-08-03 00:54:38Z mike $"
#
# Common makefile definitions for the Common UNIX Printing System (CUPS).
#
Expand Down Expand Up @@ -174,12 +174,16 @@ UNINSTALL64 = @UNINSTALL64@
# We have to define these first because autoconf uses ${prefix}
# and ${exec_prefix} for most of the other directories...
#
# The "datarootdir" variable may not get defined if you are using
# a version of autoconf prior to 2.60.
#
# This is immediately followed by definition in ALL CAPS for the
# needed directories...
#

bindir = @bindir@
datadir = @datadir@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
includedir = @includedir@
infodir = @infodir@
Expand Down Expand Up @@ -265,5 +269,5 @@ DBUSDIR = @DBUSDIR@


#
# End of "$Id: Makedefs.in 5609 2006-05-30 20:31:10Z mike $"
# End of "$Id: Makedefs.in 5799 2006-08-03 00:54:38Z mike $"
#
35 changes: 28 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# "$Id: Makefile 5547 2006-05-19 12:44:29Z mike $"
# "$Id: Makefile 5902 2006-08-29 15:51:19Z mike $"
#
# Top-level Makefile for the Common UNIX Printing System (CUPS).
#
Expand Down Expand Up @@ -121,8 +121,9 @@ install: installhdrs
$(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
$(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
echo Installing LaunchDaemons configuration file...; \
echo Installing LaunchDaemons configuration files...; \
$(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \
$(INSTALL_DATA) init/org.cups.cups-lpd.plist $(BUILDROOT)/System/Library/LaunchDaemons; \
else \
echo Installing RC script...; \
$(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
Expand Down Expand Up @@ -220,24 +221,44 @@ uninstall:
# Run the test suite...
#

check test: all
test: all
echo Running CUPS test suite...
cd test; ./run-stp-tests.sh


check: all
echo Running CUPS test suite with defaults...
cd test; ./run-stp-tests.sh 1 0 n


#
# Make software distributions using EPM (http://www.easysw.com/epm/)...
#

EPMFLAGS = -v
EPMFLAGS = -v --output-dir dist $(EPMARCH)

aix bsd deb depot inst osx pkg rpm setld slackware swinstall tardist:
aix bsd deb depot inst pkg rpm setld slackware swinstall tardist:
epm $(EPMFLAGS) -f $@ cups packaging/cups.list

epm:
epm $(EPMFLAGS) cups packaging/cups.list
epm $(EPMFLAGS) -s packaging/installer.gif cups packaging/cups.list

osx:
epm $(EPMFLAGS) -f osx -s packaging/installer.tif cups packaging/cups.list

.PHONEY: dist
dist: all
$(RM) -r dist
$(MAKE) $(MFLAGS) epm
case `uname` in \
*BSD*) $(MAKE) $(MFLAGS) bsd;; \
Darwin*) $(MAKE) $(MFLAGS) osx;; \
IRIX*) $(MAKE) $(MFLAGS) tardist;; \
Linux*) $(MAKE) $(MFLAGS) rpm;; \
SunOS*) $(MAKE) $(MFLAGS) pkg;; \
esac


#
# End of "$Id: Makefile 5547 2006-05-19 12:44:29Z mike $".
# End of "$Id: Makefile 5902 2006-08-29 15:51:19Z mike $".
#
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
README - CUPS v1.2.0 - 2006-05-08
README - CUPS v1.2.3 - 2006-08-28
---------------------------------

Looking for compile instructions? Read the file "INSTALL.txt"
Expand Down
12 changes: 6 additions & 6 deletions backend/backend-private.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* "$Id: backend-private.h 5592 2006-05-27 03:11:52Z mike $"
* "$Id: backend-private.h 5771 2006-07-20 18:06:20Z mike $"
*
* Backend support definitions for the Common UNIX Printing System (CUPS).
*
Expand Down Expand Up @@ -45,9 +45,9 @@
* C++ magic...
*/

# ifdef _cplusplus
# ifdef __cplusplus
extern "C" {
# endif /* _cplusplus */
# endif /* __cplusplus */


/*
Expand All @@ -62,12 +62,12 @@ extern int backendGetMakeModel(const char *device_id, char *make_model,
extern ssize_t backendRunLoop(int print_fd, int device_fd, int use_bc);


# ifdef _cplusplus
# ifdef __cplusplus
}
# endif /* _cplusplus */
# endif /* __cplusplus */
#endif /* !_CUPS_BACKEND_PRIVATE_H_ */


/*
* End of "$Id: backend-private.h 5592 2006-05-27 03:11:52Z mike $".
* End of "$Id: backend-private.h 5771 2006-07-20 18:06:20Z mike $".
*/
8 changes: 6 additions & 2 deletions backend/ieee1284.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* "$Id: ieee1284.c 5591 2006-05-26 19:51:59Z mike $"
* "$Id: ieee1284.c 5866 2006-08-23 03:03:49Z mike $"
*
* IEEE-1284 support functions for the Common UNIX Printing System (CUPS).
*
Expand Down Expand Up @@ -233,6 +233,8 @@ backendGetDeviceID(

if (!strcasecmp(manufacturer, "Hewlett-Packard"))
strcpy(manufacturer, "HP");
else if (!strcasecmp(manufacturer, "Lexmark International"))
strcpy(manufacturer, "Lexmark");
}
else
{
Expand Down Expand Up @@ -399,6 +401,8 @@ backendGetMakeModel(
{
if (!strncasecmp(mfg, "Hewlett-Packard", 15))
strlcpy(make_model, "HP", make_model_size);
else if (!strncasecmp(mfg, "Lexmark International", 21))
strlcpy(make_model, "Lexmark", make_model_size);
else
strlcpy(make_model, mfg, make_model_size);

Expand Down Expand Up @@ -495,5 +499,5 @@ backendGetMakeModel(


/*
* End of "$Id: ieee1284.c 5591 2006-05-26 19:51:59Z mike $".
* End of "$Id: ieee1284.c 5866 2006-08-23 03:03:49Z mike $".
*/
47 changes: 33 additions & 14 deletions backend/ipp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* "$Id: ipp.c 5724 2006-07-12 19:42:35Z mike $"
* "$Id: ipp.c 5889 2006-08-24 21:44:35Z mike $"
*
* IPP backend for the Common UNIX Printing System (CUPS).
*
Expand Down Expand Up @@ -132,13 +132,13 @@ main(int argc, /* I - Number of command-line args */
ipp_attribute_t *format_sup; /* document-format-supported */
ipp_attribute_t *printer_state; /* printer-state attribute */
ipp_attribute_t *printer_accepting; /* printer-is-accepting-jobs */
int copies; /* Number of copies remaining */
int copies, /* Number of copies for job */
copies_remaining; /* Number of copies remaining */
const char *content_type; /* CONTENT_TYPE environment variable */
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
struct sigaction action; /* Actions for POSIX signals */
#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
int version; /* IPP version */
int reasons; /* Number of printer-state-reasons */
static const char * const pattrs[] =
{ /* Printer attributes we want */
"copies-supported",
Expand Down Expand Up @@ -214,6 +214,9 @@ main(int argc, /* I - Number of command-line args */
if ((content_type = getenv("CONTENT_TYPE")) == NULL)
content_type = "application/octet-stream";

if (!strncmp(content_type, "printer/", 8))
content_type = "application/vnd.cups-raw";

/*
* Extract the hostname and printer name from the URI...
*/
Expand Down Expand Up @@ -736,19 +739,25 @@ main(int argc, /* I - Number of command-line args */
* See if the printer supports multiple copies...
*/

copies = atoi(argv[4]);

if (copies_sup || argc < 7)
copies = 1;
{
copies_remaining = 1;

if (argc < 7)
copies = 1;
}
else
copies = atoi(argv[4]);
copies_remaining = copies;

/*
* Then issue the print-job request...
*/

reasons = 0;
job_id = 0;

while (copies > 0)
while (copies_remaining > 0)
{
/*
* Build the IPP request...
Expand All @@ -775,7 +784,13 @@ main(int argc, /* I - Number of command-line args */

fprintf(stderr, "DEBUG: requesting-user-name = \"%s\"\n", argv[2]);

if (argv[3][0])
/*
* Only add a "job-name" attribute if the remote server supports
* copy generation - some IPP implementations like HP's don't seem
* to like UTF-8 job names (STR #1837)...
*/

if (argv[3][0] && copies_sup)
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
argv[3]);

Expand Down Expand Up @@ -822,8 +837,9 @@ main(int argc, /* I - Number of command-line args */
* number of copies to 1...
*/

content_type = "application/postscript";
copies = 1;
content_type = "application/postscript";
copies = 1;
copies_remaining = 1;
}
}
#endif /* __APPLE__ */
Expand Down Expand Up @@ -851,8 +867,9 @@ main(int argc, /* I - Number of command-line args */
*/

cupsEncodeOptions(request, num_options, options);

ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies",
atoi(argv[4]));
copies);
}

cupsFreeOptions(num_options, options);
Expand Down Expand Up @@ -952,13 +969,13 @@ main(int argc, /* I - Number of command-line args */
if (ipp_status <= IPP_OK_CONFLICT && argc > 6)
{
fprintf(stderr, "PAGE: 1 %d\n", copies_sup ? atoi(argv[4]) : 1);
copies --;
copies_remaining --;
}
else if (ipp_status == IPP_SERVICE_UNAVAILABLE ||
ipp_status == IPP_PRINTER_BUSY)
break;
else
copies --;
copies_remaining --;

/*
* Wait for the job to complete...
Expand Down Expand Up @@ -1300,6 +1317,8 @@ password_cb(const char *prompt) /* I - Prompt (not used) */
#endif /* __APPLE__ */

exit(CUPS_BACKEND_AUTH_REQUIRED);

return (NULL); /* Eliminate compiler warning */
}
}

Expand Down Expand Up @@ -1622,5 +1641,5 @@ sigterm_handler(int sig) /* I - Signal */


/*
* End of "$Id: ipp.c 5724 2006-07-12 19:42:35Z mike $".
* End of "$Id: ipp.c 5889 2006-08-24 21:44:35Z mike $".
*/
Loading

0 comments on commit d09495f

Please sign in to comment.