pkgsrc/security/courier-authlib/Makefile
jlam 6d353a59db Update security/courier-authlib to 0.57. Changes from version 0.55
include:

	* authlib: create the authtest and authpasswd manual pages.

	* authdaemon.c (auth_generic): Silly bug in auth_generic().
	* authldaplib.c (auth_ldap_do3): Fix call of authcryptpasswd().
	* authpgsqllib.c (auth_pgsql_setpass): Ditto.
	* authmysqllib.c (auth_mysql_setpass): Ditto.
	* authmysqllib.c (auth_mysql_setpass): Fix a memory leak.
	* authpipe: more fixes to the authpipe module.
	* authpipe: various fixes to the authpipe module.
	* authpipe.c (auth_pipe_pre): Fix zombies created by the authpipe
	  module.
	* New authpipe authentication module.
	* authldap.schema: Add mailhost to the recommended LDAP schema.

	* README_authlib.sgml: Document updated authpipe protocol.

	* cryptpassword.c (authcryptpasswd): Fix handling of encryption hints.
	* checkpassword.c (do_authcheckpassword): Ignore {CRYPT} prefix on
	  crypted passwords.
	* checkpasswordsha1.c (authcheckpasswordsha1): Fix {SHA256} passwords.

	* authdaemond.c: Strip full name/gecos field after the first comma.
	* authdaemond: Pass LOGGEROPTS option to authdaemond.

	* liblog/logger.c: Fix wrong args to setuidgid().
	* liblog/logger.c: Added -droproot option to courierlogger.

	* liblock/lockdaemon.c: Try to recover if upgraded daemon process runs
	  under a different uid.

	* Changed -uid and -gid options to -user and -group for consistency
	  with couriertcpd. Change them to affect courierlogger itself,
	  after it has spawned any child.

	* Optional default domain for authentication requests.

	* Fix the error code when an empty password is provided.
2005-08-11 00:03:16 +00:00

106 lines
3.3 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2005/08/11 00:03:16 jlam Exp $
.include "Makefile.common"
DISTNAME= courier-authlib-0.57
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jlam@NetBSD.org
COMMENT= Courier Authentication Library
HOMEPAGE= http://www.courier-mta.org/authlib/
CONFLICTS+= courier-auth-[0-9]*
CONFLICTS+= courier-authldap-[0-9]*
CONFLICTS+= courier-authmysql-[0-9]*
CONFLICTS+= courier-authpgsql-[0-9]*
USE_LIBTOOL= yes
PKG_SYSCONFSUBDIR= authlib
REPLACE_PERL= samplepipe.pl sysconftool
USE_TOOLS+= cat:run gmake perl:run
CONFIGURE_ENV+= CAT=${TOOLS_CAT:Q} # makedat
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-pkgconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --without-stdheaderdir
AUTHDAEMONVAR?= ${VARBASE}/authdaemon
CONFIGURE_ARGS+= --with-authdaemonvar=${AUTHDAEMONVAR}
OWN_DIRS_PERMS= ${AUTHDAEMONVAR} ${COURIER_USER} ${COURIER_GROUP} 0750
FILES_SUBST+= AUTHDAEMONVAR=${AUTHDAEMONVAR}
# Expect is used to change the password from within the courier webmail
# application (sqwebmail).
#
CONFIGURE_ENV+= EXPECT=${LOCALBASE:Q}/bin/expect
AUTHLIBDIR= lib/courier-authlib
AUTHLIBEXECDIR= libexec/courier-authlib
AUTHEXAMPLEDIR= share/examples/courier-authlib
AUTHDOCDIR= share/doc/courier-authlib
FILES_SUBST+= AUTHLIBEXECDIR=${AUTHLIBEXECDIR}
FILES_SUBST+= AUTHEXAMPLEDIR=${AUTHEXAMPLEDIR}
PKG_SYSCONFSUBDIR?= courier
EGDIR= ${PREFIX}/${AUTHEXAMPLEDIR}
DOCDIR= ${PREFIX}/${AUTHDOCDIR}
RCD_SCRIPTS= authdaemond
GEN_FILES= authdaemonrc
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
AUTHLIB_PLIST= ${AUTHEXAMPLEDIR}/authdaemonrc.dist
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
# Install the example config files into ${EGDIR}.
INSTALL_AM_MAKEFLAGS= authdaemonrc=${EGDIR}/authdaemonrc \
authldaprc=${EGDIR}/authldaprc \
authmysqlrc=${EGDIR}/authmysqlrc \
authpgsqlrc=${EGDIR}/authpgsqlrc
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \
AM_MAKEFLAGS=${INSTALL_AM_MAKEFLAGS:Q}
POST_INSTALL_TARGETS= post-install-common post-install-authdaemon
.include "options.mk"
.include "../../devel/libltdl/buildlink3.mk"
.for _file_ in ${GEN_FILES}
CONF_FILES_PERMS+= ${EGDIR}/${_file_}.dist ${PKG_SYSCONFDIR}/${_file_} \
${COURIER_USER} ${COURIER_GROUP} 0660
.endfor
.for _file_ in ${AUTHLIB_PLIST}
GENERATE_PLIST+= ${TEST} -f ${PREFIX}/${_file_} && ${ECHO} "${_file_}";
.endfor
.if !empty(AUTHLIB_PLIST:M${AUTHEXAMPLEDIR}/*)
GENERATE_PLIST+= ${ECHO} "@dirrm ${AUTHEXAMPLEDIR}";
.endif
GENERATE_PLIST+= ${ECHO} "@dirrm ${AUTHDOCDIR}";
GENERATE_PLIST+= ${ECHO} "@dirrm ${AUTHLIBEXECDIR}";
GENERATE_PLIST+= ${ECHO} "@dirrm ${AUTHLIBDIR}";
INSTALLATION_DIRS= bin sbin
post-install: ${POST_INSTALL_TARGETS}
post-install-common:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_SCRIPT} ${WRKSRC}/makedat/makedat ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/authldap.schema ${EGDIR}
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL.html ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.authdebug.html ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.html ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README_authlib.html ${DOCDIR}
post-install-authdaemon:
${CHOWN} ${SHAREOWN}:${SHAREGRP} ${EGDIR}/authdaemonrc.dist
${CHMOD} ${SHAREMODE} ${EGDIR}/authdaemonrc.dist
.include "../../mk/bsd.pkg.mk"