diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:54:01 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2000-11-19 23:54:01 +0000 |
commit | 73346dba777b023e46830a973148eb0ddbf8f8b4 (patch) | |
tree | 3ac12799a597cb2004f8ebf5b18a4469ccee9a44 /modules/pam_pwdb | |
parent | 47575925596c2af2a78c009fcdd14de72fc82d3e (diff) | |
download | pam-73346dba777b023e46830a973148eb0ddbf8f8b4.tar.gz pam-73346dba777b023e46830a973148eb0ddbf8f8b4.tar.bz2 pam-73346dba777b023e46830a973148eb0ddbf8f8b4.zip |
Relevant BUGIDs: task 15788, bugs 108297, 117476, 117474
Purpose of commit: autoconf support for Linux-PAM
Commit summary:
---------------
This is a merge of the autoconf support that was developed against
a 0-72 branch.
[Note, because CVS has some issues, this is actually only 95% of
the actual commit. The other files were actually committed when
the preparation branch Linux-PAM-0-73pre-autoconf was updated.
Hopefully, this will complete the merge.]
Diffstat (limited to 'modules/pam_pwdb')
-rw-r--r-- | modules/pam_pwdb/Makefile | 87 | ||||
-rw-r--r-- | modules/pam_pwdb/pam_pwdb.c | 9 | ||||
-rw-r--r-- | modules/pam_pwdb/pwdb_chkpwd.c | 7 |
3 files changed, 11 insertions, 92 deletions
diff --git a/modules/pam_pwdb/Makefile b/modules/pam_pwdb/Makefile index fcb7aec4..2b581dcd 100644 --- a/modules/pam_pwdb/Makefile +++ b/modules/pam_pwdb/Makefile @@ -7,46 +7,20 @@ # <morgan@parc.power.net> 1996/11/6 # -# -# Note, the STATIC module is commented out because it doesn't work. -# please fix! -# +include ../../Make.Rules -ifndef FULL_LINUX_PAM_SOURCE_TREE -export DYNAMIC=-DPAM_DYNAMIC -export CC=gcc -export CFLAGS=-O2 -Dlinux -DLINUX_PAM \ - -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \ - -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional \ - -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline \ - -Wshadow -pedantic -fPIC -export MKDIR=mkdir -p -export LD_D=gcc -shared -Xlinker -x -export HAVE_PWDBLIB=yes -endif +ifeq ($(HAVE_LIBPWDB),yes) -ifeq ($(shell if [ -f /lib/libcrypt.so.* ]; then echo yes ; else echo no ; fi),yes) -EXTRALS += -lcrypt -endif +EXTRALS += -lpwdb +EXTRAS += -DCHKPWD_HELPER=\"$(SUPLEMENTED)/$(CHKPWD)\" -ifeq ($(HAVE_PWDBLIB),yes) +ifeq ($(HAVE_LIBCRYPT),yes) + EXTRALS += -lcrypt +endif TITLE=pam_pwdb CHKPWD=pwdb_chkpwd -# compilation flags -EXTRAS= -# extra object files -PLUS= -# extra files that may be needed to be created -CREATE= - -# NOTE: this module links dynamically to the libpwdb library. -EXTRALS += -lpwdb -EXTRAS += -DCHKPWD_HELPER=\"$(SUPLEMENTED)/$(CHKPWD)\" - -########################### don't edit below ########################## - LIBSRC = $(TITLE).c LIBOBJ = $(TITLE).o LIBOBJD = $(addprefix dynamic/,$(LIBOBJ)) @@ -132,7 +106,7 @@ ifdef DYNAMIC $(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR) endif $(MKDIR) $(FAKEROOT)$(SUPLEMENTED) - $(INSTALL) -m 4555 -o root -g root $(CHKPWD) $(FAKEROOT)$(SUPLEMENTED) + $(INSTALL) -m 4555 $(CHKPWD) $(FAKEROOT)$(SUPLEMENTED) remove: rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so @@ -140,54 +114,11 @@ remove: clean: rm -f $(CHKPWD) $(LIBOBJD) $(LIBOBJS) $(MOREDELS) core *~ *.o *.so - -extraclean: clean rm -f *.a *.o *.so *.bak + rm -fr dynamic static else include ../dont_makefile endif - -##################################################################### -# $Log$ -# Revision 1.1 2000/06/20 22:11:47 agmorgan -# Initial revision -# -# Revision 1.4 1999/08/01 16:18:27 morgan -# added a conditional for libcrypt -# -# Revision 1.3 1999/07/08 05:02:02 morgan -# glibc fixes (Thorsten Kukuk, Adam J. Richter) -# -# Revision 1.2 1999/07/04 23:22:38 morgan -# Andrey's MD5 (bigendian) work around + cleanup to address problems with -# applications that let an (ab)user kill them off without giving PAM the -# opportunity to end. [Problem report from Tani Hosokawa on bugtraq.] -# -# Revision 1.1.1.1 1998/07/12 05:17:16 morgan -# Linux PAM sources pre-0.66 -# -# Revision 1.7 1997/04/05 06:28:50 morgan -# fakeroot -# -# Revision 1.6 1997/02/15 17:25:32 morgan -# update for .56 . extra commands for new helper binary -# -# Revision 1.5 1997/01/04 20:39:08 morgan -# conditional on having libpwdb -# -# Revision 1.4 1996/12/01 03:02:03 morgan -# changed banner, removed linking libraries -# -# Revision 1.3 1996/11/10 20:14:42 morgan -# cross platform support -# -# Revision 1.2 1996/09/05 06:36:49 morgan -# options added and use of LD altered -# -# Revision 1.1 1996/08/29 13:23:29 morgan -# Initial revision -# -# diff --git a/modules/pam_pwdb/pam_pwdb.c b/modules/pam_pwdb/pam_pwdb.c index 4d335572..d736c6a8 100644 --- a/modules/pam_pwdb/pam_pwdb.c +++ b/modules/pam_pwdb/pam_pwdb.c @@ -20,14 +20,7 @@ static const char rcsid[] = /* #define DEBUG */ -#define _SVID_SOURCE -#define _BSD_SOURCE -#define _BSD_COMPAT - -#ifdef linux -# define _GNU_SOURCE -# include <features.h> -#endif +#include <security/_pam_aconf.h> #include <sys/types.h> #include <stdarg.h> diff --git a/modules/pam_pwdb/pwdb_chkpwd.c b/modules/pam_pwdb/pwdb_chkpwd.c index 2c7ba29c..fdd3cfa3 100644 --- a/modules/pam_pwdb/pwdb_chkpwd.c +++ b/modules/pam_pwdb/pwdb_chkpwd.c @@ -13,12 +13,7 @@ * */ -#define _BSD_SOURCE - -#ifdef linux -# define _GNU_SOURCE -# include <features.h> -#endif +#include <security/_pam_aconf.h> #include <stdarg.h> #include <stdio.h> |