summaryrefslogtreecommitdiff
path: root/security/PAM/patches/patch-aa
blob: 19b5b7139d5eabd459162e631eceb110627d24c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
$NetBSD: patch-aa,v 1.2 2001/06/19 09:20:11 jlam 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${BUILDLINK_DIR}/include/cracklib
+PAMLIB=-L$(shell pwd)/libpam -Wl,-R${PREFIX}/lib -L${BUILDLINK_DIR}/lib
+PAMMISCLIB=-L$(shell pwd)/libpam_misc -Wl,-R${PREFIX}/lib -L${BUILDLINK_DIR}/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 ; \