Commit graph

133 commits

Author SHA1 Message Date
reed
9c790735db mk/bsd.pkg.install.mk now automatically registers
the RCD_SCRIPTS rc.d script(s) to the PLIST.

This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.

This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)

These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)

I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.

Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
  hard-coded etc/rc.d. These need to be fixed.
- maybe  remove from mk/${OPSYS}.pkg.dist mtree specifications too.
2004-04-23 22:07:52 +00:00
wiz
a661ce60c0 PKGREVISION bump after openssl-security-fix-update to 0.9.6m.
Buildlink files: RECOMMENDED version changed to current version.
2004-03-26 02:27:34 +00:00
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