pkgsrc/security/openpam/Makefile

55 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2018/08/27 08:59:52 triaxx Exp $
openpam: update to 20170430 * patch-lib_libpam_openpam__constants.c: * comment it (make pkglint happy) * fix OPENPAM_MODULES_DIR (avoid openpam loading basesystem modules) * remove "CONFIGURE_ARGS+= --without-pam-su" (option not recognized by configure) * change '_dep_' to 'dep' in builtin.mk (make pkglint happy) * fix paths in manpages Changes from upstream: ============================================================================ OpenPAM Resedacea 2017-04-30 - BUGFIX: Reinstore the NULL check in pam_end(3) which was removed in OpenPAM Radula, as it breaks common error-handling constructs. - BUGFIX: Return PAM_SYMBOL_ERR instead of PAM_SYSTEM_ERR from the dispatcher when the required service function could not be found. - ENHANCE: Introduce the PAM_BAD_HANDLE error code for when pamh is NULL in API functions that have a NULL check. - ENHANCE: Introduce the PAM_BAD_ITEM, PAM_BAD_FEATURE and PAM_BAD_CONSTANT error codes for situations where we previously incorrectly used PAM_SYMBOL_ERR to denote that an invalid constant had been passed to an API function. - ENHANCE: Improve the RETURN VALUES section in API man pages, especially for functions that cannot fail, which were incorrectly documented as returning -1 on failure. ============================================================================ OpenPAM Radula 2017-02-19 - BUGFIX: Fix an inverted test which prevented pam_get_authtok(3) and pam_get_user(3) from using application-provided custom prompts. - BUGFIX: Plug a memory leak in pam_set_item(3). - BUGFIX: Plug a potential memory leak in openpam_readlinev(3). - BUGFIX: In openpam_readword(3), support line continuations within whitespace. - ENHANCE: Add a feature flag to control fallback to "other" policy. - ENHANCE: Add a pam_return(8) module which returns an arbitrary code specified in the module options. - ENHANCE: More and better unit tests.
2018-05-15 09:57:32 +02:00
DISTNAME= openpam-20170430
2018-08-22 11:43:40 +02:00
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openpam/}
2006-03-14 17:23:46 +01:00
MAINTAINER= joerg@NetBSD.org
2017-09-03 10:53:04 +02:00
HOMEPAGE= https://www.openpam.org/
COMMENT= Open-source PAM library
LICENSE= modified-bsd
CONFLICTS+= PAM-[0-9]*
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-pam-unix
CONFIGURE_ARGS+= --with-modules-dir=${PREFIX}/lib/security
CPPFLAGS+= -DSYSCONFDIR=\"${PKG_SYSCONFDIR}\"
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES+= ${EGDIR}/pam.d/other ${PKG_SYSCONFDIR}/pam.d/other
CONF_FILES+= ${EGDIR}/pam.d/sudo ${PKG_SYSCONFDIR}/pam.d/sudo
OWN_DIRS= ${PKG_SYSCONFDIR}/pam.d
INSTALLATION_DIRS+= ${EGDIR}/pam.d
openpam: update to 20170430 * patch-lib_libpam_openpam__constants.c: * comment it (make pkglint happy) * fix OPENPAM_MODULES_DIR (avoid openpam loading basesystem modules) * remove "CONFIGURE_ARGS+= --without-pam-su" (option not recognized by configure) * change '_dep_' to 'dep' in builtin.mk (make pkglint happy) * fix paths in manpages Changes from upstream: ============================================================================ OpenPAM Resedacea 2017-04-30 - BUGFIX: Reinstore the NULL check in pam_end(3) which was removed in OpenPAM Radula, as it breaks common error-handling constructs. - BUGFIX: Return PAM_SYMBOL_ERR instead of PAM_SYSTEM_ERR from the dispatcher when the required service function could not be found. - ENHANCE: Introduce the PAM_BAD_HANDLE error code for when pamh is NULL in API functions that have a NULL check. - ENHANCE: Introduce the PAM_BAD_ITEM, PAM_BAD_FEATURE and PAM_BAD_CONSTANT error codes for situations where we previously incorrectly used PAM_SYMBOL_ERR to denote that an invalid constant had been passed to an API function. - ENHANCE: Improve the RETURN VALUES section in API man pages, especially for functions that cannot fail, which were incorrectly documented as returning -1 on failure. ============================================================================ OpenPAM Radula 2017-02-19 - BUGFIX: Fix an inverted test which prevented pam_get_authtok(3) and pam_get_user(3) from using application-provided custom prompts. - BUGFIX: Plug a memory leak in pam_set_item(3). - BUGFIX: Plug a potential memory leak in openpam_readlinev(3). - BUGFIX: In openpam_readword(3), support line continuations within whitespace. - ENHANCE: Add a feature flag to control fallback to "other" policy. - ENHANCE: Add a pam_return(8) module which returns an arbitrary code specified in the module options. - ENHANCE: More and better unit tests.
2018-05-15 09:57:32 +02:00
SUBST_CLASSES+= man
SUBST_MESSAGE.man= Fixing hardcoded paths in manpages.
SUBST_STAGE.man= post-build
SUBST_FILES.man= doc/man/pam.conf.5
SUBST_VARS.man= PKG_SYSCONFDIR PREFIX
post-extract:
${MKDIR} -p ${WRKSRC}/doc/pam.d
${CP} ${FILESDIR}/other ${WRKSRC}/doc/pam.d/other
${CP} ${FILESDIR}/sudo ${WRKSRC}/doc/pam.d/sudo
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/pam.d/other ${DESTDIR}${EGDIR}/pam.d/other
${INSTALL_DATA} ${WRKSRC}/doc/pam.d/sudo ${DESTDIR}${EGDIR}/pam.d/sudo
.include "../../mk/dlopen.buildlink3.mk"
# Create a fake perl binary to avoid recreating the man pages.
post-tools:
${RM} -f ${TOOLS_DIR}/bin/perl
${ECHO} "#!${TOOLS_SHELL}" > ${TOOLS_DIR}/bin/perl
${ECHO} "${TRUE}" >> ${TOOLS_DIR}/bin/perl
${CHMOD} +x ${TOOLS_DIR}/bin/perl
.include "../../mk/bsd.pkg.mk"