Skip to content

Commit 962e5dd

Browse files
committed
Prep for 3.0b1:
- Update documentation/copyrights/etc. - Update configure script to set CUPS_DATADIR and CUPS_SERVERROOT, remove all others. - Update ippeveps to use Xpdf pdftops or Apple cgpdftops. - Install ippevepcl/ps to /usr/bin only, no more "ippeveprinter" subdir under serverbin.
1 parent 1428bee commit 962e5dd

21 files changed

Lines changed: 367 additions & 312 deletions

Makedefs.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Common makefile definitions for libcups.
33
#
4-
# Copyright © 2021-2022 by OpenPrinting.
4+
# Copyright © 2021-2023 by OpenPrinting.
55
#
66
# Licensed under Apache License v2.0. See the file "LICENSE" for more
77
# information.
@@ -162,6 +162,9 @@ srcdir = @srcdir@
162162
sysconfdir = @sysconfdir@
163163
top_srcdir = @top_srcdir@
164164

165+
CUPS_DATADIR = @CUPS_DATADIR@
166+
CUPS_SERVERROOT = @CUPS_SERVERROOT@
167+
165168
BUILDROOT = $(DSTROOT)$(DESTDIR)
166169

167170

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ The CUPS Library v3 (libcups)
55
![Apache 2.0](https://img.shields.io/github/license/michaelrsweet/libcups)
66
[![Build and Test](https://github.com/michaelrsweet/libcups/workflows/Build%20and%20Test/badge.svg)](https://github.com/michaelrsweet/libcups/actions/workflows/build.yml)
77
[![Coverity Scan](https://img.shields.io/coverity/scan/24180)](https://scan.coverity.com/projects/michaelrsweet-libcups)
8-
[![LGTM Grade](https://img.shields.io/lgtm/grade/cpp/github/michaelrsweet/libcups)](https://lgtm.com/projects/g/michaelrsweet/libcups/?mode=list)
98

109
> *Note:* This is a major release update of the CUPS library that breaks both
1110
> binary and source compatibility with prior releases of CUPS.

config.h.in

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Configuration file for libcups.
33
*
4-
* Copyright © 2020-2022 by OpenPrinting
4+
* Copyright © 2020-2023 by OpenPrinting
55
* Copyright © 2007-2019 by Apple Inc.
66
* Copyright © 1997-2007 by Easy Software Products.
77
*
@@ -35,18 +35,8 @@
3535
* variables at run-time...
3636
*/
3737

38-
// TODO: Cleanup directories
39-
#define CUPS_BINDIR "/usr/bin"
40-
#define CUPS_CACHEDIR "/var/cache/cups"
4138
#define CUPS_DATADIR "/usr/share/cups"
42-
#define CUPS_DOCROOT "/usr/share/doc/cups"
43-
#define CUPS_LOCALEDIR "/usr/share/locale"
44-
#define CUPS_LOGDIR "/var/logs/cups"
45-
#define CUPS_REQUESTS "/var/spool/cups"
46-
#define CUPS_SBINDIR "/usr/sbin"
47-
#define CUPS_SERVERBIN "/usr/lib/cups"
4839
#define CUPS_SERVERROOT "/etc/cups"
49-
#define CUPS_STATEDIR "/var/run/cups"
5040

5141

5242
/*

configure

Lines changed: 82 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Guess values for system-dependent variables and create Makefiles.
33
# Generated by GNU Autoconf 2.71 for libcups 3.0b1.
44
#
5-
# Report bugs to <https://github.com/michaelrsweet/libcups/issues>.
5+
# Report bugs to <https://github.com/OpenPrinting/libcups/issues>.
66
#
77
#
88
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -267,7 +267,7 @@ then :
267267
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268268
else
269269
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270-
$0: https://github.com/michaelrsweet/libcups/issues about
270+
$0: https://github.com/OpenPrinting/libcups/issues about
271271
$0: your system, including any error possibly output before
272272
$0: this message. Then install a modern shell, or manually
273273
$0: run the script under such a shell if you do have one."
@@ -612,7 +612,7 @@ PACKAGE_NAME='libcups'
612612
PACKAGE_TARNAME='cups'
613613
PACKAGE_VERSION='3.0b1'
614614
PACKAGE_STRING='libcups 3.0b1'
615-
PACKAGE_BUGREPORT='https://github.com/michaelrsweet/libcups/issues'
615+
PACKAGE_BUGREPORT='https://github.com/OpenPrinting/libcups/issues'
616616
PACKAGE_URL='https://openprinting.github.io/cups'
617617

618618
# Factoring default headers for most tests.
@@ -649,6 +649,8 @@ ac_includes_default="\
649649
ac_header_c_list=
650650
ac_subst_vars='LTLIBOBJS
651651
LIBOBJS
652+
CUPS_SERVERROOT
653+
CUPS_DATADIR
652654
WARNINGS
653655
OPTIONS
654656
CSFLAGS
@@ -1407,7 +1409,7 @@ Some influential environment variables:
14071409
Use these variables to override the choices made by `configure' or to help
14081410
it to find libraries and programs with nonstandard names/locations.
14091411
1410-
Report bugs to <https://github.com/michaelrsweet/libcups/issues>.
1412+
Report bugs to <https://github.com/OpenPrinting/libcups/issues>.
14111413
libcups home page: <https://openprinting.github.io/cups>.
14121414
_ACEOF
14131415
ac_status=$?
@@ -5492,6 +5494,43 @@ else $as_nop
54925494

54935495
fi
54945496

5497+
if test "$datarootdir" = "\${prefix}/share"
5498+
then :
5499+
5500+
if test "$prefix" = "/"
5501+
then :
5502+
5503+
datarootdir="/usr/share"
5504+
5505+
else $as_nop
5506+
5507+
datarootdir="$prefix/share"
5508+
5509+
fi
5510+
5511+
fi
5512+
5513+
if test "$datadir" = "\${prefix}/share"
5514+
then :
5515+
5516+
if test "$prefix" = "/"
5517+
then :
5518+
5519+
datadir="/usr/share"
5520+
5521+
else $as_nop
5522+
5523+
datadir="$prefix/share"
5524+
5525+
fi
5526+
5527+
elif test "$datadir" = "\${datarootdir}"
5528+
then :
5529+
5530+
datadir="$datarootdir"
5531+
5532+
fi
5533+
54955534
if test "$includedir" = NONE -o "$includedir" = "\${prefix}/include"
54965535
then :
54975536

@@ -5505,6 +5544,44 @@ then :
55055544

55065545
fi
55075546

5547+
if test "$sysconfdir" = "\${prefix}/etc"
5548+
then :
5549+
5550+
if test "$prefix" = "/"
5551+
then :
5552+
5553+
if test "$host_os_name" = darwin
5554+
then :
5555+
5556+
sysconfdir="/private/etc"
5557+
5558+
else $as_nop
5559+
5560+
sysconfdir="/etc"
5561+
5562+
fi
5563+
5564+
else $as_nop
5565+
5566+
sysconfdir="$prefix/etc"
5567+
5568+
fi
5569+
5570+
fi
5571+
5572+
5573+
CUPS_DATADIR="$datadir/cups"
5574+
5575+
printf "%s\n" "#define CUPS_DATADIR \"$datadir/cups\"" >>confdefs.h
5576+
5577+
5578+
5579+
CUPS_SERVERROOT="$sysconfdir/cups"
5580+
5581+
printf "%s\n" "#define CUPS_SERVERROOT \"$sysconfdir/cups\"" >>confdefs.h
5582+
5583+
5584+
55085585

55095586
CUPS_DEFAULT_DOMAINSOCKET=""
55105587

@@ -6117,7 +6194,7 @@ $config_files
61176194
Configuration headers:
61186195
$config_headers
61196196
6120-
Report bugs to <https://github.com/michaelrsweet/libcups/issues>.
6197+
Report bugs to <https://github.com/OpenPrinting/libcups/issues>.
61216198
libcups home page: <https://openprinting.github.io/cups>."
61226199
61236200
_ACEOF

configure.ac

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dnl
22
dnl Configuration script for libcups.
33
dnl
4-
dnl Copyright © 2020-2022 by OpenPrinting
4+
dnl Copyright © 2020-2023 by OpenPrinting
55
dnl Copyright © 2007-2020 by Apple Inc.
66
dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved.
77
dnl
@@ -13,7 +13,7 @@ dnl We need at least autoconf 2.71...
1313
AC_PREREQ([2.71])
1414

1515
dnl Package name and version...
16-
AC_INIT([libcups],[3.0b1],[https://github.com/michaelrsweet/libcups/issues],[cups],[https://openprinting.github.io/cups])
16+
AC_INIT([libcups],[3.0b1],[https://github.com/OpenPrinting/libcups/issues],[cups],[https://openprinting.github.io/cups])
1717
AC_CONFIG_HEADERS([config.h])
1818

1919
LIBCUPS_VERSION="AC_PACKAGE_VERSION"
@@ -566,21 +566,61 @@ AC_ARG_WITH([ldflags], AS_HELP_STRING([--with-ldflags=...], [Specify additional
566566
])
567567

568568

569-
dnl Fix prefix and includedir...
569+
dnl Fix prefix, datadir, datarootdir, includedir, and sysconfdir...
570570
AS_IF([test "$prefix" = NONE], [
571571
# Default prefix isn't bound until AC_OUTPUT...
572572
realprefix="/usr/local"
573573
], [
574574
realprefix="$prefix"
575575
])
576576

577+
AS_IF([test "$datarootdir" = "\${prefix}/share"], [
578+
AS_IF([test "$prefix" = "/"], [
579+
datarootdir="/usr/share"
580+
], [
581+
datarootdir="$prefix/share"
582+
])
583+
])
584+
585+
AS_IF([test "$datadir" = "\${prefix}/share"], [
586+
AS_IF([test "$prefix" = "/"], [
587+
datadir="/usr/share"
588+
], [
589+
datadir="$prefix/share"
590+
])
591+
], [test "$datadir" = "\${datarootdir}"], [
592+
datadir="$datarootdir"
593+
])
594+
577595
AS_IF([test "$includedir" = NONE -o "$includedir" = "\${prefix}/include"], [
578596
includedir="$realprefix/include$INCLUDE_PREFIX"
579597
])
580598
AS_IF([test "$includedir" != "/usr/include" -a "$includedir" != "/usr/local/include"], [
581599
PKGCONFIG_CFLAGS="-I\${includedir} $PKGCONFIG_CFLAGS"
582600
])
583601

602+
AS_IF([test "$sysconfdir" = "\${prefix}/etc"], [
603+
AS_IF([test "$prefix" = "/"], [
604+
AS_IF([test "$host_os_name" = darwin], [
605+
sysconfdir="/private/etc"
606+
], [
607+
sysconfdir="/etc"
608+
])
609+
], [
610+
sysconfdir="$prefix/etc"
611+
])
612+
])
613+
614+
615+
dnl CUPS_DATADIR and CUPS_SERVERROOT
616+
CUPS_DATADIR="$datadir/cups"
617+
AC_DEFINE_UNQUOTED([CUPS_DATADIR], ["$datadir/cups"], [Location of data files.])
618+
AC_SUBST([CUPS_DATADIR])
619+
620+
CUPS_SERVERROOT="$sysconfdir/cups"
621+
AC_DEFINE_UNQUOTED([CUPS_SERVERROOT], ["$sysconfdir/cups"], [Location of server configuration files.])
622+
AC_SUBST([CUPS_SERVERROOT])
623+
584624

585625
dnl Domain socket support...
586626
CUPS_DEFAULT_DOMAINSOCKET=""

cups/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Library Makefile for libcups.
33
#
4-
# Copyright © 2021-2022 by OpenPrinting.
4+
# Copyright © 2021-2023 by OpenPrinting.
55
#
66
# Licensed under Apache License v2.0. See the file "LICENSE" for more
77
# information.

doc/cupspm.epub

1 Byte
Binary file not shown.

doc/ippevepcl.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
text-align: justify;
1717
}
1818
--></style>
19-
<meta name="creator" content="mantohtml v2022.1005">
19+
<meta name="creator" content="mantohtml v2.0.1">
2020
<title>Documentation</title>
2121
</head>
2222
<body>
23-
<h1 id="ippevepclps-7">ippevepcl/ps(7)</h1>
24-
<h2 id="ippevepclps-7.name">Name</h2>
23+
<h1 id="ippevepclps-1">ippevepcl/ps(1)</h1>
24+
<h2 id="ippevepclps-1.name">Name</h2>
2525
<p>ippevepcl/ps - pcl and postscript print commands for ippeveprinter
2626
</p>
27-
<h2 id="ippevepclps-7.synopsis">Synopsis</h2>
27+
<h2 id="ippevepclps-1.synopsis">Synopsis</h2>
2828
<p><strong>ippevepcl</strong>
2929
[
3030
<em>filename</em>
@@ -35,7 +35,7 @@ <h2 id="ippevepclps-7.synopsis">Synopsis</h2>
3535
<em>filename</em>
3636
]
3737
</p>
38-
<h2 id="ippevepclps-7.description">Description</h2>
38+
<h2 id="ippevepclps-1.description">Description</h2>
3939
<p><strong>ippevepcl</strong>
4040
and
4141
<strong>ippeveps</strong>
@@ -47,26 +47,26 @@ <h2 id="ippevepclps-7.description">Description</h2>
4747
Status and progress messages are sent to the standard error.
4848
</p>
4949
<p><strong>ippevepcl</strong>
50-
prints to B&W HP PCL laser printers and supports printing of HP PCL (application/vnd.hp-pcl), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files.
50+
prints to B&amp;W HP PCL laser printers and supports printing of HP PCL (application/vnd.hp-pcl), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files.
5151
</p>
5252
<p><strong>ippeveps</strong>
5353
print to Adobe PostScript printers and supports printing of PDF (application/pdf), PostScript (application/postscript), JPEG (image/jpeg), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files.
5454
Printer-specific commands are read from a supplied PPD file.
5555
If no PPD file is specified, generic commands suitable for any Level 2 or Level 3 PostScript printer are used instead to specify duplex printing and media size.
5656
</p>
57-
<h2 id="ippevepclps-7.exit-status">Exit Status</h2>
57+
<h2 id="ippevepclps-1.exit-status">Exit Status</h2>
5858
<p>These programs return 1 on error and 0 on success.
5959
</p>
60-
<h2 id="ippevepclps-7.environment">Environment</h2>
60+
<h2 id="ippevepclps-1.environment">Environment</h2>
6161
<p>These program inherit the environment provided by the
6262
<strong>ippeveprinter</strong>
6363
program.
6464
</p>
65-
<h2 id="ippevepclps-7.see-also">See Also</h2>
65+
<h2 id="ippevepclps-1.see-also">See Also</h2>
6666
<p><strong>ippeveprinter</strong>(8)
6767

6868
</p>
69-
<h2 id="ippevepclps-7.copyright">Copyright</h2>
70-
<p>Copyright &copy; 2021 by OpenPrinting.
69+
<h2 id="ippevepclps-1.copyright">Copyright</h2>
70+
<p>Copyright &copy; 2021-2023 by OpenPrinting.
7171
</body>
7272
</html>

0 commit comments

Comments
 (0)