summaryrefslogtreecommitdiff
path: root/security/PAM/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'security/PAM/patches/patch-aa')
-rw-r--r--security/PAM/patches/patch-aa88
1 files changed, 88 insertions, 0 deletions
diff --git a/security/PAM/patches/patch-aa b/security/PAM/patches/patch-aa
new file mode 100644
index 00000000000..7e41cf9e159
--- /dev/null
+++ b/security/PAM/patches/patch-aa
@@ -0,0 +1,88 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/21 18:41:54 rh Exp $
+
+--- Makefile.orig Mon Nov 22 04:02:36 1999
++++ Makefile
+@@ -31,8 +31,8 @@
+ #STATIC=-DPAM_STATIC
+
+ # Comment out these lines to disable building dynamic/static libpam.*
+-DYNAMIC_LIBPAM=yes
+-#STATIC_LIBPAM=yes
++DYNAMIC_LIBPAM?=yes
++STATIC_LIBPAM?=yes
+
+ # All combinations of the above four variable definitions are legal,
+ # however, not defining either dynamic or static modules and yet
+@@ -43,22 +43,22 @@
+ # they control the building of some modules in this distribution
+ # Note, these definitions are all "export"ed below...
+
+-HAVE_PWDBLIB=yes
++HAVE_PWDBLIB=no
+ HAVE_CRACKLIB=yes
+ HAVE_AFSLIBS=no
+-HAVE_KRBLIBS=no
++HAVE_KRBLIBS=yes
+
+ # NB. The following is the generic defines for compilation.
+ # They can be overridden in the default.defs file below
+ #
+-WARNINGS = -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \
++WARNINGS = -ansi -Wall -Wwrite-strings \
+ -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline -Wshadow -pedantic
+ PIC=-fPIC
+
+ # Mode to install shared libraries with
+-SHLIBMODE=755
++SHLIBMODE=444
+
+ #
+ # Conditional defines..
+@@ -66,7 +66,7 @@
+
+ ifdef DYNAMIC
+ # need the dynamic library functions
+-LIBDL=-l$(DYNLOAD)
++LIBDL=
+ ifdef STATIC_LIBPAM
+ # needed because pam_xxx() fn's are now in statically linked library
+ RDYNAMIC = -rdynamic
+@@ -98,15 +98,15 @@
+
+ # the sub-directories to make things in
+
+-DIRS = modules libpam conf libpam_misc libpamc examples
++DIRS = libpam modules conf libpam_misc libpamc examples
+
+ #
+ # basic defines
+ #
+
+-INCLUDEDIR=-I$(shell pwd)/include
+-PAMLIB=-L$(shell pwd)/libpam
+-PAMMISCLIB=-L$(shell pwd)/libpam_misc
++INCLUDEDIR=-I$(shell pwd)/include -I${PREFIX}/include/cracklib
++PAMLIB=-L$(shell pwd)/libpam -Wl,-R${PREFIX}/lib -L${PREFIX}/lib
++PAMMISCLIB=-L$(shell pwd)/libpam_misc -Wl,-R${PREFIX}/lib -L${PREFIX}/lib
+ ifeq ($(DEBUG_REL),yes)
+ PAMLIB += -lpamd
+ PAMMISCLIB += -lpamd_misc
+@@ -121,6 +121,7 @@
+ # only that you are compiling the "Linux" (read FREE) implementation
+ # of Pluggable Authentication Modules.
+ EXTRAS += -DLINUX_PAM
++EXTRAS += -DHAVE_UTMP_H
+
+ #
+ # build composite defines
+@@ -209,7 +210,7 @@
+ ## the rules
+ ##
+
+-all: .freezemake headers
++all: headers
+
+ @for i in $(DIRS) ; do \
+ $(MAKE) -C $$i all ; \