Commit graph

231 commits

Author SHA1 Message Date
jlam
7db11b582a Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly
by moving the inclusion of buildlink3.mk files outside of the protected
region.  This bug would be seen by users that have set PREFER_PKGSRC
or PREFER_NATIVE to non-default values.

BUILDLINK_PACKAGES should be ordered so that for any package in the
list, that package doesn't depend on any packages to the left of it
in the list.  This ordering property is used to check for builtin
packages in the correct order.  The problem was that including a
buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed
from BUILDLINK_PACKAGES and appended to the end.  However, since the
inclusion of any other buildlink3.mk files within that buildlink3.mk
was in a region that was protected against multiple inclusion, those
dependencies weren't also moved to the end of BUILDLINK_PACKAGES.
2004-03-18 09:12:08 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
jlam
5cfb4ecaab pdftops is a C++ application. 2004-02-13 15:42:04 +00:00
jlam
1b2674fcd7 The BUILDLINK_DEPENDS.<pkg> lines should match between the buildlink3.mk
and any pre-existing buildlink2.mk files.
2004-02-10 20:45:01 +00:00
jlam
75f431d969 PKGLIBTOOL and PKGSHLIBTOOL are no more. 2004-02-08 03:00:29 +00:00
grant
6eab5759a3 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 14:50:05 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
agc
3ad1bdbf06 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:18:15 +00:00
jlam
4341c29296 Update print/cups to 1.1.20. Changes from version 1.1.19nb3 include:
Bug fixes:
	- The HTTP code did not use a case-insensitive
	  comparison when checking for the Basic authentication
	  method (STR #407)
	- The cupsaddsmb program didn't export the new CUPS
	  driver for Windows properly (STR #390)
	- The default landscape orientation was not the same as
	  that defined in the PPD file (STR #397)
	- The pdftops filter incorrectly auto-rotated pages when
	  the user already had specified the proper orientation
	  (STR #207)
	- The scheduler did not reset the group list when
	  running CGI and filter processes (STR #185)

Enhancements:
	- Updated the pdftops filter to use the annotation flags
	  instead of the subtype to determine whether to print
	  an annotation (STR #425)
	- The pdftops filter no longer needs to create temporary
	  files with tmpnam (STR #406)
	- The scheduler now waits up to 60 seconds before
	  restarting to allow active jobs to complete printing
	  and pending requests to be processed (STR #226)
	- Added new cupsDoAuthentication(), cupsGetFd(),
	  cupsGetFile(), cupsPutFd(), and cupsPutFile() functions
	  to the CUPS API (STR #112)
	- The PDF filter always scaled and offset pages; this
	  caused problems under MacOS X, so now the "fitplot"
	  option controls whether PDF files are scaled to fit
	  within the printable area of the page (STR #250)
	- Updated the pdftops filter to be based upon Xpdf
	  2.02pl1 (STR #191)
2004-01-10 03:32:09 +00:00
jlam
806d188a8f From the log for rev. 1.1260 of bsd.pkg.mk:
"Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
 PKG_SYSCONFBASE when they want PKG_SYSCONFDIR stripped of
 PKG_SYSCONFSUBDIR.  This makes PKG_SYSCONFBASE=/etc work with pkgviews by
 installing all config files into /etc/packages/<pkg> instead of
 occasionally putting some directly into /etc."
2004-01-10 02:57:35 +00:00
jlam
457d023fac bl3ify 2004-01-06 07:05:24 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
reed
6d9af8d68d Bump package revisions for tiff update.
Tiff is backward compatible, but was broken on amd64 platform
so this makes sure new tiff is used.
2004-01-03 18:49:33 +00:00
jschauma
fe19bb05b5 PKGREVISION++ after openssl update. 2003-11-12 03:39:39 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
reinoud
7927cb0ea2 Rollback :( 2003-06-25 11:47:40 +00:00
reinoud
59caac89d4 Update message to explicitly notify the user about the fact that
the installed files are not automatically included in the right place in
the system path and need to be either copied in /usr/bin or dealt with in
another way.

The saves a lot of frustration and puzzling esp. for the beginning user.
2003-06-24 16:46:19 +00:00
jlam
91bb23d5ad Bump the PKGREVISION for print/cups to 1:
Change the cupsd rc.d script to REQUIRE slpd.  This is needed for the
case where cupsd actually uses SLP to register services (by setting
BrowseProtocols to include "slp") and does nothing otherwise.
2003-06-04 06:15:37 +00:00
jlam
75a6360ed6 The following changes only affect the build of CUPS, and the entirety
of the diffs between vanilla CUPS and pkgsrc CUPS will be sent back to
the author.

* Allow overriding the default paths for "CUPS_SERVERBIN" and
  "CUPS_LOCALEDIR" by passing values through the configure script.
  This facilitates using custom directory hierarchies as is common in
  various packaging systems.

* Allow choosing the man page extension style by passing values
  directly through the configure script.  This allows overriding the
  defaults for an operating system, which can happen in some packaging
  systems.  Leave the default behaviour unchanged if not specified.
2003-06-04 06:08:43 +00:00
jlam
6da594bc99 Check and set the default settings in the right place (after /etc/rc.conf
is loaded), and use "run_rc_command" instead of directly invoking $0 as
the latter doesn't work at system startup.
2003-05-28 09:01:02 +00:00
jlam
0795d91a80 Use the new "installcups" target so we avoid installing in the conf
directory and avoid installing the distributed cups rc.d script.
2003-05-28 08:58:48 +00:00
jlam
50d677b8f0 Update print/cups to 1.1.19. Major changes from version 1.1.18nb2 include:
- security fix to scheduler to address a DoS attack
- improve conformance to IPP specification
- miscellaneous bug fixes to server and userland utilities
- plug memory leaks
- bug fixes to SSL code
- the mime.convs file was missing the filter definition for Windows BMP
  (image/x-bitmap) files
- improved test suite
- added CUPS support files for Java, Perl, and PHP
- The cups-lpd mini-daemon now sends jobs to the default queue when an
  empty queue name (or "lp" and there is no "lp" queue) is sent.
- The scheduler now supports fax queues identified by a "*cupsFax: True"
  attribute in the PPD file.
- The scheduler now supports print files that have been compressed using
  gzip.
- Added a robots.txt file to the standard install to prevent search
  engines from indexing the CUPS server.
- When writing BSD printcap files, the scheduler now includes the rm and
  rp attributes, allowing the file to be exported to LPD clients.
- The pdftops filter now scales PDF pages within the printable area of the
  page.
- The PostScript filter now supports binary PostScript files and files
  beginning with the PJL language escape sequence.
- Fixed the CIE colorspace support code in the image and PS RIPs.
2003-05-28 02:33:59 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jmmv
bcabbecd43 fredb has fixed cups so it works now with blowfish cipher in the passwd file.
Remove the note in the MESSAGE and bump PKGREVISION to 2.
2003-03-20 18:49:33 +00:00
fredb
58d3160965 Give authentication with blowfish hashes a fighting chance to work on
NetBSD, by linking in -lcrypt before -lcrypto in the shared library and
scheduler. (cups_crypto() looks to fall-back to crypt(). Both of the
shared libraries in question have crypt(), but only the one in -lcrypt
supports blowfish hashes.) Not tested.
2003-03-20 17:30:17 +00:00
jmmv
4fe9760fec Note that if using blowfish in /etc/passwd.conf, cups authentication won't
work.  Reformat a paragraph so this looks better.
2003-03-20 12:31:40 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
jlam
a56ea4178f Create a new cupsd command "wait" that waits for cupsd to start responding
to IPP requests.  It's controlled by two new variables that may be set in
/etc/rc.conf:

cupsd_wait=YES        # set to "YES" to wait for cupsd to detect printers;
                      #   this variable is optional and defaults to "NO".
cupsd_timeout=60      # set to the number of seconds we wait for cupsd
                      #   to respond before we declare it not responding;
                      #   this variable is optional and defaults to "60".

The wait command may also be directly invoked as "/etc/rc.d/cupsd wait".
Bump PKGREVISION of print/cups to 1.
2003-01-23 23:05:10 +00:00
cjep
5b8c845234 USE_PKGLOCALEDIR=yes 2003-01-10 07:39:46 +00:00
reinoud
1c41e3f508 To save ppl. looking and searching where the printer definitions (PPD) file
ought to be stored i made a notice of this in the MESSAGE file. It took me
some time :-/
2003-01-07 17:41:02 +00:00
jlam
a867f616be Updated print/cups to 1.1.18. Changes from version 1.1.17 include:
- SECURITY FIX: The scheduler now provides a FileDevice directive to
  control whether new printers can be added using device URIs of the form
  "file:/filename".  The default is to not allow printers with these
  device URIs.
- SECURITY FIX: Potential underflow/overflow bug in web interface.
- SECURITY FIX: Race condition in certificate creation.
- SECURITY FIX: Bad URIs in browse packets could be used to exploit the
  web interface underflow/overflow bug.
- SECURITY FIX: Some types of Denial of Service attacks were not handled
  properly, so once the attack was over the scheduler did not close the
  connections immediately on all platforms.
- SECURITY FIXES: Added integer overflow/underflow checks for all image
  formats.
- Bug fixes to the scheduler.
- Upgraded pdftops filter to Xpdf 2.01 with fixes for TrueType fonts.
- Added a MaxClientsPerHost configuration directive to provide limited
  protection against Denial of Service attacks.
2002-12-20 06:59:58 +00:00
jlam
c1bb3f6d46 Updated print/cups to 1.1.17. Changes from version 1.1.16 include:
- Bug fixes to the backends and scheduler.
- Bug fixes to the image filters.
- The scheduler now allows accounts authenticated via PAM to not have a
  corresponding UNIX account, but group membership still requires the
  account name to be listed in the UNIX group file(s)...
- Added some startup performance enhancements to the scheduler so that the
  printer object information is regenerated fewer times and the MIME type
  database is not filled with lots of empty filters for raw/direct queues.
- The backends now ignore SIGPIPE so that failed job filters will not stop
  a print queue.
- User-defined classification strings are now printed verbatim.
- The lpstat command did not allow for destination lists.
- The LPD backend now sends the job title as the print filename.
- Added support for variable sizes in the EPSON dot matrix printer drivers.
  This allows for pages as short as 1/2" (1 row of labels) and does not do
  an automatic form feed.
- The Solaris USB backend now supports the new device URI syntax.
- The serial backend now enumerates serial ports under MacOS X.
2002-12-19 22:24:51 +00:00
jlam
cca4b494c3 Start cupsd in the background as some of the cups backends take quite
a while to return whether there is a printer available or not during
startup.
2002-10-31 23:33:12 +00:00
bouyer
ccc5c184f0 Make CUPS_SERVERBIN points to $PREFIX/libexec/cups for solaris too
Correct man extentions for solaris.
Use ${PKGLOCALEDIR} in PLIST for locale directories.
2002-10-25 10:49:03 +00:00
jlam
12f0832604 We replace the code in the INSTALL script with SPECIAL_PERMS. 2002-10-24 19:55:38 +00:00
jlam
67d6c1c868 Note where to send bug-fixes or patches to CUPS when feeding back to the
author.
2002-10-20 23:33:42 +00:00
jlam
f647260432 Update print/cups from version 1.1.15.1 to version 1.1.16:
CUPS 1.1.16 adds support for a new CUPS printer driver for Windows
     NT/2000/XP that provides accurate page accounting as well as support
     for the banner, job billing, job priority, and page label options. The
     new release also contains many small bug fixes and enhancements,
     including better USB printing support, support for printer names
     containing any printable character (123print, my-long-printer-name,
     etc.), and French language localization of the web interface and
     documentation.
2002-10-20 18:57:37 +00:00
jlam
753e15c6df Don't default to cupsd=NO anymore, as rc.d scripts aren't copied into
/etc/rc.d by default any longer.  This causes the usual warning to be
emitted when the script is executed.
2002-10-20 08:09:46 +00:00
wiz
90e464773d Unused. 2002-10-09 23:32:33 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +00:00
grant
0c5bb6abcc Make these scripts more portable by taking advantage of automatic rc.d
script handling and using @RCD_SCRIPTS_SHELL@.

as discussed with jlam.
2002-09-20 02:01:54 +00:00
jlam
5c053dd06a Take advantage of the auto-generation and installation of rc.d scripts. 2002-09-19 09:04:02 +00:00
jlam
fdc7832875 Update print/cups to 1.15.1. Changes from version 1.14 include:
======================================================================
* Removed the pstoraster filter (based on GNU Ghostscript 5.50) and now
* provide the raster "driver" and patch file necessary to use the current
* GNU Ghostscript 7.05 release.  Pkgsrc users should install the
* print/ghostscript-esp package.
======================================================================

- Many, many bug fixes.
- Improvements to polling and scheduling of jobs to CUPS and to connected
  printers.
- Updated the CUPS license agreement for the new MacOS and OpenSSL license
  exceptions.
- The jobs.cgi web interface now handles all job operations, allowing the
  administrator to allow "job administrators" or operators to manage jobs
  (but not queues) on the server.
- New SCSI printer backend.
- The PostScript filter now supports 6, 9, and 16-up output, as well as new
  page-border and number-up-layout options.
- Added ConfigFilePerm and LogFilePerm directives.
- The HTML job operation templates now link back to the destination printer
  or class.
- Removed unnecessary fonts and updated the Courier and Symbol fonts to the
  latest versions to better support non-ISOLatin1 text.
- The text filter now always embeds the Courier and Symbol fonts to ensure
  that they contain the full set of glyphs.
- The PostScript image filter (imagetops) now supports printing CMYK images
  using the CMYK colorspace.
- The cupsaddsmb program was updated to use the setdriver command instead of
  addprinter.
- The Allow, Deny, BrowseAllow, BrowseDeny, and BrowseAddress directives
  now support the network interface names "@LOCAL" and "@IF(name)" for
  access control and browsing based on the current interface addresses
  instead of fixed names or IP addresses.
- The cupsaddsmb program now supports alternative CUPS and SAMBA server names.
- The PostScript filter now supports the Orientation comment and rotates the
  page as needed automatically.
2002-09-18 22:58:46 +00:00
drochner
e420df3edc this needs png & tiff to work 2002-09-17 20:27:48 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
fredb
c4f6b369e5 Raise the shell resource limits to the maximum, to let this build on
mac68k, at least. Closes PR 17563.
2002-07-16 13:14:04 +00:00
jlam
03fe331ee1 Apply patch from pkg/16643 submitted by Tero Kivinen <kivinen@ssh.fi> to
fix the problem where cupsd dumps core if BrowseProtocols is empty in the
config file.  The fix was taken from the CUPS CVS.
2002-06-09 20:59:34 +00:00
jlam
e6d9a15a66 PKG_SYSCONFDIR already appends /cups. Fix noted in pkg/15934 by
Tero Kivinen <kivinen@ssh.fi>.
2002-03-20 22:46:58 +00:00
fredb
b48eba1112 Give all packages which depend on "png" a version bump, and update
all dependencies on packages depending on "png" which contain shared
libraries, all for the (imminent) update to the "png" package.
[List courtesy of John Darrow, courtesy of "bulk-build".]
2002-03-13 17:36:35 +00:00
martti
332da6626c Updated cups to 1.1.14
- The ippRead() function did not verify that the
  attribute name length or string with language value
  was not larger than the read buffer.
- The scheduler set the signal handlers before loading
  the configuration files the first time; this prevented
  the RunAsUser directive from blocking server reloads.
- Added Swedish message catalog.
- The parallel backend now recognizes the /dev/printers
  device directory under Linux 2.4.x.
- MacOS X fixes.
- The cupsaddsmb utility sent the server name after the
  user information when executing the rpcclient program.
  This caused problems with some versions of SAMBA
  2.2.x.
- The IPP backend did not pass the requesting user name
  when checking on the print job status. This prevented
  it from waiting for the job to complete when
  communicating with some IPP implementations that
  require it.
2002-02-18 11:26:15 +00:00
jlam
e0d358778b Solaris' test binary (test/[) doesn't grok "-e". Replace with "-f".
Noted by Stoned Elipot <seb@netbsd.org> in private email.
2002-02-05 06:04:36 +00:00
jlam
c2a64fa05d Build checksum from a clean copy of the distfile. 2002-02-05 04:34:09 +00:00
jlam
d7f8e62403 Update print/cups to 1.1.13:
CUPS 1.1.13 adds support for the KOI8-R and KOI8-U encodings, message
catalogs for several Russian locales and for Simplified Chinese,
improvements for MacOS X (Darwin) and IRIX, improvements to the PDF,
PostScript, and text filters, status reporting for IPP-based printers
(paper out, etc.), and improvements to the SAMBA driver export facility.
The new release also fixes bugs in the scheduler, the lpstat command, the
CUPS API, and the pstoraster filter.
2002-01-31 17:51:26 +00:00
jlam
6eb1ad77dc Add USE_PAM to BUILD_DEFS when we build with PAM support. 2002-01-30 03:33:29 +00:00
jlam
d2f8d73e5a The configure script auto-appends "cups" to "sysconfdir", so pass
"${PKG_SYSCONFBASE}" to the script and set PKG_SYSCONFSUBDIR directly to
"cups".
2002-01-06 19:41:28 +00:00
jlam
3e3432bf8a Update print/cups to 1.1.12. Relevant changes from version 1.1.10.1 include:
- Bug fixes.
- Start of internationalization support for banner and PPD files.
- Added support for embedded TrueType fonts in PDF files.
- Added support for PostScript functions in PDF files.
- Added new "cupsaddsmb" utility for exporting CUPS printer drivers to
  SAMBA/Windows clients.
- The ippRead() and ipp_read_file() functions could not handle more than
  IPP_MAX_VALUES (100) values in a 1setOf attribute.  These functions have
  been updated to dynamically allocate more memory as needed, and the
  IPP_MAX_VALUES constant now represents the allocation increment.  [this
  caused some versions of the GIMP-print drivers to fail since the number
  of media options exceeded 100...]
- The web interfaces did not always quote < and & in things like the job
  title.  This had the potential for browser-based security violations (on
  the browser's machine); bug report from SuSE.
- The scheduler now treats unauthenticated usernames as case-insensitive
  when doing quota and allow/deny processing.
- The PostScript filter (pstops) now handles EPS files, adding a showpage
  command to the files as needed.
- The cups-lpd mini-daemon did not support anonymous printing (no username
  specified).  While the username is REQUIRED by RFC-1179, MacOS clients do
  not send the REQUIRED username information when printing via LPD.
- The httpConnect*() functions now try all available addresses for a host
  when connecting for the first time.
2001-12-14 23:18:15 +00:00
jmc
6171235f8c Make the patch actually compile..I missed here.. 2001-12-10 07:41:23 +00:00
jmc
0d715c7bbc Assembler on 1.5.2 or below macppc can't handle some parts in genarch. Patch around that 2001-12-09 10:55:44 +00:00
jlam
55ffb37406 bsd.pkg.install.mk calls the INSTALL script at the right times
automatically, so no need to do it ourselves.
2001-12-02 06:56:38 +00:00
jlam
678c0f86f8 Use PKG_{USERS,GROUPS} instead of PKG_{USER,GROUP}. 2001-11-26 20:38:31 +00:00
jlam
6e896e42e0 Forgot a CONFDIR -> PKG_SYSCONFDIR replacement. 2001-11-26 07:30:44 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
jlam
892b322f45 These rc.d scripts are copied to ${RCD_SCRIPTS_DIR} == /etc/rc.d, so change
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
2001-11-21 21:38:50 +00:00
jlam
cdec44e8b4 RCD_SCRIPTS now just lists the filenames (see bsd.pkg.install.mk). 2001-11-21 15:44:22 +00:00
jlam
2ac4cd69d4 Respect ${CONFDIR}. 2001-11-21 15:35:09 +00:00
jlam
b23d2e8626 Adapt to use shared INSTALL/DEINSTALL scripts by using the logic in
bsd.pkg.install.mk:

	* Remove old DEINSTALL/INSTALL scripts.
	* Move some text printed at POST-INSTALL time into the MESSAGE file.
	* Adjust rc.d scripts to respect rc.conf settings, so that the
	  script may be directly copied into /etc/rc.d.
2001-11-19 16:23:08 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
jlam
2e160df727 Update print/cups to 1.1.10.1. Changes from version 1.1.9.1 include:
+ Use our own cupsd rc.d-style script instead of using the one supplied
  with the CUPS sources.
- Bug fixes.
- Added a driver for DYMO label printers.
- Added new ClassifyOverride directive to allow users to override the
  classification of individual jobs.
- Added new BrowseProtocols directive to control which browse protocols
  are used (currently CUPS and SLP).
- Added SLPv2 support.
- The pdftops filter did not have the Japanese and Chinese text support
  compiled into it.
2001-08-18 04:41:45 +00:00
jlam
e085ee5316 grep isn't used anymore, so don't substitute for @GREP@ in the INSTALL
files.  Substitute for @ID@ instead of directly using 'id', and use the
value of ${ID} already set in defs.*.mk.
2001-08-14 03:41:37 +00:00
veego
e109514d03 Fix same problems with the user check:
- use 'id' instead of 'finger'. this is not a real problem, but it
  is enough and fixing the next problem makes it possible to use it.
- grep -q doesn't work on solaris, so use a different way to suppress
  the output from the user check.
- the return code check for the user was reversed.
2001-08-12 19:55:56 +00:00
jlam
e19d2fcf8f Link sbin/accept, not bin/accept, to bin/{disable,enable}. 2001-08-06 18:06:25 +00:00
jlam
d438151d1e Update cups to 1.1.9.1. Changes from version 1.1.8 include:
* Bug fixes to the pstoraster filter, the DeskJet printer driver,
    digest authentication.
  * Optimized PPD file scanner so servers with lots of PPD files start
    much faster (up to 40%).
  * Fixed the "N * N copy bug" where N * N copies were sent when N were
    specified.
  * Added new DeskJet and Stylus Photo printer drivers.
  * Workaround buggy IPP implementations in some HP JetDirect servers.
2001-08-02 03:37:39 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
7b1d3cb465 Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:31 +00:00
jlam
9820a22a90 In package Makefiles, create FILES_SUBST instead of duplicating sed
expression for substituting in DEINSTALL/INSTALL scripts.  Use "${CMP} -s"
instead of "diff -q" since the former is more portable across OSes.
2001-07-13 07:09:17 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
34d11d8a0f Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0.  This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-23 19:26:48 +00:00
jlam
32f4b66c0e Use openssl/buildlink.mk instead of USE_SSL, mark as USE_BUILDLINK_ONLY,
and use FILES_SUBST instead of repeating sed script throughout the
Makefile.
2001-06-19 08:39:33 +00:00
jlam
dbfde59b14 The buildlink include and lib directories are added to CFLAGS, CPPFLAGS,
CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra
definitions to add them from the package Makefiles.  As advised by the
bsd.buildlink.mk file, also ensure that the buildlink.mk files are
included prior to defining any package-specific CFLAGS/LDFLAGS to ensure
that the buildlink directories are at the head of the compiler search
paths.
2001-06-11 02:05:07 +00:00
jlam
072be2ad69 Use bsd.buildlink.mk instead of duplicating code all over the place. 2001-06-11 01:59:33 +00:00
jlam
5d02f04b3a Use cookies (.*_done) to determine whether headers and libs have been
linked from a particular package, and add a pre-configure target to
the buildlink.mk file to more painlessly use buildlink.mk files.  A
${BUILDLINK_TARGETS} variable still exists in case a package _must_
define NO_CONFIGURE.
2001-06-10 00:09:29 +00:00
jlam
3bc5e40254 Remove dependency on ${BUILDLINK_TARGETS} in pre-configure and pre-build
targets as the buildlink.mk files now add the dependency automatically.
Remove any NO_CONFIGURE definitions as they seem to be useless.
2001-06-10 00:08:41 +00:00
wiz
271d5d6def ' ' -> '\t' 2001-06-09 15:12:04 +00:00
jlam
86363b2d35 Use buildlink.mk files to get dependencies for png, jpeg, and tiff. 2001-05-26 16:32:37 +00:00
jlam
f077d7fbc0 No functional change...just rework some code and resort some lines. 2001-05-26 07:23:34 +00:00
jlam
20edd3082f Protect against multiple inclusion. 2001-05-26 05:44:09 +00:00
jlam
79c34b827b Add buildlink.mk file to link libraries and headers into ${WRKDIR}, to be
used by other packages.
2001-05-24 16:41:08 +00:00
jlam
709acfcbed Update cups to 1.1.8. Relevant changes from version 1.1.7 include:
- The scheduler might restart a stopped printer after stopping a print job.
- The IPP backend did not handle the client-error-not-found error when
  checking the status of the job that was sent.  This caused remote queues
  to stop on client machines when the server had job history disabled.
- Added httpConnectEncrypt() function to avoid performance penalty for
  setting up encrypted connections initially.
- Jobs weren't queued to remote classes (fix from Richard Begg.)
- Fixed the pstops fix for GNOME output - no longer use the page numbers in
  the %%Page: comment since GNOME puts a filename instead (!?@!#?!).
- The imagetops filter produced PAGE: messages when generating PostScript for
  a non-PostScript printer (only affects page-label and Classification
  options.)
- The updated pdftops filter was looking for an options file called xpdf.conf
  instead of pdftops.conf.
- The scheduler would not force the default job sheets for printers to the
  current classification setting.
- Added a new ippFindNextAttribute() function to the CUPS API.
- ppdEmitJCL() now strips any leading path info from the title string.  This
  is only an issue for non-CUPS clients that don't do this already...
- Other pstops fixed from Helge Blischke for printing non-conforming
  documents.
- The MaxJobs parameter was not reset when loading the cupsd.conf file.
2001-05-24 03:17:18 +00:00
wiz
26c40c61dd Update dependency on png to >=1.0.11 because of the shlib major bump.
Noted by Frederick Bruckman.
2001-05-22 09:32:18 +00:00
jlam
38bf1f61db Update cups to 1.1.7. Changes from version 1.1.6nb3 include bugfixes,
documentation updates, better support of Apache options in configuration
files, and:

- Added support for "double" HostNameLookups.
- Added new "RunAsUser" directive to support non-root configurations on the
  standard (privileged) ports.
- Added support for non-root invocation of the lpd backend (does no reserve a
  priviledged port, which might not work with some LPD servers...)
- Added new PrintcapFormat directive to control the output format of the
  printcap file (BSD or Solaris formats are supported at present.)
- httpConnect() now looks up "localhost" by name and by address (127.0.0.1)
  for users that go to the trouble of removing the required localhost entry
  in /etc/hosts or on their DNS server...
- The EPSON drivers now send the "end packet mode" command when printing to
  USB devices.
- The LPD backend now supports a new "order" option:
  "lpd://server/queue?order=control,data" (default) and
  "lpd://server/queue?order=data,control".
- New "Classification" directive to force labeling of the current
  classification on each page.
- New "page-label" attribute to add per-page labels ("For Official Use Only",
  "Draft", etc.)
- Dropped the "file" backend from the device list that is reported, since it
  is only available for *testing* and should never be used in a production
  environment.  The file: device can still be used, but it won't show up in
  the list of devices from lpinfo or the web interface.
- Added META variables to the CGI header template to prevent caching of the
  results.
- Added two new directives - MaxJobsPerPrinter and MaxJobsPerUser - to allow
  an administrator to set the maximum number of pending jobs in a queue or
  submitted by a user.
- Added support for the Enable-Printer and Disable-Printer extension
  operations (same as CUPS-Accept-Jobs and CUPS-Reject-Jobs.)
- Added support for the DeskJet 900 series duplexer and CRET color modes in
  the HP driver.
- Added support for PPD-defined margins in the HP driver.
- Added new cupsGetJobs() and cupsFreeJobs() functions to manage print jobs.
- cupsEncodeOptions() would encode names of 0 length and cupsAddOption() and
  cupsParseOptions() would add names of 0 length.
2001-05-15 17:43:20 +00:00
agc
1c989c3883 Move to sha1 digests, where appropriate and possible, and add distfile
sizes.
2001-04-20 12:41:48 +00:00
agc
9e8d6c8b8d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:33:31 +00:00
jlam
9159c0b74c Update cups to 1.1.6.3nb3. Add a patch from the mailing list to fix a bug in
IPP Set-Job-Attributes operation, which is only used if you alter a job with
"lp -i job-id".
2001-03-30 17:36:43 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
jlam
6a377ea2dd Update cups to 1.1.6.3nb2. Changes from version 1.1.6.3nb1 include two fixes
from the mailing list:

	1) Use /dev/urandom instead of /dev/random for random device.
	2) Read configuration file before creating certificates as the conf
	   file may redefine the location of the certs directory.
2001-03-07 04:09:58 +00:00
tron
5382bbe7c6 Because the minor number of the PNG library was increased packages compiled
using the newest PNG library won't work on system with an older one. To
prevent such problems with precompiled binary packages require at least
"png-1.0.9nb1" in all dependences.
2001-03-04 09:06:09 +00:00
jlam
d4699dea3c Update CUPS to 1.1.6.3nb1 from source distribution 1.1.6-3. Changes from
version 1.1.6.2nb1 include incorporation of USB fixes from NetBSD pkgsrc,
security fixes from SuSE, lpr-compatibility fixes from Caldera, and:

- Fix problem exposed by the MaxJobs directive where the scheduler was
  losing count of the number of jobs.  This fix, stored in patch-ah, was
  gleaned from the CUPS mailing list, and bumps the cups packages version
  number to 1.1.6.3nb1.
- The updated cupsTempFile() function did not return the filename when
  called with a filename buffer of NULL (previously it used a static
  buffer.)
- DeletePrinter() didn't remove the printer from any classes it was a member of.
- DeletePrinterFromClass() didn't preserve the implicit status of a class.
- DeletePrinterFromClasses() didn't remove printers from implicit classes.
- StartJob() didn't send the job-sheets, job-priority, and job-hold-until
  attributes to remote printers.
- LoadAllJobs() was looking for job-sheets-completed instead of
  job-media-sheets-completed.  This would prevent accumulation of page data
  after a restart of the scheduler.
- The pstops and imagetops filters now generate copies using the appropriate
  method for a Level 1, 2, or 3 printer since some Level 2/3 printers don't
  support the /#copies variable anymore.
- The IPP backend didn't handle version-not-supported errors and revert to
  IPP/1.0 (previously it only checked for a bad-request error)
2001-02-27 17:37:53 +00:00
wiz
a87738b456 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:42:09 +00:00
jlam
e1e485642e Remove extra #endif 2001-02-13 20:21:36 +00:00
jlam
4cbcdacb90 Update cups to 1.1.6.2nb1. Changes from version 1.1.6.1 include:
- Added changes to support NetBSD startup scripts.
	- The mime.types file contained syntax errors.
	- Updated the FreeBSD USB device filenames to use the /dev/unlptN files
	  so that the USB device is not reset prior to printing (causes print
	  corruption on many printers)
	- Added new cupsTempFd() function to avoid serious security bug in
	  glibc fopen() function.  The glibc fopen() function unlinks a file
	  before creating it, which opens up possible symlink attacks.
	- Now reject 0-length names in add-printer and add-class
	  requests.
	- cupsGetPPD() didn't reconnect when a HTTP connection
	  was lost.
	- Many security-related fixes from SuSE.
2001-02-08 19:05:00 +00:00
tron
f2d262e0be Use full pathname "${LOCALBASE}/bin/auto..." in dependences and make
targets. This includes a fix for PR pkg/12125 by Tomasz Luchowski.
2001-02-05 09:00:54 +00:00
jlam
fe06314b7b Update cups to 1.1.6.1. Changes from version 1.1.5.2 include bug fixes,
additions to the documentation, plus the following changes:

	- Fixed another possible DoS attack in httpGets().
	- Added check for "LANGUAGE = PCL" and "LANGUAGE = POSTSCRIPT" in
	  mime.types.
	- The printers.conf and classes.conf files are now written with
	  restricted permissions.
	- If LoadAllJobs() is unable to determine the file type of a print
	  job, assume "application/vnd.cups-raw".
	- The web interface now provides a job_printer_name value for any
	  corresponding job_printer_uri value.
	- The cups-lpd mini-daemon now logs the client address and hostname
	  as well as all commands and errors in the syslog file.
	- The IPP backend now detects the supported file formats and only
	  specifies the document format if it is supported.  This makes IPP
	  printing to network print servers and cards more reliable without
	  affecting the capabilities of CUPS servers.
	- The time_at_xyz attributes are now converted to human-readable
	  dates and times for the web interfaces.
	- The file type logging code in the scheduler referenced the optional
	  document-format attribute; the new code uses the resolved MIME type
	  instead.
	- The client.conf parsing code now removes trailing whitespace.
	- The lpadmin command now supports setting of options and user-level
	  access control.
	- Added "-E" option to all printing commands to force encryption.
	- The socket backend now starts retries at 5 seconds and increases
	  the interval to 30 seconds.  This should provide faster printing
	  when multiple jobs/files are queued for a printer.
	- The filters and backends no longer buffer output to stderr.  This
	  should provide much more accurate status reporting.
2001-01-28 02:05:36 +00:00
jlam
ab1247594e s/sysconfdif/sysconfdir/ 2001-01-12 18:34:23 +00:00
jlam
bfa4a03f52 Update cups to 1.1.5.2. No functional changes from 1.1.5.1, but NetBSD
changes were folded back into the main source tree.
2001-01-11 19:00:42 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
jlam
1c2cb843d3 Set correct permissions on /etc/cups/certs and /var/spool/cups. This also
fixes a bad chown command during binary package installation.
2000-12-28 02:22:18 +00:00
jlam
b417d89785 Note conflict with LPRng-core. 2000-12-28 00:09:38 +00:00
jlam
1bb4b8cfc6 Update cups to 1.1.5.1. Changes from version 1.1.5 are only fixes to the
build process.
2000-12-21 16:59:31 +00:00
jlam
5c6edcdd63 Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of
bug and security fixes, improvements to the efficiency of the server and
utilities, improvements to the documentation, plus the following:

     * Security updates - new default configuration does not broadcast
       printer information and only allows access from the local system.
     * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL
       encryption via the OpenSSL library.
     * Updated PDF filter to Xpdf 0.91.
     * Added PPD files for 9-pin and 24-pin OKIDATA printers.
     * Changed all sprintf's that use string formats to snprintf's, even if
       the destination buffer is larger than the source string(s); this
       protects against buffer overflows caused outside of CUPS...
     * Changed all strcpy's to strncpy's between local and global variables,
       even if the destination buffer is larger than the source string; this
       protects against buffer overflows caused outside of CUPS...
     * Added new mime.types rules to allow automatic raw printing of PCL and
       ESC/P files; PJL headers are parsed to differentiate between
       PostScript and PCL job files. This should eliminate a lot of the
       reports of SAMBA printing problems due to the missing "-oraw" or "-l"
       options.
     * Jobs are now assigned to printers in a class round-robin style. This
       should prevent the first server in the class from bearing the brunt of
       the jobs.
     * The serial backend didn't support the higher baud rates with the old
       termios interface. It now supports 57600 and 115200 baud.
     * The serial backend now supports different types of flow control;
       previously it ignored the flow=XYZ option in the device URI.
     * The serial backend now supports DTR/DSR flow control, which is popular
       on dot-matrix printers (access with "flow=dtrdsr" in the device URI)
     * Added new job-originating-host-name attribute for jobs. The new
       attribute provides the hostname or IP address of the machine that
       submitted the job.
     * Added quota and allow/deny user support for printers and classes.
2000-12-21 14:59:37 +00:00
jlam
12e8b340a3 Only some of those config files are supposed to be editted by the user,
so differentiate them from the CUPS-generated ones.
2000-12-15 21:57:38 +00:00
jlam
493b7f7fe5 Deal with init script in a better way. Also update various patches to
versions sent back to Easy Software.
2000-12-14 17:04:44 +00:00
jlam
eeacd671b6 Add ${USE_PAM}-triggered PAM support. 2000-12-12 16:04:06 +00:00
jlam
c42e57435f Add ${USE_PAM}-triggered PAM authentication support. 2000-12-12 16:03:13 +00:00
jlam
8c40a62fe7 Substitute for @ADDGROUP@ in pkg/INSTALL file. 2000-12-11 09:00:51 +00:00
jlam
aaa8b64cb5 Set ADDUSER and ADDGROUP appropriately. 2000-12-11 08:53:07 +00:00
jlam
05ff9af2c2 s/Cyrus User/CUPS user/g 2000-12-11 08:42:03 +00:00
jlam
61365de702 Some tweaks to the DEINSTALL/INSTALL scripts and improvements to the
cupsd rc.d script.
2000-12-09 22:18:24 +00:00
jlam
db395d9c63 s/CYRUS/CUPS/g 2000-12-09 05:53:39 +00:00
jlam
c1a1bc2e81 Add CUPS_USER and CUPS_GROUP to the BUILD_DEFS. 2000-12-09 05:53:06 +00:00
jlam
7f0c7f923b Update cups to 1.1.4. Changes from version 1.1 include a large number of
bugfixes, security fixes, improvements to the web admin interface, addition
of new printer drivers, improved documentation, and improvements to the CUPS
API for client development.
2000-12-07 20:33:05 +00:00
jlam
b6c15f1bdd Be more explicit about where the example config files are copied from
during installation.
2000-07-13 01:01:11 +00:00
jlam
84fe60f2c4 Update CUPS to 1.1. Remove most of the patches; I worked closely with
the author to make this package compile more seamlessly on BSD systems,
and in particular with the NetBSD pkgsrc software collection.

CUPS 1.1 is the newest production (stable) release of CUPS.  It
provides many new features from the 1.0.x releases, including a
new Level 3 PostScript RIP, a new PDF filter, EPSON printer
drivers, IPP/1.1 support, banner page support, and LPD client
support.  Binaries for several platforms are also available.

Major changes in v1.1 include:

	- The text filter now embeds missing fonts.
	- Integrated Xpdf's pdftops filter into CUPS, which is a
	  lightweight and reliable replacement for Ghostscript's
	  PDF support.
	- The web administration interface now allows you to set
	  the default banner pages.
	- Images can now be positioned on the page using the new
	  "position" option.
	- Updated the serial, parallel, and usb backends to do
	  multiple writes and ignore ioctl() errors as needed;
	  this should fix problems with serial printing on old
	  serial drivers and with the UltraSPARC parallel port
	  driver under Solaris 2.7.
	- Now propagate LD_LIBRARY_PATH to child processes from
	  cupsd.
	- Queued remote jobs recreate remote printers as needed
	  when the scheduler is started.
	- Deleting a printer also purges all jobs on that
	  printer.
	- Old job and control files that don't belong to a
	  printer are automatically deleted.
	- cups-lpd now supports options set with lpoptions.
	- The IPP backend now switches to IPP/1.0 if a 1.1
	  request fails.
2000-07-12 20:09:33 +00:00
rh
74add3b300 s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
2000-06-01 11:23:11 +00:00
tron
ea7dc91900 Because the minor of "libpng" was bumped we must sure that packages
compiled for the update "png" package depend on it.
2000-03-21 22:40:50 +00:00
tron
e8a1039530 Use "png>=1.0.3" instead of "png-*" in dependence list. 2000-02-09 20:20:52 +00:00
tron
f184beb4a5 Use wildcard dependence for "png" package. 2000-02-09 15:22:32 +00:00
rh
319ab90bcc defuzz. 1999-12-07 21:01:46 +00:00
jlam
935fbd40ea Update patchsum file. 1999-11-29 02:31:13 +00:00
jlam
9e3defa0e6 Common UNIX Printing System, a IPP 1.0 implementation. 1999-11-29 02:18:53 +00:00