JHT ==> Updating RPM build file, more expected - so please ignore!
[kai/samba.git] / examples / redhat / samba-make.patch
1 --- samba-1.9.17/source/Makefile.orig   Fri Jul  4 07:22:06 1997
2 +++ samba-1.9.17/source/Makefile        Fri Jul  4 07:27:17 1997
3 @@ -5,16 +5,16 @@
4  
5  # The base manpages directory to put the man pages in
6  # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
7 -MANDIR = /usr/local/man
8 +MANDIR = /usr/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 = /usr/local/bin
15 -SBINDIR = $(BASEDIR)/bin
16 -LIBDIR = $(BASEDIR)/lib
17 -VARDIR = $(BASEDIR)/var
18 +BASEDIR = /usr
19 +BINDIR = $(BASEDIR)/bin
20 +SBINDIR = $(BASEDIR)/sbin
21 +LIBDIR = /etc
22 +VARDIR = /var
23  
24  # The permissions to give the executables
25  INSTALLPERMS = 0755
26 @@ -23,13 +23,13 @@
27  # add -DSYSLOG for syslog support
28  # RPM_OPT_FLAGS is needed when building an RPM distribution package
29  # for RedHat Linux.
30 -# FLAGS1 = $(RPM_OPT_FLAGS)
31 -FLAGS1 = -O
32 +FLAGS1 = $(RPM_OPT_FLAGS)
33 +# FLAGS1 = -O
34  LIBS1 = 
35  
36  # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
37  # use cc, instead you will have to use gcc. 
38 -# CC = gcc
39 +CC = gcc
40  
41  # This may help with some versions of make
42  SHELL = /bin/sh
43 @@ -42,13 +42,13 @@
44  # set these to where to find various files
45  # These can be overridden by command line switches (see smbd(8))
46  # or in smb.conf (see smb.conf(5))
47 -SMBLOGFILE = $(VARDIR)/log.smb
48 -NMBLOGFILE = $(VARDIR)/log.nmb
49 +SMBLOGFILE = $(VARDIR)/log/log.smb
50 +NMBLOGFILE = $(VARDIR)/log/log.nmb
51  CONFIGFILE = $(LIBDIR)/smb.conf
52  LMHOSTSFILE = $(LIBDIR)/lmhosts
53  
54  # the directory where lock files go
55 -LOCKDIR = $(VARDIR)/locks
56 +LOCKDIR = $(VARDIR)/lock/samba
57  
58  # set this to the default group you want your machine to appear in
59  # for browsing. This can also be set in nmbd (see nmbd(8))
60 @@ -71,8 +71,8 @@
61  
62  # This is for PAM authentication. RedHat Linux uses PAM.
63  # If you use PAM, then uncomment the following lines:
64 -# PAM_FLAGS = -DUSE_PAM
65 -# PAM_LIBS = -ldl -lpam
66 +PAM_FLAGS = -DUSE_PAM
67 +PAM_LIBS = -ldl -lpam
68  
69  # This is for AFS authentication.  If you use AFS then set AFS_BASE 
70  # according to your system layout, and uncomment the other lines as well.
71 @@ -181,8 +181,8 @@
72  # contributed by Andrew.Tridgell@anu.edu.au
73  # AXPROC defines DEC Alpha Processor
74  # FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
75 -# FLAGSM = -DLINUX -DFAST_SHARE_MODES
76 -# LIBSM = 
77 +FLAGSM = -DLINUX -DFAST_SHARE_MODES
78 +LIBSM = 
79  
80  # Use this for Linux with shadow passwords and quota
81  # contributed by xeno@mix.hive.no