summaryrefslogtreecommitdiff
path: root/net/tac_plus-libradius/files/patch-aa
blob: 1baeb70566283616f7f275a865082d76db0f4327 (plain) (blame)
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
89
90
91
92
93
94
95
*** Makefile	Wed Mar 21 09:33:15 2001
--- ../pkg/tac_plus.new/Makefile	Mon Jan 21 15:51:28 2002
***************
*** 33,41 ****
  CPPFLAGS = 
  CFLAGS = $(CPPFLAGS) -g -O2
  LDFLAGS = 
! OSLIBS = -lldap -lldap -lc -lcrypt -lresolv -lnsl -llber -lcrypt -lc 
! DEFINES = -DUSE_LDAP 
! OS= -DLINUX -DGLIBC
  # For AIX
  # See /usr/lpp/bos/bsdport on your system for details of how to define bsdcc
  # CC=bsdcc
--- 33,41 ----
  CPPFLAGS = 
  CFLAGS = $(CPPFLAGS) -g -O2
  LDFLAGS = 
! OSLIBS = -lc -lcrypt -lcrypt -lc -I/usr/local/include -L/usr/local/lib -lradius
! DEFINES = -DUSE_RADIUS 
! OS= 
  # For AIX
  # See /usr/lpp/bos/bsdport on your system for details of how to define bsdcc
  # CC=bsdcc
***************
*** 52,58 ****
  #OSLIBS=-lsocket -lnsl
  
  # For FreeBSD
! # OS=-DFREEBSD
  # You may also need to add:
  # OSLIBS=-lcrypt
  # NOTE: If you want your password encryption to be compatible with
--- 52,58 ----
  #OSLIBS=-lsocket -lnsl
  
  # For FreeBSD
! OS=-DFREEBSD
  # You may also need to add:
  # OSLIBS=-lcrypt
  # NOTE: If you want your password encryption to be compatible with
***************
*** 108,114 ****
  # End of customisable section of Makefile
  #
  
! CFLAGS = $(DEBUG) $(OPT_FLAGS) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(LDFLAGS) $(DB)
  
  HFILES = expire.h parse.h regmagic.h md5.h regexp.h tac_plus.h 
  
--- 108,115 ----
  # End of customisable section of Makefile
  #
  
! 
! CFLAGS = $(DEBUG) $(OPT_FLAGS) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(LDFLAGS) $(DB) -I/usr/local/include -L/usr/local/lib
  
  HFILES = expire.h parse.h regmagic.h md5.h regexp.h tac_plus.h 
  
***************
*** 117,123 ****
  	packet.c report.c sendauth.c tac_plus.c utils.c pw.c hash.c \
  	parse.c regexp.c programs.c enable.c pwlib.c default_fn.c \
  	skey_fn.c default_v0_fn.c sendpass.c maxsess.c tac_pam.c \
! 	db.c db_null.c db_mysql.c ldap.c
  
  OBJS = $(SRCS:.c=.o)
  
--- 118,126 ----
  	packet.c report.c sendauth.c tac_plus.c utils.c pw.c hash.c \
  	parse.c regexp.c programs.c enable.c pwlib.c default_fn.c \
  	skey_fn.c default_v0_fn.c sendpass.c maxsess.c tac_pam.c \
! 	db.c db_null.c db_mysql.c radius.c
! 
! # add ldap.c and also define USE_LDAP to enable LDAP support
  
  OBJS = $(SRCS:.c=.o)
  
***************
*** 154,160 ****
  install:
  	cp tac_plus ${prefix}/sbin
  	cp tac_plus.1 ${prefix}/man/man8/tac_plus.8
! 	cp tac_plus.cfg /etc
  
  depend:
  	makedepend $(CFLAGS) $(SRCS)
--- 157,164 ----
  install:
  	cp tac_plus ${prefix}/sbin
  	cp tac_plus.1 ${prefix}/man/man8/tac_plus.8
! 	cp tac_plus.cfg ${prefix}/etc/tac_plus
! 	cp radius.example ${prefix}/etc/tac_plus
  
  depend:
  	makedepend $(CFLAGS) $(SRCS)