This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[nivanova/samba-autobuild/.git] / packaging / Mandrake / README.mandrake
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 The Mandrake samba spec file used for packaging for Mandrake and cooker
5 is now also used by the makerpms.sh script, and you can pass any options
6 that you would normally pass to rpm via the makerpms.sh script.
7
8 Note that only release after 8.1 support passing options using 
9 "--with <option>" syntax. The following options are available when
10 building with the script:
11
12 - --with|--without ldap
13 - --with|--without acl
14 - --with|--without winbind
15 - --with|--without  wins
16 - --with vscan
17 Using "--with vscan" requires that you place a copy of the samba-vscan
18 tarball (coverted to bz2 using bzme) from:
19 http://prdownloads.sourceforge.net/openantivirus/samba-vscan-0.2.5a.tar.gz?download in your rpm source directory:
20
21 cp samba-vscan-0.2.5a.tar.gz `rpm --eval "%_sourcedir"`
22 bzme `rpm --eval "%_sourcedir"`/samba-vscan-0.2.5a.tar.gz
23
24 When using "--with vscan" you will probably want to enable a virus scanner
25 also:
26 - --with fprot
27 - --with kaspersky
28 - --with mks
29 - --with openantivirus
30 - --with sophos
31 - --with symantec
32 - --with trend
33
34 You may need to do additional setup for your virus scanner to get this to
35 work, please see ../../examples/VFS/<scanner>/INSTALL (after having started
36 a build with "sh makerpms.sh --with vscan")
37
38 Note that only sophos has been tested with the spec, but the rest should work
39 (after the preparation). Reports of working scanners are welcome, and please
40 report any that do not work (preferably with a fix :-)).
41
42 So, to build ldap-enable RPMs for with antivirus support with sophos, but
43 no acl support, use:
44 sh makerpms.sh --with ldap --with vscan --with sophos --without acl
45
46 The same features can be enabled on Mandrake 7.2/8.0 by editing samba2.spec, 
47 and changing the 0 to 1 to enable the option:
48
49 %if %build_mdk80
50 %define build_acl 0
51 %define build_winbind 0
52 %define build_wins 0
53 %define build_ldap 0
54 %endif
55
56 Similar sections exist for the virus scanning options.
57
58 (If you haven't rebuilt RPMs before, it is suggested that you take a
59 brief look through http://www.linux-mandrake.com/howtos/mdk-rpm/,
60 specifically sections 3.1 and 3.2)
61
62 The defaults for Mandrake 8.1 and 8.2 are shown below:
63 %if %build_mdk82
64 %define build_acl 1
65 %define build_winbind 1
66 %define build_wins 1
67 %define build_ldap 0
68 %endif
69
70 %if %build_mdk81
71 %define build_acl 1
72 %define build_winbind 0
73 %define build_wins 0
74 %define build_ldap 0
75 %endif
76
77 Note that building with LDAP support will only allow you to use smbpasswd's
78 stored in ldap, not in the local smbpasswd file. From 2.2.5 onwards in the 
79 2.2 tree, ldap-enable RPMs now carry an ldap modifier to indicate this (for
80 example, samba-server becomes samba-server-ldap).
81
82 Building with acl requires that you have the acl development libraries. 
83 The libraries are standard on 8.1 and 8.2.
84 ACLs can be used on Mandrake 8.0 with the updated kernel (to support XFS)
85 if you install the RPMs available at 
86 http://ranger.dnsalias.com/mandrake/samba/RPMS/8.0/samba-2.2.1a_xfs/
87
88 Note that precompiled binaries of samba are also available on my site:
89 http://ranger.dnsalias.com/mandrake/samba
90 and that of Sylvestre Taburet:
91 http://people.mandrakesoft.com/~staburet/samba/
92
93 If you have any problems with these RPMs, please send email to both
94 bgmilne@cae.co.za and staburet@mandrakesoft.com
95
96 These RPMs are provided as-is, are not official, and can not be 
97 supported by Mandrakesoft. However, we will do our best to provide
98 reliable and well-packaged RPMS, since we use them on our own servers
99 and those of clients.
100
101 This file is signed with my gpg key, a copy of my public key is available
102 at http://ranger.dnsalias.com/bgmilne.asc. The finger-print for this key 
103 follows:
104 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
105
106 Recent posts by me on samba@samba.org have been signed with this key,
107 in case you really want to verify who I am to some extent.
108
109 Buchan Milne
110 18 June 2002
111 -----BEGIN PGP SIGNATURE-----
112 Version: GnuPG v1.0.6 (GNU/Linux)
113
114 iD8DBQE9D2h3rJK6UGDSBKcRAhtJAKC0fVkIMETgRxccrwLBcKZKHllCIACeNcZ9
115 bxGZSTOHs57ir3wFR+3s0XM=
116 =ifKf
117 -----END PGP SIGNATURE-----