2014-06-10 15:52:57 +02:00
|
|
|
# $NetBSD: pam.buildlink3.mk,v 1.12 2014/06/10 13:52:57 joerg Exp $
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
|
|
|
# This Makefile fragment is meant to be included by packages that
|
2007-08-14 19:48:53 +02:00
|
|
|
# require a PAM implementation.
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
2007-08-14 19:48:53 +02:00
|
|
|
# User-settable variables:
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
2007-08-14 19:48:53 +02:00
|
|
|
# PAM_DEFAULT
|
|
|
|
# The preferred PAM implementation.
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
2007-08-14 19:48:53 +02:00
|
|
|
# Possible: linux-pam openpam solaris-pam
|
2014-06-10 15:52:57 +02:00
|
|
|
# Default: (from the base system, fallback: openpam)
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
2007-08-14 19:48:53 +02:00
|
|
|
# Package-settable variables:
|
|
|
|
#
|
|
|
|
# System-provided variables:
|
|
|
|
#
|
|
|
|
# PAMBASE
|
|
|
|
# The directory where the PAM implementation is installed.
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
|
|
|
|
|
2007-10-13 13:04:15 +02:00
|
|
|
.include "bsd.fast.prefs.mk"
|
2005-01-14 06:15:39 +01:00
|
|
|
|
|
|
|
.if !empty(PAM_BUILDLINK3_MK:M+)
|
|
|
|
#
|
|
|
|
# This is an exhaustive list of all of the PAM implementations
|
2014-06-10 15:52:57 +02:00
|
|
|
# that may be used with pam.buildlink3.mk, in order of precedence.
|
2005-04-25 16:21:47 +02:00
|
|
|
|
2014-06-10 15:52:57 +02:00
|
|
|
_PAM_PKGS= openpam linux-pam solaris-pam
|
2005-01-14 06:15:39 +01:00
|
|
|
|
2014-06-10 15:52:57 +02:00
|
|
|
BUILDLINK_BUILTIN_MK.linux-pam= ../../mk/linux-pam.builtin.mk
|
2005-01-14 06:15:39 +01:00
|
|
|
BUILDLINK_BUILTIN_MK.openpam= ../../security/openpam/builtin.mk
|
|
|
|
BUILDLINK_BUILTIN_MK.solaris-pam= ../../mk/solaris-pam.builtin.mk
|
|
|
|
|
|
|
|
# If we have a particular PAM implementation in the base system, then
|
2014-06-10 15:52:57 +02:00
|
|
|
# default to using that PAM type. Otherwise, default to "openpam".
|
2005-01-14 06:15:39 +01:00
|
|
|
#
|
|
|
|
. for _pam_ in ${_PAM_PKGS}
|
|
|
|
. if exists(${BUILDLINK_BUILTIN_MK.${_pam_}})
|
|
|
|
CHECK_BUILTIN.${_pam_}:= yes
|
|
|
|
. include "${BUILDLINK_BUILTIN_MK.${_pam_}}"
|
2005-01-14 08:37:39 +01:00
|
|
|
. if defined(IS_BUILTIN.${_pam_}) && \
|
2005-06-16 19:40:56 +02:00
|
|
|
!empty(IS_BUILTIN.${_pam_}:M[yY][eE][sS])
|
2005-01-14 06:15:39 +01:00
|
|
|
PAM_DEFAULT?= ${_pam_}
|
|
|
|
. endif
|
|
|
|
CHECK_BUILTIN.${_pam_}:= no
|
|
|
|
. endif
|
|
|
|
. endfor
|
2014-06-10 15:52:57 +02:00
|
|
|
PAM_DEFAULT?= openpam
|
2005-01-14 06:15:39 +01:00
|
|
|
|
2014-06-10 15:52:57 +02:00
|
|
|
PAMBASE= ${BUILDLINK_PREFIX.${PAM_DEFAULT}}
|
2005-01-14 06:15:39 +01:00
|
|
|
|
2006-11-04 23:18:41 +01:00
|
|
|
BUILD_DEFS+= PAM_DEFAULT
|
2014-06-10 15:52:57 +02:00
|
|
|
BUILD_DEFS_EFFECTS+= PAMBASE
|
2005-01-14 06:15:39 +01:00
|
|
|
.endif # PAM_BUILDLINK3_MK
|
|
|
|
|
2014-06-10 15:52:57 +02:00
|
|
|
.if ${PAM_DEFAULT} == "openpam"
|
|
|
|
.include "../../security/openpam/buildlink3.mk"
|
|
|
|
.elif ${PAM_DEFAULT} == "linux-pam"
|
|
|
|
BUILDLINK_TREE+= linux-pam -linux-pam
|
|
|
|
.elif ${PAM_DEFAULT} == "solaris-pam"
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= solaris-pam -solaris-pam
|
2005-01-14 06:15:39 +01:00
|
|
|
.endif
|