Commit graph

47 commits

Author SHA1 Message Date
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
4ecdf6436e The plugins directory is under ${PREFIX} and we install a plugin in
there already, so don't use OWN_DIRS -- just use @dirrm.  Bump the
PKGREVISION to 2.
2005-08-20 01:56:11 +00:00
jlam
915339f298 The path to the Courier authdaemond socket was improperly being set to
the wrong value.  Fix it so that the default is now correctly set to be
/var/authdaemond/socket.  Bump the PKGREVISION to 1.
2005-03-02 15:52:26 +00:00
jlam
55ecced35d Correct path to courier-authlib in comment. 2005-02-26 08:14:11 +00:00
jlam
59c037738d Update security/cyrus-sasl2 and associated plugins to 2.1.20. Changes
from version 2.1.19 include:

* Fixes to cram plugin to avoid attempting to canonify uninitialized data
  (This removes the need for patch-af).
* NTLM portability fixes.
* Avoid potential attack using SASL_PATH when sasl is used in a setuid
  environment.
* A trivial number of small bugfixes.
2004-11-15 21:58:16 +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
73ce2d82db Split out the plugins into individual packages. This allows us to
explicitly add only those plugins for SASL support for servers that
won't let us exclude any found SASL plugins.  Also, don't bother
building the static library since the static library is useless until
the build mechanism is fixed by the Cyrus maintainers.

Bump the PKGREVISION.
2004-08-13 18:08:02 +00:00
jlam
7fb711f0eb There is no way for libtool to generate a convenience library that
can be used to create shared libraries _and_ be linked into a statically
linked program.  Instead of trying to hack libtool to do this, just
accept the fact and do what you want another way!

Remove the ugly hack in sasldb/Makefile.am that regenerated the static
archive from the non-PIC object files.  While this was fine for linking
into programs, it breaks things when you link this into the sasldb
plugin.  Leaving it the other way, where the static archive from the
PIC object files, is also unacceptable because there are potential
problems on some platforms when linking an archive of of PIC objects
into an executable.  The solution: let the static archive contain PIC
objects and be used to link into the sasldb plugin, but for the programs
in the utils directory, explicitly add the non-PIC object files listed
in $(SASL_DB_BACKEND_STATIC) to the files used to generate the programs.
This is easy because SASL_DB_BACKEND_STATIC is already generated
properly by config/sasldb.m4, so make use if it.

This should fix problems with using Cyrus SASL on non-i386 platforms
noted in PR pkg/26492 by Matt Dainty.  Bump the PKGREVISION.
2004-08-06 06:36:18 +00:00
jlam
b32800e3ff Rename Makefile.options to options.mk in the packages that I maintain.
This follows the example of the mail/dovecot package, as suggested by
<schmonz>.
2004-08-05 03:04:33 +00:00
jlam
e3ac987879 Updated security/cyrus-sasl2 to 2.1.19. Changes from version 2.1.18
include:

* Support for forwarding of GSSAPI credentials
* A nontrivial number of small bugfixes.
2004-08-04 19:41:06 +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
43fcfda955 Use a better fix from ASG CVS the GSSAPI problems.
patch-ap now includes the updates between rev 1.84 and rev 1.90
modulo the support for passing of GSSAPI credentials.

Patch provided by Jukka Salmi in PR 26184

Bump PKGREVISION to 3 for the new fix.
2004-07-08 21:11:25 +00:00
jlam
e9f1f50552 Refer to ${VARBASE} instead of /var for the location for local state
information.
2004-07-06 22:38:32 +00:00
jlam
569b488dc8 Re-add revision 1.3 of patch-ab as patch-ag. This resurrects a change to
use shlibtool to build the plugins to avoid generating and installing a
static archive for the plugin module.  This fixes PLIST breakage.  Bump the
PKGREVISION to 2.
2004-07-06 04:20:59 +00:00
recht
70a0a95356 Pull in a fix from ASG CVS: increase maxoutbuf buffer size
This allows uploading of SIEVE scripts larger than 4kb if GSSAPI
authentification is used for cyrus-imapd.

link to the patch provided by Jukka Salmi in PR 26165

bump PKGREVISION to 1
2004-07-05 16:49:18 +00:00
jlam
44cfab94b5 Update security/cyrus-sasl2 to 2.1.18. Changes from version 2.1.17
include:

* Better error-handling.
* Support for Courier-IMAP authdaemond for plaintext password verification.
* Fixed resource leaks and buffer overruns.

pkgsrc changes include:

* SASL_DBTYPE is either "ndbm" or "berkeley" and sets the db format of the
  sasldb authentication database, defaulting to ndbm.
* SASLSOCKETDIR is the location of the saslauthd socket directory.
* AUTHDAEMONVAR is the localt of the authdaemond socket directory.
* SASL_ENTROPY_SOURCE is a file of random bytes used as a PRNG.

This closes PR 24649 and PR 24694.
2004-03-29 05:47:30 +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
e44579ded5 We no longer need to set GNU_MISSING_OVERRIDE after the changes in revision
1.27 of tools.mk to hide the auto* tools between pre-configure and
do-configure.
2004-02-17 12:13:07 +00:00
jlam
8f70d2adc2 Don't try to link GSSAPI module staticly if we're using shared libs.
Fixes undefined symbols on linking other software against libsasl2.
Bump PKGREVISION.
2004-02-14 07:45:36 +00:00
jlam
276769e2ea Update security/cyrus-sasl2 to 2.1.17. Changes from version 2.1.15 include:
* Now correctly do authorizaton callback in sasl_checkpass()
* Writable auxprop support
* Significantly improved documentation
2004-02-14 03:16:58 +00:00
jlam
0cbd511107 Remove hidden dependency on autoconf by using GNU_MISSING_OVERRIDE. Also,
PKGSHLIBTOOL has been removed from pkgsrc and we're supposed to use
${SHLIBTOOL} instead.
2004-02-12 13:34:29 +00:00
jlam
3601a7551c Recognize KERBEROS as a flag that can cause this package to be built using
Kerberos for GSSAPI support.
2004-01-21 14:01:06 +00:00
jlam
9351de8505 Remove debugging line accidentally committed in previous. 2004-01-21 12:14:57 +00:00
jlam
b5b7b84c22 Convert to use krb5.buildlink3.mk to get Kerberos 5 support. Tested to
build and install properly using Heimdal.
2004-01-21 12:12:13 +00:00
jlam
7fa7bb10c3 Remove references to saslauthd from this package. 2004-01-09 20:35:03 +00:00
jlam
ab147d0e74 Update cyrus-sasl2 to 2.1.15nb2. Changes from version 2.1.15nb1 are
splitting out the saslauthd daemon into a separate package,
security/cyrus-saslauthd.  This allows the saslauthd daemon to
support additional database backends for plaintext authentication
without adding unrelated dependencies to the cyrus-sasl2 package.
2004-01-09 19:37:48 +00:00
jlam
39b5cf574d bl3ify 2004-01-08 22:13:14 +00:00
markd
6139b28041 Fix build if SASL_USE_GSSAPI=YES
From PR pkg/23634 by Louis Guillaume.
also noted in PR pkg/23339.
Fix configure to not try and _statically_ link in gssapi support as it doesn't
work (unresolved symbols when used).  This deals with the second part of
PR pkg/23339.
2004-01-05 12:10:29 +00:00
jschauma
fe19bb05b5 PKGREVISION++ after openssl update. 2003-11-12 03:39:39 +00:00
chris
ace63ac599 Add BUILD_DEFS line for USE_PAM and SASL_USE_GSSAPI. 2003-10-05 21:52:57 +00:00
jmc
9ba4361a12 Nuke definition for INSTALL_EXTRA_TMPL here since INSTALL doesn't exist. 2003-09-02 23:14:44 +00:00
jlam
b2677a2cb0 Add definitions for DEINSTALL_EXTRA_TMPL and INSTALL_EXTRA_TMPL if
USE_PKGINSTALL is "YES".  bsd.pkg.install.mk will no longer automatically
pick up a INSTALL/DEINSTALL script in the package directory and assume that
you want it for the corresponding *_EXTRA_TMPL variable.
2003-08-30 22:51:11 +00:00
recht
a4ec41985a Update to 2.1.15.
changes:
Fix build on NetBSD-current with OpenSSL 0.9.7.

New in 2.1.15
-------------
* Fix a number of build issues
* Add a doc/components.html that hopefully describes how things
  interact better.

New in 2.1.14
-------------
* OS X 10.2 support
* Support for the Sun SEAM GSSAPI implementation
* Support for MySQL 4
* A number of build fixes
* Other minor bugfixes

OK'ed by chris@
2003-08-16 09:06:41 +00:00
jlam
cc05368605 Rearrange the Makefile logic so that we can easily create Cyrus SASL 2.x
plugin packages.
2003-03-19 22:25:05 +00:00
seb
3869278076 Update to version 2.1.12.
New in 2.1.12
-------------
* Distribute in Solaris tar (not GNU tar format)
* Fix a number of build/configure related issues.

New in 2.1.11
-------------
* Add the fastbind auth method to the saslauthd LDAP module.
* Fix a potential memory leak in the doors version of saslauthd.
* NTLM now only requires one of LM or NT, not both.
* Fix a variety of Berkeley DB, LDAP, OpenSSL, and other build issues.
* Win32 support compiles, but no documentation as of yet.
2003-02-27 13:18:06 +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
chris
9b2c204ebc Update cyrus sasl to 2.1.10. As noted in pkg/19335.
Fixes a buffer overflow:
http://online.securityfocus.com/archive/1/302603

and other misc bugs.

(note .sig file checked and verified)
2002-12-11 23:48:58 +00:00
chris
8f034dce82 Match the default for the sasl socket dir, IE /var/run/saslauthd.
Also the dir is now root owned, but with 755 permissions, previously it was
cyrus owned.

Bump PKGREVISION to 2.
2002-11-23 14:44:53 +00:00
seb
3258c54477 Bump PKGREVISION:
- No need for /usr/lib/sasl2 anymore: INSTALL script removed, DEINSTALL
  script tuned.
- Removed auto* tools dependencies by providing patch files for generated
  configure and Makefile.in.
- Use ${PKGDIR} instead of ${.CURDIR} for PLIST_SRC files.
- `--with-rc4' does not need an argument.
- Use BUILDLINK_PREFIX.whatever instead of BUILDLINK_DIR.
- Fix GSSAPI build for non-current NetBSD, this includes patch-ag removal.
- Fix PLIST handling by providing PLIST.post (lib/sasl2 removal at deinstall
  time) and fixing PLIST.common (include/sasl removal at deinstall time).
- Bump BUILDLINK_DEPENDS.cyrus-sasl in buildlink2.mk.
- Work around problem introduced by LTCONFIG_OVERRIDE and direct usage
  of ac_cv_can_build_shared in configure.in as suggested by Nick Hudson.
  Remove patch-ab (sasl-config is gone btw, it was not needed anyway).
  This should fix plugins shared libs problem as reported -among other-
  in PR pkg/19001 by Stephen Degler <sdegler at degler dot net>.
2002-11-14 22:21:13 +00:00
chris
449b9f7388 Make it build again if you don't have SASL_USE_GSSAPI set anywhere. 2002-11-13 10:44:26 +00:00
chris
418f424ad3 Fix support for kerberos 5, it now compiles and installs properly when
SASL_USE_GSSAPI is defined to yes.  Note untested as I don't have kerberos
setup, it probably won't work until some patches are put in to fix plugins
not working.
2002-11-13 10:39:12 +00:00
seb
cdf4db798b Remove gmake dependency. 2002-10-27 23:32:36 +00:00
chris
ce6ee05b60 Initial import of cyrus-sasl 2.1.9.
This is the latest release of cyrus-sasl.  It is needed for the 2.1.x
versions of cyrus-imapd.

SASL is a method for adding authentication support to connection-based
protocols.  To use SASL, a protocol includes a command for identifying and
authenticating a user to a server and for optionally negotiating protection
of subsequent protocol interactions.  If its use is negotiated, a security
layer is inserted between the protocol and the connection.
2002-10-27 15:08:59 +00:00