2016-07-09 08:38:30 +02:00
|
|
|
# $NetBSD: Makefile,v 1.50 2016/07/09 06:38:54 wiz Exp $
|
2005-02-10 04:21:30 +01:00
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
2012-06-09 13:57:20 +02:00
|
|
|
DISTNAME= courier-authlib-0.64.0
|
2016-07-09 08:38:30 +02:00
|
|
|
PKGREVISION= 10
|
2005-02-10 04:21:30 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-02-10 04:50:03 +01:00
|
|
|
COMMENT= Courier Authentication Library
|
|
|
|
HOMEPAGE= http://www.courier-mta.org/authlib/
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= gnu-gpl-v3
|
2005-02-10 04:50:03 +01:00
|
|
|
|
2005-02-10 04:21:30 +01:00
|
|
|
CONFLICTS+= courier-auth-[0-9]*
|
|
|
|
CONFLICTS+= courier-authldap-[0-9]*
|
|
|
|
CONFLICTS+= courier-authmysql-[0-9]*
|
|
|
|
CONFLICTS+= courier-authpgsql-[0-9]*
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
LIBTOOLIZE_PLIST= yes
|
2005-02-10 04:21:30 +01:00
|
|
|
PKG_SYSCONFSUBDIR= authlib
|
|
|
|
|
2005-08-11 02:03:16 +02:00
|
|
|
REPLACE_PERL= samplepipe.pl sysconftool
|
|
|
|
|
2006-05-09 19:58:46 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2005-08-11 02:03:16 +02:00
|
|
|
USE_TOOLS+= cat:run gmake perl:run
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
CONFIGURE_ENV+= CAT=${TOOLS_CAT} # makedat
|
2005-02-10 04:21:30 +01:00
|
|
|
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
|
|
CONFIGURE_ARGS+= --with-pkgconfdir=${PKG_SYSCONFDIR}
|
2005-02-10 04:21:30 +01:00
|
|
|
CONFIGURE_ARGS+= --without-stdheaderdir
|
|
|
|
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-02-10 04:21:30 +01:00
|
|
|
AUTHDAEMONVAR?= ${VARBASE}/authdaemon
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-authdaemonvar=${AUTHDAEMONVAR:Q}
|
2005-02-10 04:21:30 +01:00
|
|
|
OWN_DIRS_PERMS= ${AUTHDAEMONVAR} ${COURIER_USER} ${COURIER_GROUP} 0750
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= AUTHDAEMONVAR=${AUTHDAEMONVAR:Q}
|
2005-02-10 04:21:30 +01:00
|
|
|
|
|
|
|
# Expect is used to change the password from within the courier webmail
|
2007-08-10 19:57:21 +02:00
|
|
|
# application (sqwebmail). Assume that it's installed in the same prefix
|
|
|
|
# as courier-authlib.
|
2005-02-10 04:21:30 +01:00
|
|
|
#
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
CONFIGURE_ENV+= EXPECT=${PREFIX}/bin/expect
|
2007-08-30 22:11:08 +02:00
|
|
|
CHECK_INTERPRETER_SKIP= libexec/courier-authlib/authsystem.passwd
|
2005-02-10 04:21:30 +01:00
|
|
|
|
|
|
|
AUTHLIBDIR= lib/courier-authlib
|
|
|
|
AUTHLIBEXECDIR= libexec/courier-authlib
|
|
|
|
AUTHEXAMPLEDIR= share/examples/courier-authlib
|
2005-02-26 23:14:01 +01:00
|
|
|
AUTHDOCDIR= share/doc/courier-authlib
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
FILES_SUBST+= AUTHLIBEXECDIR=${AUTHLIBEXECDIR}
|
|
|
|
FILES_SUBST+= AUTHEXAMPLEDIR=${AUTHEXAMPLEDIR}
|
2005-02-10 04:21:30 +01:00
|
|
|
|
2005-02-18 23:12:43 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= courier
|
|
|
|
|
2005-02-10 04:21:30 +01:00
|
|
|
EGDIR= ${PREFIX}/${AUTHEXAMPLEDIR}
|
2005-02-26 23:14:01 +01:00
|
|
|
DOCDIR= ${PREFIX}/${AUTHDOCDIR}
|
2005-02-10 04:21:30 +01:00
|
|
|
RCD_SCRIPTS= authdaemond
|
|
|
|
GEN_FILES= authdaemonrc
|
|
|
|
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
|
|
|
|
AUTHLIB_PLIST= ${AUTHEXAMPLEDIR}/authdaemonrc.dist
|
|
|
|
|
|
|
|
# Install the example config files into ${EGDIR}.
|
2005-05-13 05:26:44 +02:00
|
|
|
INSTALL_AM_MAKEFLAGS= authdaemonrc=${EGDIR}/authdaemonrc \
|
2005-02-10 04:21:30 +01:00
|
|
|
authldaprc=${EGDIR}/authldaprc \
|
|
|
|
authmysqlrc=${EGDIR}/authmysqlrc \
|
|
|
|
authpgsqlrc=${EGDIR}/authpgsqlrc
|
2005-05-13 05:26:44 +02:00
|
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \
|
|
|
|
AM_MAKEFLAGS=${INSTALL_AM_MAKEFLAGS:Q}
|
2005-02-10 04:21:30 +01:00
|
|
|
|
2005-08-11 02:03:16 +02:00
|
|
|
POST_INSTALL_TARGETS= post-install-common post-install-authdaemon
|
2005-02-26 23:14:01 +01:00
|
|
|
|
2005-02-10 04:21:30 +01:00
|
|
|
.include "options.mk"
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
|
|
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
.for file in ${GEN_FILES}
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${file}.dist ${PKG_SYSCONFDIR}/${file} \
|
2005-02-10 04:21:30 +01:00
|
|
|
${COURIER_USER} ${COURIER_GROUP} 0660
|
|
|
|
.endfor
|
|
|
|
|
Upgrade courier-authlib to version 0.61.0 in order to fix CVE-2008-2667,
finally. While here, fix PLIST and depkglint a bit. Also, fix the horrid
abuse of libtool.
Changes since 0.60.2:
* courier-authlib.spec: Dummy provides: for symlinks, to allow upgrade
with older packages that require <libname>.so.0.
* Makefile.am: Switch to versionless shared libraries.
Install all shared libraries just as <libname>.so. make install manually
removes *.so.0.0 files that were left over from previous versions,
and installs a temporary *.so.0 symlink to *.so, for temporary
binary ABI compatibility with 0.60. The symlinks will be removed in
0.62.
* Cleanup: always compile md5, sha* and hmac stuff, and remove all
conditionally-compiled cruft. Move SASL list to an internal header.
Add client-side support for AUTH EXTERNAL.
* authsasl.c (auth_sasl_ex): auth_sasl_ex() supercedes auth_sasl(),
invokes auth_sasl() for non-EXTERNAL SASL methods, implements EXTERNAL
by going through the motions, then setting up a dummy authentication
request.
* authdaemon.c (auth_generic): Check for the dummy EXTERNAL
authentication request, and handle it by invoking auth_getuserinfo(),
rather than sending it down the pipe. This avoid having to implement
a stub in every authentication module.
* authmysqllib.c: Use mysql_set_character_set() instead of SET NAMES
* authmysqllib.c: Fix domain-less queries.
* Makefile: Drop the unmaintained authvchkpw module.
* authmysqllib.c: Cleanup. Use mysql_real_escape_string instead of
crude filtering.
* Makefile.am: Use _LIBADD properly.
* configure.in: More portability fixes.
2008-09-29 00:15:30 +02:00
|
|
|
.for file in ${AUTHLIB_PLIST}
|
|
|
|
GENERATE_PLIST+= ${TEST} -f ${DESTDIR}${PREFIX}/${file} && \
|
|
|
|
${ECHO} "${file}";
|
2005-02-10 04:21:30 +01:00
|
|
|
.endfor
|
2009-06-27 06:16:57 +02:00
|
|
|
GENERATE_PLIST+= ${TRUE};
|
2005-02-10 04:21:30 +01:00
|
|
|
|
2014-06-14 12:14:43 +02:00
|
|
|
INSTALLATION_DIRS+= bin sbin
|
2005-02-10 04:21:30 +01:00
|
|
|
|
2005-02-26 23:14:01 +01:00
|
|
|
post-install: ${POST_INSTALL_TARGETS}
|
|
|
|
|
|
|
|
post-install-common:
|
2008-02-18 21:26:33 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL.html ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.authdebug.html ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.html ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README_authlib.html ${DESTDIR}${DOCDIR}
|
2005-02-10 04:21:30 +01:00
|
|
|
|
2005-08-11 02:03:16 +02:00
|
|
|
post-install-authdaemon:
|
2008-02-18 21:26:33 +01:00
|
|
|
${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${EGDIR}/authdaemonrc.dist
|
|
|
|
${CHMOD} ${SHAREMODE} ${DESTDIR}${EGDIR}/authdaemonrc.dist
|
2005-08-11 02:03:16 +02:00
|
|
|
|
2005-02-10 04:21:30 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|