head	1.60;
access;
symbols
	RELENG_8_4:1.60.0.2
	RELENG_9_1_0_RELEASE:1.55.4.2.2.2
	RELENG_9_1:1.55.4.2.0.2
	RELENG_9_1_BP:1.55.4.2
	RELENG_8_3_0_RELEASE:1.55.2.1.8.1
	RELENG_8_3:1.55.2.1.0.8
	RELENG_8_3_BP:1.55.2.1
	RELENG_9_0_0_RELEASE:1.55.4.1.2.1
	RELENG_9_0:1.55.4.1.0.2
	RELENG_9_0_BP:1.55.4.1
	RELENG_9:1.55.0.4
	RELENG_9_BP:1.55
	RELENG_7_4_0_RELEASE:1.54.10.1.8.1
	RELENG_8_2_0_RELEASE:1.55.2.1.6.1
	RELENG_7_4:1.54.10.1.0.8
	RELENG_7_4_BP:1.54.10.1
	RELENG_8_2:1.55.2.1.0.6
	RELENG_8_2_BP:1.55.2.1
	RELENG_8_1_0_RELEASE:1.55.2.1.4.1
	RELENG_8_1:1.55.2.1.0.4
	RELENG_8_1_BP:1.55.2.1
	RELENG_7_3_0_RELEASE:1.54.10.1.6.1
	RELENG_7_3:1.54.10.1.0.6
	RELENG_7_3_BP:1.54.10.1
	RELENG_8_0_0_RELEASE:1.55.2.1.2.1
	RELENG_8_0:1.55.2.1.0.2
	RELENG_8_0_BP:1.55.2.1
	RELENG_8:1.55.0.2
	RELENG_8_BP:1.55
	RELENG_7_2_0_RELEASE:1.54.10.1.4.1
	RELENG_7_2:1.54.10.1.0.4
	RELENG_7_2_BP:1.54.10.1
	RELENG_7_1_0_RELEASE:1.54.10.1.2.1
	RELENG_6_4_0_RELEASE:1.54.2.1.2.1
	RELENG_7_1:1.54.10.1.0.2
	RELENG_7_1_BP:1.54.10.1
	RELENG_6_4:1.54.2.1.0.2
	RELENG_6_4_BP:1.54.2.1
	RELENG_7_0_0_RELEASE:1.54
	RELENG_6_3_0_RELEASE:1.54
	RELENG_7_0:1.54.0.14
	RELENG_7_0_BP:1.54
	RELENG_6_3:1.54.0.12
	RELENG_6_3_BP:1.54
	RELENG_7:1.54.0.10
	RELENG_7_BP:1.54
	RELENG_6_2_0_RELEASE:1.54
	RELENG_6_2:1.54.0.8
	RELENG_6_2_BP:1.54
	RELENG_5_5_0_RELEASE:1.50.2.1
	RELENG_5_5:1.50.2.1.0.4
	RELENG_5_5_BP:1.50.2.1
	RELENG_6_1_0_RELEASE:1.54
	RELENG_6_1:1.54.0.6
	RELENG_6_1_BP:1.54
	RELENG_6_0_0_RELEASE:1.54
	RELENG_6_0:1.54.0.4
	RELENG_6_0_BP:1.54
	RELENG_6:1.54.0.2
	RELENG_6_BP:1.54
	RELENG_5_4_0_RELEASE:1.50.2.1
	RELENG_5_4:1.50.2.1.0.2
	RELENG_5_4_BP:1.50.2.1
	RELENG_4_11_0_RELEASE:1.12.2.12
	RELENG_4_11:1.12.2.12.0.10
	RELENG_4_11_BP:1.12.2.12
	RELENG_5_3_0_RELEASE:1.50
	RELENG_5_3:1.50.0.4
	RELENG_5_3_BP:1.50
	RELENG_5:1.50.0.2
	RELENG_5_BP:1.50
	RELENG_4_10_0_RELEASE:1.12.2.12
	RELENG_4_10:1.12.2.12.0.8
	RELENG_4_10_BP:1.12.2.12
	RELENG_5_2_1_RELEASE:1.46
	RELENG_5_2_0_RELEASE:1.46
	RELENG_5_2:1.46.0.2
	RELENG_5_2_BP:1.46
	RELENG_4_9_0_RELEASE:1.12.2.12
	RELENG_4_9:1.12.2.12.0.6
	RELENG_4_9_BP:1.12.2.12
	RELENG_5_1_0_RELEASE:1.44
	RELENG_5_1:1.44.0.2
	RELENG_5_1_BP:1.44
	RELENG_4_8_0_RELEASE:1.12.2.12
	RELENG_4_8:1.12.2.12.0.4
	RELENG_4_8_BP:1.12.2.12
	RELENG_5_0_0_RELEASE:1.41
	RELENG_5_0:1.41.0.2
	RELENG_5_0_BP:1.41
	RELENG_4_7_0_RELEASE:1.12.2.12
	RELENG_4_7:1.12.2.12.0.2
	RELENG_4_7_BP:1.12.2.12
	RELENG_4_6_2_RELEASE:1.12.2.9.2.1
	RELENG_4_6_1_RELEASE:1.12.2.9.2.1
	RELENG_4_6_0_RELEASE:1.12.2.9
	RELENG_4_6:1.12.2.9.0.2
	RELENG_4_6_BP:1.12.2.9
	RELENG_4_5_0_RELEASE:1.12.2.8
	RELENG_4_5:1.12.2.8.0.2
	RELENG_4_5_BP:1.12.2.8
	RELENG_4_4_0_RELEASE:1.12.2.6
	RELENG_4_4:1.12.2.6.0.2
	RELENG_4_4_BP:1.12.2.6
	RELENG_4_3_0_RELEASE:1.12.2.1
	RELENG_4_3:1.12.2.1.0.2
	RELENG_4_3_BP:1.12.2.1
	RELENG_4_2_0_RELEASE:1.12.2.1
	RELENG_4_1_1_RELEASE:1.12.2.1
	PRE_SMPNG:1.13
	RELENG_4_1_0_RELEASE:1.12
	RELENG_3_5_0_RELEASE:1.4.2.2
	RELENG_4_0_0_RELEASE:1.12
	RELENG_4:1.12.0.2
	RELENG_4_BP:1.12
	RELENG_3_4_0_RELEASE:1.4.2.2
	RELENG_3_3_0_RELEASE:1.4.2.2
	RELENG_3_2_PAO:1.4.2.2.0.2
	RELENG_3_2_PAO_BP:1.4.2.2
	RELENG_3_2_0_RELEASE:1.4.2.2
	RELENG_3_1_0_RELEASE:1.4.2.1
	RELENG_3:1.4.0.2
	RELENG_3_BP:1.4
	juniper_1_0:1.1.1.1
	JUNIPER:1.1.1;
locks; strict;
comment	@# @;


1.60
date	2012.11.17.01.49.57;	author svnexp;	state Exp;
branches
	1.60.2.1;
next	1.59;

1.59
date	2012.05.26.17.10.16;	author des;	state Exp;
branches;
next	1.58;

1.58
date	2011.12.18.17.22.45;	author des;	state Exp;
branches;
next	1.57;

1.57
date	2011.10.22.14.08.21;	author des;	state Exp;
branches;
next	1.56;

1.56
date	2011.10.22.04.39.12;	author des;	state Exp;
branches;
next	1.55;

1.55
date	2007.12.21.12.00.15;	author des;	state Exp;
branches
	1.55.2.1
	1.55.4.1;
next	1.54;

1.54
date	2005.06.17.08.14.42;	author des;	state Exp;
branches
	1.54.2.1
	1.54.10.1;
next	1.53;

1.53
date	2005.02.01.10.21.07;	author des;	state Exp;
branches;
next	1.52;

1.52
date	2004.12.21.09.33.47;	author ru;	state Exp;
branches;
next	1.51;

1.51
date	2004.10.24.15.32.32;	author ru;	state Exp;
branches;
next	1.50;

1.50
date	2004.08.06.07.27.04;	author cperciva;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2004.07.28.05.45.56;	author kan;	state Exp;
branches;
next	1.48;

1.48
date	2004.01.18.14.58.07;	author ru;	state Exp;
branches;
next	1.47;

1.47
date	2004.01.13.17.38.42;	author ru;	state Exp;
branches;
next	1.46;

1.46
date	2003.06.01.12.54.51;	author des;	state Exp;
branches;
next	1.45;

1.45
date	2003.05.31.23.38.16;	author des;	state Exp;
branches;
next	1.44;

1.44
date	2003.05.05.21.15.35;	author des;	state Exp;
branches;
next	1.43;

1.43
date	2003.05.01.14.55.06;	author des;	state Exp;
branches;
next	1.42;

1.42
date	2003.03.09.20.06.34;	author obrien;	state Exp;
branches;
next	1.41;

1.41
date	2002.09.17.01.48.52;	author peter;	state Exp;
branches;
next	1.40;

1.40
date	2002.07.23.17.59.46;	author des;	state Exp;
branches;
next	1.39;

1.39
date	2002.05.24.13.22.15;	author des;	state Exp;
branches;
next	1.38;

1.38
date	2002.05.12.16.00.54;	author ru;	state Exp;
branches;
next	1.37;

1.37
date	2002.05.02.04.42.59;	author des;	state Exp;
branches;
next	1.36;

1.36
date	2002.04.17.05.46.41;	author ru;	state Exp;
branches;
next	1.35;

1.35
date	2002.04.16.12.52.22;	author ru;	state Exp;
branches;
next	1.34;

1.34
date	2002.04.14.18.30.27;	author des;	state Exp;
branches;
next	1.33;

1.33
date	2002.04.11.12.21.16;	author ru;	state Exp;
branches;
next	1.32;

1.32
date	2002.04.10.17.46.59;	author ru;	state Exp;
branches;
next	1.31;

1.31
date	2002.04.08.12.34.53;	author des;	state Exp;
branches;
next	1.30;

1.30
date	2002.03.14.23.27.57;	author des;	state Exp;
branches;
next	1.29;

1.29
date	2002.03.07.16.03.56;	author markm;	state Exp;
branches;
next	1.28;

1.28
date	2002.03.06.12.11.05;	author des;	state Exp;
branches;
next	1.27;

1.27
date	2002.03.05.21.56.06;	author des;	state Exp;
branches;
next	1.26;

1.26
date	2002.02.01.08.49.53;	author des;	state Exp;
branches;
next	1.25;

1.25
date	2002.01.23.15.54.08;	author ru;	state Exp;
branches;
next	1.24;

1.24
date	2002.01.21.20.43.01;	author des;	state Exp;
branches;
next	1.23;

1.23
date	2001.12.06.12.35.18;	author des;	state Exp;
branches;
next	1.22;

1.22
date	2001.12.05.16.27.41;	author des;	state Exp;
branches;
next	1.21;

1.21
date	2001.11.27.15.36.35;	author des;	state Exp;
branches;
next	1.20;

1.20
date	2001.07.09.18.14.43;	author markm;	state Exp;
branches;
next	1.19;

1.19
date	2001.06.14.01.13.30;	author peter;	state Exp;
branches;
next	1.18;

1.18
date	2001.06.04.19.47.50;	author markm;	state Exp;
branches;
next	1.17;

1.17
date	2001.05.14.11.23.56;	author markm;	state Exp;
branches;
next	1.16;

1.16
date	2001.05.04.20.40.53;	author green;	state Exp;
branches;
next	1.15;

1.15
date	2001.05.03.10.55.47;	author markm;	state Exp;
branches;
next	1.14;

1.14
date	2001.03.27.17.27.10;	author ru;	state Exp;
branches;
next	1.13;

1.13
date	2000.04.17.00.19.26;	author kris;	state Exp;
branches;
next	1.12;

1.12
date	2000.03.09.06.28.27;	author kris;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2000.02.28.21.00.48;	author markm;	state Exp;
branches;
next	1.10;

1.10
date	2000.02.26.12.26.25;	author sos;	state Exp;
branches;
next	1.9;

1.9
date	2000.02.24.22.24.33;	author markm;	state Exp;
branches;
next	1.8;

1.8
date	99.11.14.15.48.28;	author marcel;	state Exp;
branches;
next	1.7;

1.7
date	99.09.20.06.23.15;	author markm;	state Exp;
branches;
next	1.6;

1.6
date	99.05.08.01.59.23;	author jdp;	state Exp;
branches;
next	1.5;

1.5
date	99.01.22.12.43.42;	author jdp;	state Exp;
branches;
next	1.4;

1.4
date	99.01.20.21.55.22;	author jdp;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.01.11.16.08.02;	author jdp;	state Exp;
branches;
next	1.2;

1.2
date	98.11.22.19.33.22;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	98.11.18.01.44.37;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.60.2.1
date	2012.11.17.01.49.57;	author svnexp;	state dead;
branches;
next	1.60.2.2;

1.60.2.2
date	2013.03.28.13.03.18;	author svnexp;	state Exp;
branches;
next	;

1.55.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.55.2.1.2.1
	1.55.2.1.4.1
	1.55.2.1.6.1
	1.55.2.1.8.1;
next	1.55.2.2;

1.55.2.2
date	2012.11.17.10.36.09;	author svnexp;	state Exp;
branches;
next	;

1.55.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.55.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.55.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.55.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.55.2.1.8.2;

1.55.2.1.8.2
date	2012.11.17.08.24.50;	author svnexp;	state Exp;
branches;
next	;

1.55.4.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.55.4.1.2.1;
next	1.55.4.2;

1.55.4.2
date	2012.05.26.18.20.30;	author des;	state Exp;
branches
	1.55.4.2.2.1;
next	1.55.4.3;

1.55.4.3
date	2012.11.17.11.36.25;	author svnexp;	state Exp;
branches;
next	1.55.4.4;

1.55.4.4
date	2013.03.01.20.43.41;	author svnexp;	state Exp;
branches;
next	1.55.4.5;

1.55.4.5
date	2014.03.20.11.01.50;	author svnexp;	state Exp;
branches;
next	;

1.55.4.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.55.4.1.2.2;

1.55.4.1.2.2
date	2012.11.17.08.36.25;	author svnexp;	state Exp;
branches;
next	;

1.55.4.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.55.4.2.2.2;

1.55.4.2.2.2
date	2012.11.17.08.47.15;	author svnexp;	state Exp;
branches;
next	;

1.54.2.1
date	2008.08.23.09.02.17;	author des;	state Exp;
branches
	1.54.2.1.2.1;
next	1.54.2.2;

1.54.2.2
date	2012.11.17.07.40.28;	author svnexp;	state Exp;
branches;
next	;

1.54.2.1.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.54.10.1
date	2008.01.18.13.29.04;	author des;	state Exp;
branches
	1.54.10.1.2.1
	1.54.10.1.4.1
	1.54.10.1.6.1
	1.54.10.1.8.1;
next	1.54.10.2;

1.54.10.2
date	2012.11.17.08.02.56;	author svnexp;	state Exp;
branches;
next	;

1.54.10.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.54.10.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.54.10.1.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.54.10.1.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.54.10.1.8.2;

1.54.10.1.8.2
date	2012.11.17.08.16.49;	author svnexp;	state Exp;
branches;
next	;

1.50.2.1
date	2005.02.13.07.23.13;	author obrien;	state Exp;
branches;
next	;

1.12.2.1
date	2000.09.20.09.34.49;	author jkh;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2001.04.25.10.04.36;	author ru;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2001.06.07.09.37.02;	author markm;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2001.06.11.15.28.36;	author markm;	state Exp;
branches;
next	1.12.2.5;

1.12.2.5
date	2001.06.11.23.55.20;	author jkh;	state Exp;
branches;
next	1.12.2.6;

1.12.2.6
date	2001.06.12.08.50.18;	author markm;	state Exp;
branches;
next	1.12.2.7;

1.12.2.7
date	2001.09.28.03.26.23;	author green;	state Exp;
branches;
next	1.12.2.8;

1.12.2.8
date	2001.12.03.14.53.44;	author des;	state Exp;
branches;
next	1.12.2.9;

1.12.2.9
date	2002.03.07.17.08.23;	author des;	state Exp;
branches
	1.12.2.9.2.1;
next	1.12.2.10;

1.12.2.10
date	2002.07.03.21.35.18;	author des;	state Exp;
branches;
next	1.12.2.11;

1.12.2.11
date	2002.07.03.21.45.44;	author des;	state Exp;
branches;
next	1.12.2.12;

1.12.2.12
date	2002.07.22.14.21.49;	author ru;	state Exp;
branches;
next	1.12.2.13;

1.12.2.13
date	2012.11.17.07.23.58;	author svnexp;	state Exp;
branches;
next	;

1.12.2.9.2.1
date	2002.07.16.12.33.23;	author des;	state Exp;
branches;
next	;

1.4.2.1
date	99.01.22.18.41.00;	author jdp;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	99.05.08.21.31.43;	author jdp;	state Exp;
branches;
next	;

1.1.1.1
date	98.11.18.01.44.37;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.60
log
@Switching exporter and resync
@
text
@#-
# Copyright (c) 1998 Juniper Networks, Inc.
# All rights reserved.
# Copyright (c) 2002 Networks Associates Technology, Inc.
# All rights reserved.
#
# Portions of this software was developed for the FreeBSD Project by
# ThinkSec AS and NAI Labs, the Security Research Division of Network
# Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
# ("CBOSS"), as part of the DARPA CHATS research program.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote
#    products derived from this software without specific prior written
#    permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/lib/libpam/libpam/Makefile 236109 2012-05-26 17:10:16Z des $

OPENPAM=	${.CURDIR}/../../../contrib/openpam
.PATH: ${OPENPAM}/include ${OPENPAM}/lib ${OPENPAM}/doc/man

LIB=	pam
NO_PROFILE=

SRCS=	openpam_borrow_cred.c \
	openpam_check_owner_perms.c \
	openpam_configure.c \
	openpam_constants.c \
	openpam_dispatch.c \
	openpam_dynamic.c \
	openpam_features.c \
	openpam_findenv.c \
	openpam_free_data.c \
	openpam_free_envlist.c \
	openpam_get_feature.c \
	openpam_get_option.c \
	openpam_load.c \
	openpam_log.c \
	openpam_nullconv.c \
	openpam_readline.c \
	openpam_readlinev.c \
	openpam_readword.c \
	openpam_restore_cred.c \
	openpam_set_feature.c \
	openpam_set_option.c \
	openpam_straddch.c \
	openpam_subst.c \
	openpam_ttyconv.c \
	pam_acct_mgmt.c \
	pam_authenticate.c \
	pam_chauthtok.c \
	pam_close_session.c \
	pam_end.c \
	pam_error.c \
	pam_get_authtok.c \
	pam_get_data.c \
	pam_get_item.c \
	pam_get_user.c \
	pam_getenv.c \
	pam_getenvlist.c \
	pam_info.c \
	pam_open_session.c \
	pam_prompt.c \
	pam_putenv.c \
	pam_set_data.c \
	pam_set_item.c \
	pam_setcred.c \
	pam_setenv.c \
	pam_start.c \
	pam_strerror.c \
	pam_verror.c \
	pam_vinfo.c \
	pam_vprompt.c
# Local additions
SRCS+=	pam_debug_log.c

MAN=	openpam.3 \
	openpam_borrow_cred.3 \
	openpam_free_data.3 \
	openpam_free_envlist.3 \
	openpam_get_feature.3 \
	openpam_get_option.3 \
	openpam_log.3 \
	openpam_nullconv.3 \
	openpam_readline.3 \
	openpam_readlinev.3 \
	openpam_readword.3 \
	openpam_restore_cred.3 \
	openpam_set_feature.3 \
	openpam_set_option.3 \
	openpam_straddch.3 \
	openpam_subst.3 \
	openpam_ttyconv.3 \
	pam.3 \
	pam_acct_mgmt.3 \
	pam_authenticate.3 \
	pam_chauthtok.3 \
	pam_close_session.3 \
	pam_conv.3 \
	pam_end.3 \
	pam_error.3 \
	pam_get_authtok.3 \
	pam_get_data.3 \
	pam_get_item.3 \
	pam_get_user.3 \
	pam_getenv.3 \
	pam_getenvlist.3 \
	pam_info.3 \
	pam_open_session.3 \
	pam_prompt.3 \
	pam_putenv.3 \
	pam_set_data.3 \
	pam_set_item.3 \
	pam_setcred.3 \
	pam_setenv.3 \
	pam_sm_acct_mgmt.3 \
	pam_sm_authenticate.3 \
	pam_sm_chauthtok.3 \
	pam_sm_close_session.3 \
	pam_sm_open_session.3 \
	pam_sm_setcred.3 \
	pam_start.3 \
	pam_strerror.3 \
	pam_verror.3 \
	pam_vinfo.3 \
	pam_vprompt.3 \
	pam.conf.5

MLINKS=	pam.conf.5 pam.d.5

CSTD?= c99
CFLAGS+= -I${.CURDIR} -I${OPENPAM}/include
CFLAGS+= -DLIB_MAJ=${SHLIB_MAJOR}
CFLAGS+= -DOPENPAM_MODULES_DIR='"${PAM_MOD_DIR:C/\/*$//}/"'
CFLAGS+= -DHAVE_FDLOPEN=1
CFLAGS+= -DHAVE_FPURGE=1
CFLAGS+= -DHAVE_STRLCAT=1
CFLAGS+= -DHAVE_STRLCPY=1

HEADERS=	security/openpam.h \
		security/openpam_attr.h \
		security/openpam_version.h \
		security/pam_appl.h \
		security/pam_constants.h \
		security/pam_modules.h \
		security/pam_types.h \

ADD_HEADERS=	security/pam_mod_misc.h

#
# Static modules
#
# We build static versions of all modules and of openpam_static.o,
# then link them all together into openpam_static_modules.o.  None of
# the modules export any symbols, but they store structures with
# pointers to their service functions in a linker set which the code
# in openpam_static.c traverses to locate the individual modules.
#
MODULE_DIR=	../modules
.include "${.CURDIR}/${MODULE_DIR}/modules.inc"
STATIC_MODULES=	${MODULES:C/.*/${MODULE_DIR}\/&\/lib&.a/}
STATICOBJS+=	openpam_static_modules.o
CLEANFILES+=	openpam_static.o \
		openpam_static_modules.o

openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
	${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}

# We can't put openpam_static.c in SRCS, but we still want to scan it
# for dependencies.
DPSRCS=		openpam_static.c

# Headers
INCS=		${HEADERS} ${ADD_HEADERS}
INCSDIR=	${INCLUDEDIR}/security

.include <bsd.lib.mk>
@


1.60.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:18 +0000
@
text
@d1 196
@


1.60.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 169
#-
# Copyright (c) 1998 Juniper Networks, Inc.
# All rights reserved.
# Copyright (c) 2002 Networks Associates Technology, Inc.
# All rights reserved.
#
# Portions of this software was developed for the FreeBSD Project by
# ThinkSec AS and NAI Labs, the Security Research Division of Network
# Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
# ("CBOSS"), as part of the DARPA CHATS research program.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote
#    products derived from this software without specific prior written
#    permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: releng/8.4/lib/libpam/libpam/Makefile 174837 2007-12-21 12:00:16Z des $

OPENPAM=	${.CURDIR}/../../../contrib/openpam
.PATH: ${OPENPAM}/include ${OPENPAM}/lib ${OPENPAM}/doc/man

LIB=	pam
NO_PROFILE=

SRCS=	openpam_borrow_cred.c \
	openpam_configure.c \
	openpam_dispatch.c \
	openpam_dynamic.c \
	openpam_findenv.c \
	openpam_free_data.c \
	openpam_free_envlist.c \
	openpam_get_option.c \
	openpam_load.c \
	openpam_log.c \
	openpam_nullconv.c \
	openpam_readline.c \
	openpam_restore_cred.c \
	openpam_set_option.c \
	openpam_ttyconv.c \
	pam_acct_mgmt.c \
	pam_authenticate.c \
	pam_chauthtok.c \
	pam_close_session.c \
	pam_end.c \
	pam_error.c \
	pam_get_authtok.c \
	pam_get_data.c \
	pam_get_item.c \
	pam_get_user.c \
	pam_getenv.c \
	pam_getenvlist.c \
	pam_info.c \
	pam_open_session.c \
	pam_prompt.c \
	pam_putenv.c \
	pam_set_data.c \
	pam_set_item.c \
	pam_setcred.c \
	pam_setenv.c \
	pam_start.c \
	pam_strerror.c \
	pam_verror.c \
	pam_vinfo.c \
	pam_vprompt.c
# Local additions
SRCS+=	pam_debug_log.c

MAN=	openpam.3 \
	openpam_borrow_cred.3 \
	openpam_free_data.3 \
	openpam_free_envlist.3 \
	openpam_get_option.3 \
	openpam_log.3 \
	openpam_nullconv.3 \
	openpam_readline.3 \
	openpam_restore_cred.3 \
	openpam_set_option.3 \
	openpam_ttyconv.3 \
	pam.3 \
	pam_acct_mgmt.3 \
	pam_authenticate.3 \
	pam_chauthtok.3 \
	pam_close_session.3 \
	pam_conv.3 \
	pam_end.3 \
	pam_error.3 \
	pam_get_authtok.3 \
	pam_get_data.3 \
	pam_get_item.3 \
	pam_get_user.3 \
	pam_getenv.3 \
	pam_getenvlist.3 \
	pam_info.3 \
	pam_open_session.3 \
	pam_prompt.3 \
	pam_putenv.3 \
	pam_set_data.3 \
	pam_set_item.3 \
	pam_setcred.3 \
	pam_setenv.3 \
	pam_sm_acct_mgmt.3 \
	pam_sm_authenticate.3 \
	pam_sm_chauthtok.3 \
	pam_sm_close_session.3 \
	pam_sm_open_session.3 \
	pam_sm_setcred.3 \
	pam_start.3 \
	pam_strerror.3 \
	pam_verror.3 \
	pam_vinfo.3 \
	pam_vprompt.3 \
	pam.conf.5

MLINKS=	pam.conf.5 pam.d.5

CSTD?= c99
WARNS?=	3
CFLAGS+= -I${.CURDIR} -I${OPENPAM}/include
CFLAGS+= -DLIB_MAJ=${SHLIB_MAJOR}
CFLAGS+= -DOPENPAM_MODULES_DIR='"${PAM_MOD_DIR:C/\/*$//}/"'

HEADERS=	security/openpam.h \
		security/openpam_attr.h \
		security/openpam_version.h \
		security/pam_appl.h \
		security/pam_constants.h \
		security/pam_modules.h \
		security/pam_types.h \

ADD_HEADERS=	security/pam_mod_misc.h

# Static modules
MODULE_DIR=	../modules
.include "${.CURDIR}/${MODULE_DIR}/modules.inc"
STATIC_MODULES=	${MODULES:C/.*/${MODULE_DIR}\/&\/lib&.a/}
STATICOBJS+=	openpam_static_modules.o
CLEANFILES+=	openpam_static.o \
		openpam_static_modules.o

openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
	${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}

# Can't put openpam_static.c in SRCS but want .o in .depend.
DPSRCS=		openpam_static.c

# Headers
INCS=		${HEADERS} ${ADD_HEADERS}
INCSDIR=	${INCLUDEDIR}/security

.include <bsd.lib.mk>
@


1.59
log
@SVN rev 236109 on 2012-05-26 17:10:16Z by des

Update to OpenPAM Micrampelis.
@
text
@d36 1
a36 1
# $FreeBSD$
@


1.58
log
@SVN rev 228692 on 2011-12-18 17:22:45Z by des

Upgrade to OpenPAM Lycopsida.
@
text
@d50 1
d54 1
d60 2
d63 1
d65 1
d100 1
d105 2
d108 1
d110 1
a150 1
WARNS?=	3
d154 4
a157 1
CFLAGS+= -DHAVE_FPURGE=1 -DHAVE_STRLCPY=1
@


1.57
log
@SVN rev 226632 on 2011-10-22 14:08:21Z by des

Revert the previous commit and add a comment explaining why it was wrong.
@
text
@d45 1
d47 1
d60 1
d100 1
d144 1
@


1.56
log
@SVN rev 226625 on 2011-10-22 04:39:12Z by des

openpam_static.c isn't auto-generated.
@
text
@a57 1
	openpam_static.c \
d151 1
d153 7
d164 2
a165 1
CLEANFILES+=	openpam_static_modules.o
d170 4
@


1.55
log
@Adjust for OpenPAM Hydrangea.
@
text
@d58 1
d157 1
a157 2
CLEANFILES+=	openpam_static.o \
		openpam_static_modules.o
a161 3
# Can't put openpam_static.c in SRCS but want .o in .depend.
DPSRCS=		openpam_static.c

@


1.55.4.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.55.4.2
log
@SVN rev 236116 on 2012-05-26 18:20:30Z by des

MFH r226625, 226632: document what openpam_static.c is for
@
text
@a150 1
#
a151 7
#
# We build static versions of all modules and of openpam_static.o,
# then link them all together into openpam_static_modules.o.  None of
# the modules export any symbols, but they store structures with
# pointers to their service functions in a linker set which the code
# in openpam_static.c traverses to locate the individual modules.
#
d162 1
a162 2
# We can't put openpam_static.c in SRCS, but we still want to scan it
# for dependencies.
@


1.55.4.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d36 1
a36 1
# $FreeBSD: stable/9/lib/libpam/libpam/Makefile 236116 2012-05-26 18:20:30Z des $
@


1.55.4.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/247568
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d36 1
a36 1
# $FreeBSD: stable/9/lib/libpam/libpam/Makefile 247568 2013-03-01 19:42:50Z des $
a44 1
	openpam_check_owner_perms.c \
a45 1
	openpam_constants.c \
a47 1
	openpam_features.c \
a50 1
	openpam_get_feature.c \
a55 2
	openpam_readlinev.c \
	openpam_readword.c \
a56 1
	openpam_set_feature.c \
a57 2
	openpam_straddch.c \
	openpam_subst.c \
a90 1
	openpam_get_feature.3 \
a94 2
	openpam_readlinev.3 \
	openpam_readword.3 \
a95 1
	openpam_set_feature.3 \
a96 2
	openpam_straddch.3 \
	openpam_subst.3 \
d136 1
a139 4
CFLAGS+= -DHAVE_FDLOPEN=1
CFLAGS+= -DHAVE_FPURGE=1
CFLAGS+= -DHAVE_STRLCAT=1
CFLAGS+= -DHAVE_STRLCPY=1
@


1.55.4.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263421
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d36 1
a36 1
# $FreeBSD: stable/9/lib/libpam/libpam/Makefile 263421 2014-03-20 10:56:05Z des $
d39 1
a39 1
.PATH: ${OPENPAM}/include ${OPENPAM}/lib/libpam ${OPENPAM}/doc/man
d44 1
a44 2
SRCS=	openpam_asprintf.c \
	openpam_borrow_cred.c \
a65 2
	openpam_strlcat.c \
	openpam_strlcpy.c \
a67 1
	openpam_vasprintf.c \
a153 1
CFLAGS+= -DHAVE_DLFUNC=1
@


1.55.4.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.55.4.2.2.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: releng/9.1/lib/libpam/libpam/Makefile 236116 2012-05-26 18:20:30Z des $
@


1.55.4.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.55.4.1.2.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: releng/9.0/lib/libpam/libpam/Makefile 174837 2007-12-21 12:00:16Z des $
@


1.55.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.55.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d36 1
a36 1
# $FreeBSD: stable/8/lib/libpam/libpam/Makefile 174837 2007-12-21 12:00:16Z des $
@


1.55.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.55.2.1.8.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: releng/8.3/lib/libpam/libpam/Makefile 174837 2007-12-21 12:00:16Z des $
@


1.55.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.55.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.55.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.54
log
@Update for OpenPAM Figwort.

Approved by:	re (kensmith)
@
text
@d142 1
@


1.54.2.1
log
@SVN rev 182040 on 2008-08-23 09:02:17Z by des

MFH OpenPAM Hydrangea
@
text
@a141 1
		security/openpam_attr.h \
@


1.54.2.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: stable/6/lib/libpam/libpam/Makefile 182040 2008-08-23 09:02:17Z des $
@


1.54.2.1.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.54.10.1
log
@MFC: OpenPAM Hydrangea
@
text
@a141 1
		security/openpam_attr.h \
@


1.54.10.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: stable/7/lib/libpam/libpam/Makefile 175443 2008-01-18 13:29:05Z des $
@


1.54.10.1.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.54.10.1.8.2
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: releng/7.4/lib/libpam/libpam/Makefile 175443 2008-01-18 13:29:05Z des $
@


1.54.10.1.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.54.10.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.54.10.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.53
log
@Add openpam_free_envlist(3).
@
text
@d130 4
a133 1
	pam_vprompt.3
d139 1
@


1.52
log
@NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
@
text
@d50 1
d90 1
@


1.51
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d42 1
a42 1
NOPROFILE=
@


1.50
log
@Join the 21st century: Cryptography is no longer an optional component
of releases.  The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by:	re (scottl), markm
Discussed on:	freebsd-current, in late April 2004
@
text
@d42 1
a42 1
NOPROFILE=	YES
@


1.50.2.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d42 1
a42 1
NOPROFILE=
@


1.49
log
@Downgrade WARNS level for GCC 3.4.2.
@
text
@a43 4
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
DISTRIBUTION=	crypto
.endif

@


1.48
log
@Deal better with the crypto version of the PAM library that goes
on the release media -- only put what is different in the crypto
version compared to the base version.  This reduces PAM entries
in /usr/lib in the "crypto" distribution to:

	libpam.a
	libpam.so@@
	libpam.so.2
	pam_krb5.so@@
	pam_krb5.so.2
	pam_ksu.so@@
	pam_ksu.so.2
	pam_ssh.so@@
	pam_ssh.so.2

The libpam.so* is still redundant (it is identical to the "base"
version), but we can't set DISTRIBUTION differently for libpam.a
and libpam.so.

(The removal of libpam.so* from the crypto distribution could be
addressed by the release/scripts/crypto-make.sh script, but then
we'd also need to remove redundant PAM headers, and I'm not sure
this is worth a hassle.)
@
text
@d135 1
a135 1
WARNS?=	6
@


1.47
log
@bsd.dep.mk,v 1.43 allows us to replace a hack with a solution.
@
text
@d44 4
@


1.46
log
@Add openpam_readline(3).
@
text
@d155 3
a162 3

# Can't put openpam_static.c in SRCS but want it in .depend.
${DEPENDFILE}: openpam_static.c
@


1.45
log
@Don't build pam_std_option().
@
text
@d54 1
d92 1
@


1.44
log
@OpenPAM is WANRS6-clean.
@
text
@d83 1
a83 2
SRCS+=	pam_debug_log.c \
	pam_std_option.c
@


1.43
log
@Mark libpam as c99- and WARNS5-clean.
@
text
@d130 1
a130 1
WARNS?=	5
@


1.42
log
@style.Makefile(5) police
(I've tried to keep to the spirit of the original formatting)

Reviewed by:	des
@
text
@d129 2
a130 1
WARNS?=	4
@


1.41
log
@Initiate deorbit burn for the i386-only a.out related support.  Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
@
text
@a36 1
#
d38 2
a39 1
OPENPAM		 = ${.CURDIR}/../../../contrib/openpam
d41 2
a42 90
LIB		 = pam

CFLAGS		+= -I${.CURDIR} -I${OPENPAM}/include
CFLAGS		+= -DLIB_MAJ=${SHLIB_MAJOR}
NOPROFILE	 = YES
WARNS		?= 4

SRCS		 =
SRCS		+= openpam_borrow_cred.c
SRCS		+= openpam_configure.c
SRCS		+= openpam_dispatch.c
SRCS		+= openpam_dynamic.c
SRCS		+= openpam_findenv.c
SRCS		+= openpam_free_data.c
SRCS		+= openpam_get_option.c
SRCS		+= openpam_load.c
SRCS		+= openpam_log.c
SRCS		+= openpam_nullconv.c
SRCS		+= openpam_restore_cred.c
SRCS		+= openpam_set_option.c
SRCS		+= openpam_ttyconv.c
SRCS		+= pam_acct_mgmt.c
SRCS		+= pam_authenticate.c
SRCS		+= pam_chauthtok.c
SRCS		+= pam_close_session.c
SRCS		+= pam_end.c
SRCS		+= pam_error.c
SRCS		+= pam_get_authtok.c
SRCS		+= pam_get_data.c
SRCS		+= pam_get_item.c
SRCS		+= pam_get_user.c
SRCS		+= pam_getenv.c
SRCS		+= pam_getenvlist.c
SRCS		+= pam_info.c
SRCS		+= pam_open_session.c
SRCS		+= pam_prompt.c
SRCS		+= pam_putenv.c
SRCS		+= pam_set_data.c
SRCS		+= pam_set_item.c
SRCS		+= pam_setcred.c
SRCS		+= pam_setenv.c
SRCS		+= pam_start.c
SRCS		+= pam_strerror.c
SRCS		+= pam_verror.c
SRCS		+= pam_vinfo.c
SRCS		+= pam_vprompt.c

MAN		 =
MAN		+= openpam.3
MAN		+= openpam_borrow_cred.3
MAN		+= openpam_free_data.3
MAN		+= openpam_get_option.3
MAN		+= openpam_log.3
MAN		+= openpam_nullconv.3
MAN		+= openpam_restore_cred.3
MAN		+= openpam_set_option.3
MAN		+= openpam_ttyconv.3
MAN		+= pam.3
MAN		+= pam_acct_mgmt.3
MAN		+= pam_authenticate.3
MAN		+= pam_chauthtok.3
MAN		+= pam_close_session.3
MAN		+= pam_conv.3
MAN		+= pam_end.3
MAN		+= pam_error.3
MAN		+= pam_get_authtok.3
MAN		+= pam_get_data.3
MAN		+= pam_get_item.3
MAN		+= pam_get_user.3
MAN		+= pam_getenv.3
MAN		+= pam_getenvlist.3
MAN		+= pam_info.3
MAN		+= pam_open_session.3
MAN		+= pam_prompt.3
MAN		+= pam_putenv.3
MAN		+= pam_set_data.3
MAN		+= pam_set_item.3
MAN		+= pam_setcred.3
MAN		+= pam_setenv.3
MAN		+= pam_sm_acct_mgmt.3
MAN		+= pam_sm_authenticate.3
MAN		+= pam_sm_chauthtok.3
MAN		+= pam_sm_close_session.3
MAN		+= pam_sm_open_session.3
MAN		+= pam_sm_setcred.3
MAN		+= pam_start.3
MAN		+= pam_strerror.3
MAN		+= pam_verror.3
MAN		+= pam_vinfo.3
MAN		+= pam_vprompt.3
d44 38
d83 2
a84 2
SRCS		+= pam_debug_log.c
SRCS		+= pam_std_option.c
d86 53
a138 7
HEADERS		 =
HEADERS		+= security/openpam.h
HEADERS		+= security/openpam_version.h
HEADERS		+= security/pam_appl.h
HEADERS		+= security/pam_constants.h
HEADERS		+= security/pam_modules.h
HEADERS		+= security/pam_types.h
d140 1
a140 1
ADD_HEADERS	 = security/pam_mod_misc.h
d143 1
a143 1
MODULE_DIR	 = ../modules
d145 4
a148 5
STATIC_MODULES	 = ${MODULES:C/.*/${MODULE_DIR}\/&\/lib&.a/}
STATICOBJS	+= openpam_static_modules.o
CLEANFILES	+= openpam_static.o

CLEANFILES+=	openpam_static_modules.o
a157 3
.PATH: ${OPENPAM}/include
.PATH: ${OPENPAM}/lib
.PATH: ${OPENPAM}/doc/man
@


1.40
log
@Install more man pages - I thought I'd committed this ages ago...
@
text
@a155 1
.if ${OBJFORMAT} == elf
a156 3
.else
	${LD} -o ${.TARGET} -r -Bforcearchive ${.ALLSRC}
.endif
@


1.39
log
@Add openpam_nullconv.3.
@
text
@d89 1
d103 1
d128 3
@


1.38
log
@Added new bsd.incs.mk which handles installing of header files
via INCS.  Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files.  Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1.  Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

	kerberos5/lib/libtelnet/Makefile
	lib/libbz2/Makefile
	lib/libdevinfo/Makefile
	lib/libform/Makefile
	lib/libisc/Makefile
	lib/libmenu/Makefile
	lib/libmilter/Makefile
	lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD.  Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".
@
text
@d93 1
@


1.37
log
@Add openpam_nullconv.c to SRCS.
@
text
@d138 1
a138 1
ADD_HEADERS	 = pam_mod_misc.h
d157 2
a158 9
beforeinstall:
.for HEADER in ${HEADERS}
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${OPENPAM}/include/${HEADER} ${DESTDIR}/usr/include/${HEADER}
.endfor
.for HEADER in ${ADD_HEADERS}
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${.CURDIR}/security/${HEADER} ${DESTDIR}/usr/include/security/${HEADER}
.endfor
@


1.36
log
@Revert previous change.  bsd.dep.mk,v 1.31 had a bug that was fixed
in revision 1.32 and made this change OBE.
@
text
@d58 1
@


1.35
log
@Reflect change in share/mk/bsd.dep.mk,v 1.31.
@
text
@d171 2
a172 2
# XXX Can't put openpam_static.c in SRCS but want it in .depend.
_MKDEP: openpam_static.c
@


1.34
log
@New files in OpenPAM Cineraria.

Sponsored by:	DARPA, NAI Labs
@
text
@d171 2
a172 2
# Can't put openpam_static.c in SRCS but want it in .depend.
${DEPENDFILE}: openpam_static.c
@


1.33
log
@Reimplement the hack to put pam_static.o into .depend with some magic.
@
text
@d50 1
d131 1
@


1.32
log
@Don't override standard _EXTRADEPEND actions, add to them.
Fix CLEANFILES.
Collapse openpam_static_modules.o generation.
@
text
@a143 7
# We want to add to _EXTRADEPEND actions, not to override them.
_EXTRADEPEND: _EXTRADEPEND_openpam_static.c
_EXTRADEPEND_openpam_static.c: openpam_static.c
	${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
	    ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BID]*} \
	    ${.ALLSRC}

d168 3
@


1.31
log
@Add new files and man pages from OpenPAM Cinchona.

Sponsored by:	DARPA, NAI Labs
@
text
@d144 3
a146 1
_EXTRADEPEND: openpam_static.c
d151 1
a151 3
.if ${OBJFORMAT} == elf
CLEANFILES+=	setdef0.o openpam_static_modules.o setdef1.o \
		setdef0.c setdef1.c setdefs.h
d154 1
a156 1
openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
@


1.30
log
@NAI DBA update.
@
text
@d49 1
d53 1
d57 1
d87 2
d91 1
@


1.29
log
@Fix build for OpenPAM. The directories needed tweeking.
@
text
@d4 1
a4 1
# Copyright (c) 2002 Networks Associates Technologies, Inc.
@


1.28
log
@Add forgotten NOPROFILE that broke world.
@
text
@d162 1
a162 1
	    ${.CURDIR}/${HEADER} ${DESTDIR}/usr/include/security/${HEADER}
@


1.27
log
@Switch to OpenPAM.  Bump library version.  Modules are now versioned, so
applications linked with Linux-PAM will still work.
Remove pam_get_pass(); OpenPAM has pam_get_authtok().
Remove pam_prompt(); OpenPAM has pam_{,v}{error,info,prompt}().
Remove pam_set_item(3) man page as OpenPAM has its own.

Sponsored by:	DARPA, NAI Labs
@
text
@d45 1
@


1.26
log
@Connect the pam_lastlog(8) and pam_login_access(8) modules to the build.

Sponsored by:	DARPA, NAI Labs
@
text
@d1 2
a2 1
# Copyright 1998 Juniper Networks, Inc.
d4 7
d20 3
d36 2
a37 4
#	$FreeBSD$

LIBPAM_VERSION_MAJOR=	0
LIBPAM_VERSION_MINOR=	75
d39 1
a39 2
PAMDIR=		${.CURDIR}/../../../contrib/libpam
MODOBJDIR=	../modules
d41 1
a41 64
.PATH:		${PAMDIR}/libpam ${PAMDIR}/libpam_misc ${PAMDIR}/doc/man

LIB=		pam
CFLAGS+=	-I${PAMDIR}/libpam/include -I${PAMDIR}/libpam_misc/include \
		-I${PAMDIR}/libpamc/include -I. -I${.CURDIR}
CFLAGS+=	-DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\" \
		-DLIBPAM_VERSION_MAJOR=${LIBPAM_VERSION_MAJOR} \
		-DLIBPAM_VERSION_MINOR=${LIBPAM_VERSION_MINOR}
NOPROFILE=	yes

# Files from ${PAMDIR}/libpam:
SRCS=		pam_account.c pam_auth.c pam_data.c pam_delay.c \
		pam_dispatch.c pam_end.c pam_env.c pam_handlers.c \
		pam_item.c pam_log.c pam_misc.c pam_password.c \
		pam_second.c pam_session.c pam_start.c \
		pam_strerror.c
HDRS1=		_pam_compat.h _pam_macros.h _pam_types.h \
		pam_appl.h pam_malloc.h pam_modules.h
MAN+=		pam_authenticate.3 pam_chauthtok.3 pam_fail_delay.3 \
		pam_open_session.3 pam_setcred.3 pam_start.3 \
		pam_strerror.3
MLINKS+=	pam_open_session.3 pam_close_session.3 \
		pam_start.3 pam_end.3
MAN+=		pam.8
MLINKS+=	pam.8 pam.conf.5 pam.8 pam.d.5

# Files from ${PAMDIR}/libpamc:
HDRS0=		pam_client.h

# Files from ${PAMDIR}/libpam_misc:
SRCS+=		help_env.c misc_conv.c
HDRS2=		pam_misc.h

# Files from ${.CURDIR}:
SRCS+=		pam_get_pass.c pam_prompt.c pam_std_option.c pam_debug_log.c
HDRS3=		pam_mod_misc.h
MAN+=		pam_set_item.3
MLINKS+=	pam_set_item.3 pam_get_item.3

# Static PAM modules:
STATIC_MODULES+= ${MODOBJDIR}/pam_deny/libpam_deny.a
STATIC_MODULES+= ${MODOBJDIR}/pam_ftp/libpam_ftp.a
.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
STATIC_MODULES+= ${MODOBJDIR}/pam_kerberosIV/libpam_kerberosIV.a
.endif
.if defined(MAKE_KERBEROS5) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
STATIC_MODULES+= ${MODOBJDIR}/pam_krb5/libpam_krb5.a
.endif
STATIC_MODULES+= ${MODOBJDIR}/pam_lastlog/libpam_lastlog.a
STATIC_MODULES+= ${MODOBJDIR}/pam_login_access/libpam_login_access.a
STATIC_MODULES+= ${MODOBJDIR}/pam_nologin/libpam_nologin.a
STATIC_MODULES+= ${MODOBJDIR}/pam_opie/libpam_opie.a
STATIC_MODULES+= ${MODOBJDIR}/pam_opieaccess/libpam_opieaccess.a
STATIC_MODULES+= ${MODOBJDIR}/pam_permit/libpam_permit.a
STATIC_MODULES+= ${MODOBJDIR}/pam_radius/libpam_radius.a
STATIC_MODULES+= ${MODOBJDIR}/pam_rootok/libpam_rootok.a
STATIC_MODULES+= ${MODOBJDIR}/pam_securetty/libpam_securetty.a
STATIC_MODULES+= ${MODOBJDIR}/pam_self/libpam_self.a
.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_OPENSSH)
STATIC_MODULES+= ${MODOBJDIR}/pam_ssh/libpam_ssh.a
.endif
STATIC_MODULES+= ${MODOBJDIR}/pam_tacplus/libpam_tacplus.a
STATIC_MODULES+= ${MODOBJDIR}/pam_unix/libpam_unix.a
STATIC_MODULES+= ${MODOBJDIR}/pam_wheel/libpam_wheel.a
d43 93
a135 2
STATICOBJS+=	pam_static_modules.o
CLEANFILES+=	pam_static.o
d137 1
a137 1
_EXTRADEPEND:	pam_static.c
d143 1
a143 1
CLEANFILES+=	setdef0.o _pam_static_modules.o setdef1.o \
d146 1
a146 1
pam_static_modules.o:	pam_static.o ${STATIC_MODULES}
d149 1
a149 1
pam_static_modules.o:	pam_static.o ${STATIC_MODULES}
d153 1
d155 8
a162 12
	cd ${PAMDIR}/libpamc/include/security; \
		${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${HDRS0} ${DESTDIR}/usr/include/security
	cd ${PAMDIR}/libpam/include/security; \
		${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${HDRS1} ${DESTDIR}/usr/include/security
	cd ${PAMDIR}/libpam_misc/include/security; \
		${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${HDRS2} ${DESTDIR}/usr/include/security
	cd ${.CURDIR}; \
		${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
		${HDRS3} ${DESTDIR}/usr/include/security
d165 3
@


1.25
log
@Add pam_ssh support to the static PAM library, libpam.a:

- Spam /usr/lib some more by making libssh a standard library.
- Tweak ${LIBPAM} and ${MINUSLPAM}.
- Garbage collect unused libssh_pic.a.
- Add fake -lz dependency to secure/ makefiles needed for
  dynamic linkage with -lssh.

Reviewed by:	des, markm
Approved by:	markm
@
text
@d81 2
@


1.24
log
@Link pam_opieaccess, pam_self and pam_ssh into the static library.

Sponsored by:	DARPA, NAI Labs
@
text
@d63 1
a63 1
SRCS+=		help_env.c misc_conv.c xstrdup.c
d89 1
d91 1
@


1.23
log
@We need pam_client.h from libpamc.  This unbreaks world

Pointed out by:	jhay
Pointy hat to:	des
@
text
@d83 1
d88 2
@


1.22
log
@Install the correct version of pam_misc.h.

Sponsored by:	DARPA, NAI Labs
@
text
@d59 3
d111 3
@


1.21
log
@Add a pam_set_item(3) man page with an MLINK to pam_get_item(3).

PR:		docs/32294
Sponsored by:	DARPA, NAI Labs
MFC after:	3 days
@
text
@d111 1
a111 1
	cd ${PAMDIR}/libpam_misc; \
@


1.20
log
@Almost completely rewrite the PAM module options processing
routines, and provide a more extended API for doing this.

Provide an API for debug logging.

Audit and clean up the code.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.19 2001/06/14 01:13:30 peter Exp $
d66 2
@


1.19
log
@Fix libpam's linker set stuff to use the new API (unbreak world), and get
rid of gensetdefs from here as well.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.18 2001/06/04 19:47:50 markm Exp $
d64 1
a64 1
SRCS+=		pam_get_pass.c pam_prompt.c pam_std_option.c
@


1.18
log
@Big module cleanup.

Move common stuff into Makefile.inc, and tidy up all the Makefiles
as a result.

Build new modules.

Put a commented-out dependancy on libpam for the (shared) modules.
I can't bring this in just yet, as the dependancy (modules->libpam)
is reversed for the static case (libpam->modules).
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.17 2001/05/14 11:23:56 markm Exp $
d98 1
a98 10
pam_static_modules.o:	setdef0.o pam_static.o _pam_static_modules.o setdef1.o
	${LD} -o ${.TARGET} -r ${.ALLSRC}

setdef0.o:	setdef0.c setdefs.h
setdef1.o:	setdef1.c setdefs.h

setdef0.c setdef1.c setdefs.h:	_pam_static_modules.o
	gensetdefs ${.ALLSRC}

_pam_static_modules.o:	${STATIC_MODULES}
@


1.17
log
@Bring in a few useful PAM modules.

pam_krb5 is a Kerberos 5 (Heimdal) authentication module.

pam_nologin checks for /etc/nologin and does the "usual stuff"
	if it is found, otherwise it silently succeeds.

pam_rootok silently succeeds if the user is root, otherwise
	it fails.

pam_wheel silently succeeds if the user is a member of group
	"wheel" (or another nominated group), and fails
	otherwise.

There is an issue with kerberosIV and kerberos5 - if both are
being built, then static linking fails with duplicate symbols.
This will take a bit of work to sort out in the kerberii.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.16 2001/05/04 20:40:53 green Exp $
a67 1
STATIC_MODULES+= ${MODOBJDIR}/pam_cleartext_pass_ok/libpam_cleartext_pass_ok.a
d69 1
d81 1
a81 1
STATIC_MODULES+= ${MODOBJDIR}/pam_skey/libpam_skey.a
@


1.16
log
@Finish disconnecting pam_ssh from the build.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.15 2001/05/03 10:55:47 markm Exp $
d73 2
a74 2
.if defined(MAKE_KERBEROS5__) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
STATIC_MODULES+= ${MODOBJDIR}/pam_kerberos5/libpam_kerberos5.a
d76 1
d80 1
d84 1
@


1.15
log
@Update for (Linux-)PAM 0.75
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.14 2001/03/27 17:27:10 ru Exp $
a79 3
.if exists(${.CURDIR}/../../../crypto/openssh) && !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_OPENSSH)
STATIC_MODULES+= ${MODOBJDIR}/pam_ssh/libpam_ssh.a
.endif
@


1.14
log
@MAN[1-9] -> MAN.
@
text
@d25 4
a28 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.13 2000/04/17 00:19:26 kris Exp $
d36 5
a40 2
CFLAGS+=	-I${PAMDIR}/libpam/include -I.
CFLAGS+=	-DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\"
a41 1
CLEANFILES+=	security
a113 4
all:		security

beforedepend:	security

a123 3

security:
	ln -sf ${PAMDIR}/libpam_misc security
@


1.13
log
@Connect pam_opie to the build.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12 2000/03/09 06:28:27 kris Exp $
d46 1
a46 1
MAN3+=		pam_authenticate.3 pam_chauthtok.3 pam_fail_delay.3 \
d51 1
a51 1
MAN8+=		pam.8
@


1.12
log
@Buildworld fixes for NO_OPENSSH and NO_OPENSSL

Approved by:	jkh
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.11 2000/02/28 21:00:48 markm Exp $
d71 1
@


1.12.2.1
log
@MFC: provide an opie module for pam.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12 2000/03/09 06:28:27 kris Exp $
a70 1
STATIC_MODULES+= ${MODOBJDIR}/pam_opie/libpam_opie.a
@


1.12.2.2
log
@MFC: MAN[1-9] -> MAN.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12.2.1 2000/09/20 09:34:49 jkh Exp $
d46 1
a46 1
MAN+=		pam_authenticate.3 pam_chauthtok.3 pam_fail_delay.3 \
d51 1
a51 1
MAN+=		pam.8
@


1.12.2.3
log
@MFC: FreeBSD PAM stuff and cleaned up modules build. New modules.
@
text
@d25 1
a25 4
#	$FreeBSD$

LIBPAM_VERSION_MAJOR=	0
LIBPAM_VERSION_MINOR=	75
d33 2
a34 5
CFLAGS+=	-I${PAMDIR}/libpam/include -I${PAMDIR}/libpam_misc/include \
		-I${PAMDIR}/libpamc/include -I. -I${.CURDIR}
CFLAGS+=	-DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\" \
		-DLIBPAM_VERSION_MAJOR=${LIBPAM_VERSION_MAJOR} \
		-DLIBPAM_VERSION_MINOR=${LIBPAM_VERSION_MINOR}
d36 1
a64 1
STATIC_MODULES+= ${MODOBJDIR}/pam_ftp/libpam_ftp.a
d68 2
a69 2
.if defined(MAKE_KERBEROS5) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
STATIC_MODULES+= ${MODOBJDIR}/pam_krb5/libpam_krb5.a
a70 1
STATIC_MODULES+= ${MODOBJDIR}/pam_nologin/libpam_nologin.a
a73 1
STATIC_MODULES+= ${MODOBJDIR}/pam_rootok/libpam_rootok.a
d75 3
a77 1
STATIC_MODULES+= ${MODOBJDIR}/pam_securetty/libpam_securetty.a
a79 1
STATIC_MODULES+= ${MODOBJDIR}/pam_wheel/libpam_wheel.a
d109 4
d123 3
@


1.12.2.4
log
@Back out the extremely unwise PAM MFC that I did about 4 days ago.

My apologies to all. Please pass the pointy hat.
@
text
@d27 3
d36 5
a40 2
CFLAGS+=	-I${PAMDIR}/libpam/include -I.
CFLAGS+=	-DDEFAULT_MODULE_PATH=\"${SHLIBDIR}/\"
a41 1
CLEANFILES+=	security
d70 1
d74 2
a75 2
.if defined(MAKE_KERBEROS5__) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
STATIC_MODULES+= ${MODOBJDIR}/pam_kerberos5/libpam_kerberos5.a
d77 1
d81 1
d83 1
a83 3
.if exists(${.CURDIR}/../../../crypto/openssh) && !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_OPENSSH)
STATIC_MODULES+= ${MODOBJDIR}/pam_ssh/libpam_ssh.a
.endif
d86 1
a115 4
all:		security

beforedepend:	security

a125 3

security:
	ln -sf ${PAMDIR}/libpam_misc security
@


1.12.2.5
log
@You can't pass a directory name in CLEANFILES
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12.2.4 2001/06/11 15:28:36 markm Exp $
d36 1
@


1.12.2.6
log
@Deal with the security directory/symlink/file/turd correctly.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12.2.5 2001/06/11 23:55:20 jkh Exp $
a35 1
CLEANFILES+=	security
@


1.12.2.7
log
@Need to remove pam_ssh for now from here, too.

Submitted by:	Mike Tancsa <mike@@sentex.net>
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.12.2.6 2001/06/12 08:50:18 markm Exp $
d75 3
@


1.12.2.8
log
@MFC: add a pam_set_item(3) man page with an MLINK to pam_get_item(3).
@
text
@d25 1
a25 1
#	$FreeBSD$
a60 2
MAN+=		pam_set_item.3
MLINKS+=	pam_set_item.3 pam_get_item.3
@


1.12.2.9
log
@Revert rev. 1.12.2.6, which breaks world for people who forget -P when
updating their source tree.  'make beforeinstall' takes care of installing
headers in their correct locations during buildworld, which is the only
supported upgrade path.
@
text
@d36 1
d108 4
d122 3
@


1.12.2.9.2.1
log
@Merge OpenSSH, OPIE, PAM and a number of dependencies from -STABLE.
@
text
@d33 1
a33 1
CFLAGS+=	-I${PAMDIR}/libpam/include -I${.CURDIR}
d58 2
a59 3
SRCS+=		pam_debug_log.c pam_get_pass.c pam_prompt.c pam_std_option.c
SRCS+=		openpam_borrow_cred.c openpam_restore_cred.c
HDRS3=		security/pam_mod_misc.h
@


1.12.2.10
log
@Bring -STABLE's libpam to a somewhat more functional state in preparation
for the OpenSSH upgrade:

 - update pam_opie(8) to not emit fake challenges when the no_fake_prompts
   option was specified, and add a man page.

 - add pam_opieaccess(8) and a man page.

 - synch pam_radius(8), pam_ssh(8) and pam_tacplus(8) with -CURRENT.

 - sync pam_unix(8) with its state in -CURRENT prior to the OpenPAM import.

 - bring in bits of OpenPAM and some of Mark's additions to Linux-PAM to
   support the updated modules.

Sponsored by:	DARPA, NAI Labs
@
text
@d33 1
a33 1
CFLAGS+=	-I${PAMDIR}/libpam/include -I${.CURDIR}
d58 2
a59 3
SRCS+=		pam_debug_log.c pam_get_pass.c pam_prompt.c pam_std_option.c
SRCS+=		openpam_borrow_cred.c openpam_restore_cred.c
HDRS3=		security/pam_mod_misc.h
@


1.12.2.11
log
@[forced commit due to CVS bug]

Bring in bits of OpenPAM and some of Mark's additions to Linux-PAM to
support the updated modules.

Sponsored by:	DARPA, NAI Labs
@
text
@@


1.12.2.12
log
@MFC: bsd.incs.mk support and assorted header fixes:

Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/.

Install sys/netatm/*/*.h to /usr/include/netatm/*/.

Don't install compatibility symlinks for <machine/soundcard.h>
and <machine/joystick.h>.

Don't install IPFILTER headers.  Userland utilities fetch them
directly, and they were not visible in the SHARED=symlinks case.

Resurrect SHARED=symlinks in Makefile.inc1.

PR:		docs/29534, bin/28002
@
text
@d108 10
a117 4
# Headers
INCS=		${HDRS1:S;^;${PAMDIR}/libpam/include/security/;} \
		${HDRS2} ${HDRS3}
INCSDIR=	${INCLUDEDIR}/security
@


1.12.2.13
log
@Switch importer
@
text
@d25 1
a25 1
#	$FreeBSD: stable/4/lib/libpam/libpam/Makefile 100501 2002-07-22 14:21:52Z ru $
@


1.11
log
@Don't try to build k5 PAM; it ain't ready yet.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.10 2000/02/26 12:26:25 sos Exp $
d65 1
a65 1
.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT)
d68 1
a68 1
.if defined(MAKE_KERBEROS5__) && !defined(NOCRYPT)
d74 1
a74 1
.if exists(${.CURDIR}/../../../crypto/openssh) && !defined(NO_OPENSSL)
@


1.10
log
@Same fix as in ../modules, dont use the crypto stuff if its not there.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.9 2000/02/24 22:24:33 markm Exp $
d68 1
a68 1
.if defined(MAKE_KERBEROS5) && !defined(NOCRYPT)
@


1.9
log
@Use libcrypto instead of libdes.

Also - OpenSSH blesses us with a module for PAM.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.8 1999/11/14 15:48:28 marcel Exp $
d74 1
a74 1
.if !defined(NO_OPENSSL)
@


1.8
log
@Don't include Kerberos if NOCRYPT is defined, because it isn't build
if NOCRYPT is defined. Likewise, don't include DES if NOSECURE is
defined.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.7 1999/09/20 06:23:15 markm Exp $
d74 3
@


1.7
log
@Common Error libraries are needed here.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.6 1999/05/08 01:59:23 jdp Exp $
d65 1
a65 1
.if defined(MAKE_KERBEROS4)
d68 1
a68 1
.if defined(MAKE_KERBEROS5)
@


1.6
log
@Revive the pam_deny and pam_permit modules from Linux-PAM.  They are
simple enough to be trusted.

Add account management functionality to the pam_unix module.

These changes should make it possible to use PAM in some ports.

Submitted by:	Max Khon <fjoe@@iclub.nsu.ru>
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.5 1999/01/22 12:43:42 jdp Exp $
d67 3
@


1.5
log
@Fix breakage for the static a.out case.  The a.out linker doesn't
consider a linker set definition to be sufficient reason to pull an
object module from an archive library.  This caused undefined
symbols when linking with libpam.a using a.out.  I solved it by
linking in the object that references the linker set in the "ld -r"
step.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.4 1999/01/20 21:55:22 jdp Exp $
d64 1
d68 1
@


1.4
log
@Make it possible to use PAM in statically-linked applications.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.3 1999/01/11 16:08:02 jdp Exp $
d35 1
a35 1
NOPROFILE=	true
d42 1
a42 1
		pam_second.c pam_session.c pam_start.c pam_static.c \
d73 6
d84 1
a84 1
pam_static_modules.o:	setdef0.o _pam_static_modules.o setdef1.o
d96 1
a96 1
pam_static_modules.o:	${STATIC_MODULES}
@


1.4.2.1
log
@MFC: Fix PAM-related a.out breakage.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.5 1999/01/22 12:43:42 jdp Exp $
d35 1
a35 1
NOPROFILE=	yes
d42 1
a42 1
		pam_second.c pam_session.c pam_start.c \
a72 6
CLEANFILES+=	pam_static.o

_EXTRADEPEND:	pam_static.c
	${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
	    ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BID]*} \
	    ${.ALLSRC}
d78 1
a78 1
pam_static_modules.o:	setdef0.o pam_static.o _pam_static_modules.o setdef1.o
d90 1
a90 1
pam_static_modules.o:	pam_static.o ${STATIC_MODULES}
@


1.4.2.2
log
@MFC: Add pam_deny and pam_permit modules.  Add account management to
the pam_unix module.
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.4.2.1 1999/01/22 18:41:00 jdp Exp $
a63 1
STATIC_MODULES+= ${MODOBJDIR}/pam_deny/libpam_deny.a
a66 1
STATIC_MODULES+= ${MODOBJDIR}/pam_permit/libpam_permit.a
@


1.3
log
@Fix an NFS-related installation problem.

Submitted by:	asami
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.2 1998/11/22 19:33:22 jdp Exp $
d28 1
a34 2
CFLAGS+=	-DPAM_DYNAMIC
#CFLAGS+=	-DPAM_STATIC
a35 1
INTERNALLIB=	true
d42 2
a43 1
		pam_second.c pam_session.c pam_start.c pam_strerror.c
d61 32
@


1.2
log
@Install PAM modules into ${SHLIBDIR}, not ${LIBDIR}.

Noticed by:	bde
@
text
@d25 1
a25 1
#	$FreeBSD: src/lib/libpam/libpam/Makefile,v 1.1.1.1 1998/11/18 01:44:37 jdp Exp $
d79 1
a79 1
	ln -s ${PAMDIR}/libpam_misc security
@


1.1
log
@Initial revision
@
text
@d25 1
a25 1
#	$FreeBSD$
d33 1
a33 1
CFLAGS+=	-DDEFAULT_MODULE_PATH=\"${LIBDIR}/\"
@


1.1.1.1
log
@Build structure for contribified Linux-PAM, plus some home-grown
modules for FreeBSD's standard authentication methods.  Although
the Linux-PAM modules are present in the contrib tree, we don't
use any of them.

The main library "libpam" is composed of sources taken from three
places.  First are the standard Linux-PAM libpam sources from the
contrib tree.  Second are the Linux-PAM "libpam_misc" sources, also
from the contrib tree.  In Linux these form a separate library.
But as Mike Smith pointed out to me, that seems pointless, so I
have combined them into the libpam library.  Third are some additional
sources from the "src/lib/libpam" tree with some common functions
that make it easier to write modules.  Those I wrote myself.

This work has been donated to FreeBSD by Juniper Networks, Inc.
@
text
@@
