Commit graph

153 commits

Author SHA1 Message Date
jlam
bccaba8d4b Instantly deprecate USE_PAM from pkgsrc as its value is being set from
within NetBSD-current's bsd.own.mk, which conflicts with its usage in
pkgsrc.  The package that use USE_PAM have been converted to use the
bsd.options.mk framework.  This should fix PR pkg/29257.
2005-02-07 11:35:41 +00:00
drochner
5c2a24e894 apply the last xpdf security patch to the embedded pdftops filter
which is based on xpdf, bump PKGREVISUIN
2005-01-19 11:03:23 +00:00
jlam
1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00
salo
8744fb3017 Bump BUILDLINK_RECOMMENDED after latest security update. 2005-01-11 00:09:21 +00:00
jlam
f166f11cf0 Don't create the directories during installation... let the pkgsrc INSTALL
script handle it instead to ensure proper ownership.
2005-01-06 18:22:29 +00:00
jlam
3dd399c2ae Update print/cups to 1.1.23. Changes from version 1.1.22 include:
- The scheduler's is_path_absolute() code could cause a DoS (STR #1042)
- The scheduler's device loading code used the wrong size limits for the
  make/model and info parameters (STR #1035)
- The PNG loading code did not use a "long unsigned integer" format
  specifier for the width and height (STR #1032)
- The web interface only showed the first 4 or 8 characters of
  "{variable-name}" for undefined template variables (STR #1031)
- The hpgltops filter did not handle a common PCL command to enter
  HP-GL/2 mode (STR #1037)
- The scheduler no longer sends the page-set option when printing banner
  pages (STR #995)
- The hpgltops filter contained two buffer overflows that could
  potentially allow remote access to the "lp" account (STR #1024)
- The lppasswd command did not protect against file descriptor or ulimit
  attacks (STR #1023)
- The "lpc status" command used the wrong resource path when querying
  the list of printers and jobs, causing unnecessary authentication
  requests (STR #1018)
- The httpWait() function did not handle signal interruptions (STR #1020)
- The USB backend used the wrong size status variable when checking the
  printer status (STR #1017)
- The scheduler did not delete classes from other classes or implicit
  classes, which could cause a crash (STR #1015)
- The IPP backend now logs the remote print job ID at log level NOTICE
  instead of INFO (so it shows up in the error_log file...)
2005-01-06 07:26:39 +00:00
jmmv
b780b72901 OpenSSL is needed here because 'cups-config --libs' lists -lssl as a
dependency (so we need it in the buildlink directory to build other
packages).  Should fix build of libgnomeprint shown in minskim@'s
latest Linux bulk build.
2005-01-04 14:48:22 +00:00
minskim
e07031c753 Use VARBASE. 2004-12-29 15:21:50 +00:00
reed
e117eda090 Bump PKGREVISIONs due to libtiff update.
Some BUILDLINK_RECOMMENDED bumps done also.

(If I missed any, please let me know -- and let me know a good
way to automate this.)
2004-12-28 23:18:15 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
jlam
204475425e Align with doc/Makefile-example by moving the buildlink3.mk files ahead
of local targets.
2004-11-30 17:41:52 +00:00
adam
b5f6affccd Changes 1.1.22:
- The lpstat man page incorrectly listed the "-s" option
	  as using the equivalent of the "-p" option to list the
	  printers; it uses the "-v" option to list the printers
	  (STR #986)
	- Now allow 0-length reads in the CUPS file API (STR
	  #985)
	- cupsDoFileRequest() now sets cupsLastError() to
	  IPP_ERROR on network errors (STR #953)
	- The pdftops filter didn't scale small pages up to the
	  output page size when the fitplot option was used (STR
	  #984)
	- Fixed the ipptest program usage message (STR #959)
	- Added Spanish man pages (STR #963)
	- Fixed the order of comparisons in the client.conf
	  reading code (STR #971)
	- cupsLangGet() incorrectly set the current locale (STR
	  #970)

Changes 1.1.22rc2:
	- The pdftops filter didn't check the range of all
	  integer attributes (STR #972)
	- Documentation corrections (STR #944, STR #946)
	- Also sanitize device URI in argv[0] (STR #933)
	- cupsRasterReadHeader() didn't swap bytes for the
	  numeric fields properly (STR #930)

Changes 1.1.22rc1:
	- Now sanitize the device URI that is reported in the
	  error_log file (STR #920)
	- Fixed some memory and file descriptor leaks in the job
	  dispatch code (STR #921)
	- Deleting a printer could cause a crash with browsing
	  enabled (STR #865, STR #881, STR #928)
	- Browsing would turn off if the scheduler got an EAGAIN
	  error (STR #924)
	- The mime.types file didn't recognize PostScript as a
	  PJL language name (STR #925)

Changes 1.1.21:
	- The scheduler did not separate Digest authentication
	  parameters with commas (STR #882)
	- Fixed some problems with image printing to custom page
	  sizes (STR #891)
	- Removed the remaining scheduler code that did not use
	  the "close-on-exec" file descriptor flag to speed up
	  program invocations (STR #890)
	- The "lpr -r" command removed the print file even if it
	  was not printed. It now only removes the file if the
	  job is successfully created (STR #886)
	- Revamped the custom page size orientation fix (STR
	  #127)
	- The lp, lpq, lpr, and lpstat commands now report when
	  an environment variable is pointing to a non-existent
	  printer instead of just saying "no default
	  destination" (STR #879)
	- Queue names with 2 periods (e.g. "printer..2") were
	  not supported (STR #866)
2004-11-08 16:30:59 +00:00
abs
805794b793 Remove lib/libcupsimage.a, but leave lib/libcupsimage.la 2004-10-20 16:58:01 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
jlam
9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework.  Instead of appending to
${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS.  This causes
the default options to be the union of PKG_DEFAULT_OPTIONS and any
old USE_* and FOO_USE_* settings.

This fixes PR pkg/26590.
2004-08-22 19:32:51 +00:00
jlam
b460ce1ab5 Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking:

	make show-var VARNAME=PKG_OPTIONS_VAR

The old options are still supported unless the variable named in
PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
2004-07-30 21:05:41 +00:00
recht
30dd78fab4 The pkgview installation of cups causes more harm than good since other
packages install filters into libexec/cups/filter - which doesn't work
in pkgview land. To work around this disable pkgview installation of
cups until the issues are resolved.
ok'd by jlam@
2004-06-23 11:04:37 +00:00
jlam
aa3ba79ac6 Correct the flags passed to the linker when building with libtool and bump
the PKGREVISION.  Also remove the unnecessary -preserve-dup-deps argument
to libtool, rename the configure option to --enable-libtool, and remove
the unnecessary bits to deal with libcrypt/libcrypto (buildlink3 does
this for us automatically).
2004-05-17 10:40:45 +00:00
snj
7fbcd781bf Convert to buildlink3. 2004-05-05 03:54:59 +00:00
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