JHT ===> Beggining of fixes to RedHat config stuff - more to come!!
[kai/samba.git] / examples / redhat / samba-make.patch
1 *** samba-1.9.16p10/source/Makefile.orig        Sat Feb  1 01:15:46 1997
2 --- samba-1.9.16p10/source/Makefile     Sat Feb  1 01:19:40 1997
3 ***************
4 *** 5,20 ****
5   
6   # The base manpages directory to put the man pages in
7   # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
8 ! MANDIR = /usr/local/man
9   
10   # The directories to put things in. If you use multiple
11   # architectures or share the samba binaries across NFS then
12   # you will probably want to change this layout.
13 ! BASEDIR = /usr/local/samba
14   BINDIR = $(BASEDIR)/bin
15 ! SBINDIR = $(BASEDIR)/bin
16 ! LIBDIR = $(BASEDIR)/lib
17 ! VARDIR = $(BASEDIR)/var
18   
19   # The permissions to give the executables
20   INSTALLPERMS = 0755
21 --- 5,20 ----
22   
23   # The base manpages directory to put the man pages in
24   # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
25 ! MANDIR = /usr/man
26   
27   # The directories to put things in. If you use multiple
28   # architectures or share the samba binaries across NFS then
29   # you will probably want to change this layout.
30 ! BASEDIR = /usr
31   BINDIR = $(BASEDIR)/bin
32 ! SBINDIR = $(BASEDIR)/sbin
33 ! LIBDIR = /etc
34 ! VARDIR = /var
35   
36   # The permissions to give the executables
37   INSTALLPERMS = 0755
38 ***************
39 *** 23,35 ****
40   # add -DSYSLOG for syslog support
41   # RPM_OPT_FLAGS is needed when building an RPM distribution package
42   # for RedHat Linux.
43 ! # FLAGS1 = $(RPM_OPT_FLAGS)
44 ! FLAGS1 = -O
45   LIBS1 = 
46   
47   # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
48   # use cc, instead you will have to use gcc. 
49 ! # CC = gcc
50   
51   # This may help with some versions of make
52   SHELL = /bin/sh
53 --- 23,35 ----
54   # add -DSYSLOG for syslog support
55   # RPM_OPT_FLAGS is needed when building an RPM distribution package
56   # for RedHat Linux.
57 ! FLAGS1 = $(RPM_OPT_FLAGS)
58 ! #FLAGS1 = -O
59   LIBS1 = 
60   
61   # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
62   # use cc, instead you will have to use gcc. 
63 ! CC = gcc
64   
65   # This may help with some versions of make
66   SHELL = /bin/sh
67 ***************
68 *** 42,54 ****
69   # set these to where to find various files
70   # These can be overridden by command line switches (see smbd(8))
71   # or in smb.conf (see smb.conf(5))
72 ! SMBLOGFILE = $(VARDIR)/log.smb
73 ! NMBLOGFILE = $(VARDIR)/log.nmb
74   CONFIGFILE = $(LIBDIR)/smb.conf
75   LMHOSTSFILE = $(LIBDIR)/lmhosts
76   
77   # the directory where lock files go
78 ! LOCKDIR = $(VARDIR)/locks
79   
80   # set this to the default group you want your machine to appear in
81   # for browsing. This can also be set in nmbd (see nmbd(8))
82 --- 42,54 ----
83   # set these to where to find various files
84   # These can be overridden by command line switches (see smbd(8))
85   # or in smb.conf (see smb.conf(5))
86 ! SMBLOGFILE = $(VARDIR)/log/log.smb
87 ! NMBLOGFILE = $(VARDIR)/log/log.nmb
88   CONFIGFILE = $(LIBDIR)/smb.conf
89   LMHOSTSFILE = $(LIBDIR)/lmhosts
90   
91   # the directory where lock files go
92 ! LOCKDIR = $(VARDIR)/lock/samba
93   
94   # set this to the default group you want your machine to appear in
95   # for browsing. This can also be set in nmbd (see nmbd(8))
96 ***************
97 *** 71,78 ****
98   
99   # This is for PAM authentication. RedHat Linux uses PAM.
100   # If you use PAM, then uncomment the following lines:
101 ! # PAM_FLAGS = -DUSE_PAM
102 ! # PAM_LIBS = -ldl -lpam
103   
104   # This is for AFS authentication.  If you use AFS then set AFS_BASE 
105   # according to your system layout, and uncomment the other lines as well.
106 --- 71,78 ----
107   
108   # This is for PAM authentication. RedHat Linux uses PAM.
109   # If you use PAM, then uncomment the following lines:
110 ! PAM_FLAGS = -DUSE_PAM
111 ! PAM_LIBS = -ldl -lpam
112   
113   # This is for AFS authentication.  If you use AFS then set AFS_BASE 
114   # according to your system layout, and uncomment the other lines as well.
115 ***************
116 *** 180,187 ****
117   # contributed by Andrew.Tridgell@anu.edu.au
118   # AXPROC defines DEC Alpha Processor
119   # FLAGSM = -DLINUX -DAXPROC
120 ! # FLAGSM = -DLINUX
121 ! # LIBSM = 
122   
123   # Use this for Linux with shadow passwords and quota
124   # contributed by xeno@mix.hive.no
125 --- 180,187 ----
126   # contributed by Andrew.Tridgell@anu.edu.au
127   # AXPROC defines DEC Alpha Processor
128   # FLAGSM = -DLINUX -DAXPROC
129 ! FLAGSM = -DLINUX
130 ! LIBSM = 
131   
132   # Use this for Linux with shadow passwords and quota
133   # contributed by xeno@mix.hive.no