History log of /freebsd-current/lib/libpam/libpam/Makefile
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 94179175 16-Aug-2020 Xin LI <delphij@FreeBSD.org>

Don't explicitly specify c99 or gnu99 as the default is now gnu99.

MFC after: 2 weeks


# a7b5a3d48 05-Sep-2019 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Put a lot of binaries and lib in FreeBSD-runtime

All of them are needed to be able to boot to single user and be able
to repair a existing FreeBSD installation so put them directly into
FreeBSD-runtime.

Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21503


# 19aa5206 22-Oct-2017 Enji Cooper <ngie@FreeBSD.org>

Diff reduce with ^/head

This doesn't seem to be necessary after the changes to only apply --coverage
to shared objects.

We'll see if it works with make tinderbox.


# d85550da 19-Jan-2017 Enji Cooper <ngie@FreeBSD.org>

Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon


# 328e4174 08-Jun-2016 Dag-Erling Smørgrav <des@FreeBSD.org>

Replace _pam_verbose_error() with a macro. This was the last difference
between our libpam and stock OpenPAM, meaning that it is now possible to
replace the base libpam with a hypothetical ports version of OpenPAM.


# 7cbd0a29 13-Apr-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Simplify building libpam and fix libpam.a not containing the modules since r284345.

The change in r284345 moved the creation of openpam_static_modules.o to
lib/libpam/static_modules but never managed to get them into libpam.a.

Move this logic to lib/libpam/static_libpam and have it create a static
library for libpam.a The main lib/libpam/libpam will only create a
shared library. No redundancy in compilation or installation exists
in this solution.

This avoids requiring a pass with -D_NO_LIBPAM_SO_YET.

Sponsored by: EMC / Isilon Storage Division


# 2c438c08 04-Feb-2016 Glen Barber <gjb@FreeBSD.org>

Update libalias and libpam packaged files.

Sponsored by: The FreeBSD Foundation


# be705782 21-Sep-2015 Dag-Erling Smørgrav <des@FreeBSD.org>

Restore the upstream (and documented) behavior of searching for modules
both in /usr/lib and /usr/local/lib, thus simplifying the use of modules
from ports, without breaking the compat32 case again.

PR: 191151
MFC after: 3 weeks


# cffbea9c 19-Nov-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Include src.opts.mk since we don't include modules.inc here.


# 29b775a9 05-Nov-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

Hook up OpenPAM's own unit tests to the build.


# 98407b8b 25-Apr-2014 Warner Losh <imp@FreeBSD.org>

Spell NO_PROFILE= as MK_PROFILE=no.


# 481da845 21-Nov-2013 Sergey Kandaurov <pluknet@FreeBSD.org>

Catch up with OpenPAM Nummularia.

This fixes libpam for build32 target to dlopen() pam libraries in /usr/lib32.

Reviewed by: des (a while ago)
MFC after: 1 week


# 6579d146 24-Jan-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Move build of openpam_static_modules.o to its own subdir
to avoid circular dependency b/w libpam and modules.

Reviewed by: obrien


# 907c13d8 22-Oct-2011 Dag-Erling Smørgrav <des@FreeBSD.org>

Revert the previous commit and add a comment explaining why it was wrong.


# 5acce7d7 21-Oct-2011 Dag-Erling Smørgrav <des@FreeBSD.org>

openpam_static.c isn't auto-generated.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 64dbe1a7 20-Dec-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Adjust for OpenPAM Hydrangea.


# 0d13f5f0 17-Jun-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Update for OpenPAM Figwort.

Approved by: re (kensmith)


# 30984a12 01-Feb-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Add openpam_free_envlist(3).


# ab7a2947 21-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE


# a35d8893 24-Oct-2004 Ruslan Ermilov <ru@FreeBSD.org>

For variables that are only checked with defined(), don't provide
any fake value.


# d37df47d 06-Aug-2004 Colin Percival <cperciva@FreeBSD.org>

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


# 2d18d113 27-Jul-2004 Alexander Kabaev <kan@FreeBSD.org>

Downgrade WARNS level for GCC 3.4.2.


# bb96dfc5 18-Jan-2004 Ruslan Ermilov <ru@FreeBSD.org>

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.)


# 9bf5abe2 13-Jan-2004 Ruslan Ermilov <ru@FreeBSD.org>

bsd.dep.mk,v 1.43 allows us to replace a hack with a solution.


# 2d2b70f6 31-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Add openpam_readline(3).


# ae1e8262 31-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't build pam_std_option().


# 8b48559c 05-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

OpenPAM is WANRS6-clean.


# e50fb9d5 01-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Mark libpam as c99- and WARNS5-clean.


# 7f03a257 09-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

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

Reviewed by: des


# 66422f5b 16-Sep-2002 Peter Wemm <peter@FreeBSD.org>

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


# 99260419 23-Jul-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Install more man pages - I thought I'd committed this ages ago...


# c096af69 24-May-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add openpam_nullconv.3.


# c7b111cb 12-May-2002 Ruslan Ermilov <ru@FreeBSD.org>

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".


# 597aaec9 01-May-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add openpam_nullconv.c to SRCS.


# 3cb7acc2 16-Apr-2002 Ruslan Ermilov <ru@FreeBSD.org>

Revert previous change. bsd.dep.mk,v 1.31 had a bug that was fixed
in revision 1.32 and made this change OBE.


# c34f0a19 15-Apr-2002 Ruslan Ermilov <ru@FreeBSD.org>

Reflect change in share/mk/bsd.dep.mk,v 1.31.


# a358391f 14-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

New files in OpenPAM Cineraria.

Sponsored by: DARPA, NAI Labs


# a60a1ea3 10-Apr-2002 Ruslan Ermilov <ru@FreeBSD.org>

Reimplement the hack to put pam_static.o into .depend with some magic.


# f5ef4bac 10-Apr-2002 Ruslan Ermilov <ru@FreeBSD.org>

Don't override standard _EXTRADEPEND actions, add to them.
Fix CLEANFILES.
Collapse openpam_static_modules.o generation.


# f6363a18 07-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add new files and man pages from OpenPAM Cinchona.

Sponsored by: DARPA, NAI Labs


# f03a4b81 14-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

NAI DBA update.


# 3556489a 07-Mar-2002 Mark Murray <markm@FreeBSD.org>

Fix build for OpenPAM. The directories needed tweeking.


# e0dd4a78 05-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add forgotten NOPROFILE that broke world.


# 519b6a4c 05-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

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


# 2d0a7148 01-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

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

Sponsored by: DARPA, NAI Labs


# 0509dca0 23-Jan-2002 Ruslan Ermilov <ru@FreeBSD.org>

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


# 1e22a4f0 21-Jan-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Link pam_opieaccess, pam_self and pam_ssh into the static library.

Sponsored by: DARPA, NAI Labs


# a45af0e2 05-Dec-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

We need pam_client.h from libpamc. This unbreaks world

Pointed out by: jhay
Pointy hat to: des


# bda74fe9 05-Dec-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Install the correct version of pam_misc.h.

Sponsored by: DARPA, NAI Labs


# 6a13dede 27-Nov-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

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


# c3a080c5 09-Jul-2001 Mark Murray <markm@FreeBSD.org>

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.


# d6be5f64 13-Jun-2001 Peter Wemm <peter@FreeBSD.org>

Fix libpam's linker set stuff to use the new API (unbreak world), and get
rid of gensetdefs from here as well.


# 084a4682 04-Jun-2001 Mark Murray <markm@FreeBSD.org>

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).


# 84d6cd8e 14-May-2001 Mark Murray <markm@FreeBSD.org>

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.


# d67ad957 04-May-2001 Brian Feldman <green@FreeBSD.org>

Finish disconnecting pam_ssh from the build.


# 556a2806 03-May-2001 Mark Murray <markm@FreeBSD.org>

Update for (Linux-)PAM 0.75


# 4a558355 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# acf3af98 16-Apr-2000 Kris Kennaway <kris@FreeBSD.org>

Connect pam_opie to the build.


# bb49f794 08-Mar-2000 Kris Kennaway <kris@FreeBSD.org>

Buildworld fixes for NO_OPENSSH and NO_OPENSSL

Approved by: jkh


# dc9650a4 28-Feb-2000 Mark Murray <markm@FreeBSD.org>

Don't try to build k5 PAM; it ain't ready yet.


# b3595df4 25-Feb-2000 Søren Schmidt <sos@FreeBSD.org>

Same fix as in ../modules, dont use the crypto stuff if its not there.


# d3e37521 24-Feb-2000 Mark Murray <markm@FreeBSD.org>

Use libcrypto instead of libdes.

Also - OpenSSH blesses us with a module for PAM.


# ee98eb8e 14-Nov-1999 Marcel Moolenaar <marcel@FreeBSD.org>

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.


# 33f891d2 20-Sep-1999 Mark Murray <markm@FreeBSD.org>

Common Error libraries are needed here.


# d65b34db 07-May-1999 John Polstra <jdp@FreeBSD.org>

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>


# abea79b8 21-Jan-1999 John Polstra <jdp@FreeBSD.org>

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.


# 9294327d 20-Jan-1999 John Polstra <jdp@FreeBSD.org>

Make it possible to use PAM in statically-linked applications.


# 9a7030e9 11-Jan-1999 John Polstra <jdp@FreeBSD.org>

Fix an NFS-related installation problem.

Submitted by: asami


# c273f24b 22-Nov-1998 John Polstra <jdp@FreeBSD.org>

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

Noticed by: bde


# 9a10bb17 17-Nov-1998 John Polstra <jdp@FreeBSD.org>

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.