| 1 | # Note that this file exists in Mandrake packaging cvs (as samba.spec)
|
|---|
| 2 | # and samba cvs (as packaging/Mandrake/samba2.spec.tmpl).
|
|---|
| 3 | # Keep in mind that any changes should take both locations into account
|
|---|
| 4 | # Considerable effort has gone into making this possible, so that only
|
|---|
| 5 | # one spec file is maintained, please don't break it.
|
|---|
| 6 | # It should be possible, without any changes to this file, to build
|
|---|
| 7 | # binary packages on most recent Mandrake releases:
|
|---|
| 8 | # 1)from official source releases, using 'cd packaging/Mandrake; sh makerpms.sh'
|
|---|
| 9 | # 2)from cvs snapshots, using 'cd packaging/Mandrake; sh makerpms-cvs.sh <ver>'
|
|---|
| 10 | # 3)using official source releases and updated Mandrake packaging, by
|
|---|
| 11 | # 'rpm -ba samba.spec'
|
|---|
| 12 | # As such, any sources or patches used in a build from a samba release or
|
|---|
| 13 | # cvs should be submitted for inclusion in samba cvs.
|
|---|
| 14 |
|
|---|
| 15 | %define pkg_name samba
|
|---|
| 16 | %define ver 3.0.8
|
|---|
| 17 | %define drel 1
|
|---|
| 18 | %define subrel 1
|
|---|
| 19 | %define vscanver 0.3.5
|
|---|
| 20 | %define libsmbmajor 0
|
|---|
| 21 | %{?!mdkversion: %define mdkversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release)}
|
|---|
| 22 | %define rel %(case `hostname` in (n?.mandrakesoft.com) echo %drel;;(*) echo $[%drel-1].%subrel.$[%mdkversion/10];;esac)mdk
|
|---|
| 23 | %{?_with_stable_on_cluster: %define rel %(echo $[%{drel}-1].%subrel.$[%{mdkversion}/10]mdk)}
|
|---|
| 24 | %{?_with_official: %define rel %drel}
|
|---|
| 25 |
|
|---|
| 26 | %{!?lib: %global lib lib}
|
|---|
| 27 | %{!?mklibname: %global mklibname(ds) %lib%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}}
|
|---|
| 28 |
|
|---|
| 29 | %define libname %mklibname smbclient %libsmbmajor
|
|---|
| 30 |
|
|---|
| 31 | # Version and release replaced by samba-team at release from samba cvs
|
|---|
| 32 | %define pversion 3.0.13
|
|---|
| 33 | %define prelease 1
|
|---|
| 34 |
|
|---|
| 35 | #Check to see if p(version|release) has been replaced (1 if replaced)
|
|---|
| 36 | %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
|
|---|
| 37 | %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
|
|---|
| 38 |
|
|---|
| 39 | %if %have_pversion
|
|---|
| 40 | %define source_ver %{pversion}
|
|---|
| 41 | # Don't abort for stupid reasons on builds from tarballs:
|
|---|
| 42 | %global _unpackaged_files_terminate_build 0
|
|---|
| 43 | %global _missing_doc_files_terminate_build 0
|
|---|
| 44 | %else
|
|---|
| 45 | %define source_ver %{ver}
|
|---|
| 46 | %endif
|
|---|
| 47 |
|
|---|
| 48 | # We might have a prerelease:
|
|---|
| 49 | %define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
|
|---|
| 50 | %if %have_pre
|
|---|
| 51 | %define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')
|
|---|
| 52 | %define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')
|
|---|
| 53 | %endif
|
|---|
| 54 |
|
|---|
| 55 | # Check to see if we are running a build from a tarball release from samba.org
|
|---|
| 56 | # (%have_pversion) If so, disable vscan, unless explicitly requested
|
|---|
| 57 | # (--with vscan).
|
|---|
| 58 | %define build_vscan 1
|
|---|
| 59 | %if %have_pversion
|
|---|
| 60 | %define build_vscan 0
|
|---|
| 61 | %{?_with_vscan: %define build_vscan 1}
|
|---|
| 62 | %endif
|
|---|
| 63 |
|
|---|
| 64 | # We now do detection of the Mandrake release we are building on:
|
|---|
| 65 | %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
|
|---|
| 66 | %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
|
|---|
| 67 | %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
|
|---|
| 68 | %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
|
|---|
| 69 | %define build_non_default 0
|
|---|
| 70 |
|
|---|
| 71 | # Default options
|
|---|
| 72 | %define build_alternatives 0
|
|---|
| 73 | %define build_system 0
|
|---|
| 74 | %define build_acl 1
|
|---|
| 75 | %define build_winbind 1
|
|---|
| 76 | %define build_wins 1
|
|---|
| 77 | %define build_ldap 0
|
|---|
| 78 | %define build_ads 1
|
|---|
| 79 | %define build_scanners 0
|
|---|
| 80 | # CUPS supports functionality for 'printcap name = cups' (9.0 and later):
|
|---|
| 81 | %define build_cupspc 0
|
|---|
| 82 | # %_{pre,postun}_service are provided by rpm-helper in 9.0 and later
|
|---|
| 83 | %define have_rpmhelper 1
|
|---|
| 84 |
|
|---|
| 85 | # Set defaults for each version
|
|---|
| 86 | %if %mdkversion >= 1000
|
|---|
| 87 | %define build_system 1
|
|---|
| 88 | %endif
|
|---|
| 89 |
|
|---|
| 90 | %if %mdkversion >= 920
|
|---|
| 91 | %define build_alternatives 1
|
|---|
| 92 | %endif
|
|---|
| 93 |
|
|---|
| 94 | %if %mdkversion >= 910
|
|---|
| 95 | %define build_cupspc 1
|
|---|
| 96 | %endif
|
|---|
| 97 |
|
|---|
| 98 | %if %build_mdk82
|
|---|
| 99 | %define have_rpmhelper 0
|
|---|
| 100 | %endif
|
|---|
| 101 |
|
|---|
| 102 | %if %build_mdk81
|
|---|
| 103 | %define build_winbind 0
|
|---|
| 104 | %define build_wins 0
|
|---|
| 105 | %define have_rpmhelper 0
|
|---|
| 106 | %endif
|
|---|
| 107 |
|
|---|
| 108 | %if %build_mdk80
|
|---|
| 109 | %define build_acl 0
|
|---|
| 110 | %define build_winbind 0
|
|---|
| 111 | %define build_wins 0
|
|---|
| 112 | %define build_ads 0
|
|---|
| 113 | %define have_rpmhelper 1
|
|---|
| 114 | %endif
|
|---|
| 115 |
|
|---|
| 116 | %if %build_mdk72
|
|---|
| 117 | %define build_acl 0
|
|---|
| 118 | %define build_winbind 0
|
|---|
| 119 | %define build_wins 0
|
|---|
| 120 | %define build_ads 0
|
|---|
| 121 | %define have_rpmhelper 1
|
|---|
| 122 | %endif
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 | # Allow commandline option overrides (borrowed from Vince's qmail srpm):
|
|---|
| 126 | # To use it, do rpm [-ba|--rebuild] --with 'xxx'
|
|---|
| 127 | # Check if the rpm was built with the defaults, otherwise we inform the user
|
|---|
| 128 | %define build_non_default 0
|
|---|
| 129 | %{?_with_system: %global build_system 1}
|
|---|
| 130 | %{?_without_system: %global build_system 0}
|
|---|
| 131 | %{?_with_acl: %global build_acl 1}
|
|---|
| 132 | %{?_with_acl: %global build_non_default 1}
|
|---|
| 133 | %{?_without_acl: %global build_acl 0}
|
|---|
| 134 | %{?_without_acl: %global build_non_default 1}
|
|---|
| 135 | %{?_with_winbind: %global build_winbind 1}
|
|---|
| 136 | %{?_with_winbind: %global build_non_default 1}
|
|---|
| 137 | %{?_without_winbind: %global build_winbind 0}
|
|---|
| 138 | %{?_without_winbind: %global build_non_default 1}
|
|---|
| 139 | %{?_with_wins: %global build_wins 1}
|
|---|
| 140 | %{?_with_wins: %global build_non_default 1}
|
|---|
| 141 | %{?_without_wins: %global build_wins 0}
|
|---|
| 142 | %{?_without_wins: %global build_non_default 1}
|
|---|
| 143 | %{?_with_ldap: %global build_ldap 1}
|
|---|
| 144 | %{?_with_ldap: %global build_non_default 1}
|
|---|
| 145 | %{?_without_ldap: %global build_ldap 0}
|
|---|
| 146 | %{?_without_ldap: %global build_non_default 1}
|
|---|
| 147 | %{?_with_ads: %global build_ads 1}
|
|---|
| 148 | %{?_with_ads: %global build_non_default 1}
|
|---|
| 149 | %{?_without_ads: %global build_ads 0}
|
|---|
| 150 | %{?_without_ads: %global build_non_default 1}
|
|---|
| 151 | %{?_with_scanners: %global build_scanners 1}
|
|---|
| 152 | %{?_with_scanners: %global build_non_default 1}
|
|---|
| 153 | %{?_without_scanners: %global build_scanners 0}
|
|---|
| 154 | %{?_without_scanners: %global build_non_default 1}
|
|---|
| 155 | %{?_with_vscan: %global build_vscan 1}
|
|---|
| 156 | %{?_with_vscan: %global build_non_default 1}
|
|---|
| 157 | %{?_without_vscan: %global build_vscan 0}
|
|---|
| 158 | %{?_without_vscan: %global build_non_default 1}
|
|---|
| 159 |
|
|---|
| 160 | # As if that weren't enough, we're going to try building with antivirus
|
|---|
| 161 | # support as an option also
|
|---|
| 162 | %global build_clamav 0
|
|---|
| 163 | %global build_fprot 0
|
|---|
| 164 | %global build_fsav 0
|
|---|
| 165 | %global build_icap 0
|
|---|
| 166 | %global build_kaspersky 0
|
|---|
| 167 | %global build_mks 0
|
|---|
| 168 | %global build_nai 0
|
|---|
| 169 | %global build_openav 0
|
|---|
| 170 | %global build_sophos 0
|
|---|
| 171 | %global build_symantec 0
|
|---|
| 172 | %global build_trend 0
|
|---|
| 173 | %if %build_vscan
|
|---|
| 174 | # These we build by default
|
|---|
| 175 | %global build_clamav 1
|
|---|
| 176 | %global build_icap 1
|
|---|
| 177 | %endif
|
|---|
| 178 | %if %build_vscan && %build_scanners
|
|---|
| 179 | # These scanners are built if scanners are selected
|
|---|
| 180 | # symantec requires their library present and must be selected
|
|---|
| 181 | # individually
|
|---|
| 182 | %global build_fprot 1
|
|---|
| 183 | %global build_fsav 1
|
|---|
| 184 | %global build_kaspersky 1
|
|---|
| 185 | %global build_mks 1
|
|---|
| 186 | %global build_nai 1
|
|---|
| 187 | %global build_openav 1
|
|---|
| 188 | %global build_sophos 1
|
|---|
| 189 | %global build_trend 1
|
|---|
| 190 | %endif
|
|---|
| 191 | %if %build_vscan
|
|---|
| 192 | %{?_with_fprot: %{expand: %%global build_fprot 1}}
|
|---|
| 193 | %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
|
|---|
| 194 | %{?_with_mks: %{expand: %%global build_mks 1}}
|
|---|
| 195 | %{?_with_openav: %{expand: %%global build_openav 1}}
|
|---|
| 196 | %{?_with_sophos: %{expand: %%global build_sophos 1}}
|
|---|
| 197 | #%{?_with_symantec: %{expand: %%global build_symantec 1}}
|
|---|
| 198 | %{?_with_trend: %{expand: %%global build_trend 1}}
|
|---|
| 199 | %global vscandir samba-vscan-%{vscanver}
|
|---|
| 200 | %endif
|
|---|
| 201 | %global vfsdir examples.bin/VFS
|
|---|
| 202 |
|
|---|
| 203 | #Standard texts for descriptions:
|
|---|
| 204 | %define message_bugzilla() %(echo -e -n "Please file bug reports for this package at Mandrake bugzilla \\n(http://qa.mandrakesoft.com) under the product name %{1}")
|
|---|
| 205 | %define message_system %(echo -e -n "NOTE: These packages of samba-%{version}, are provided, parallel installable\\nwith samba-2.2.x, to allow easy migration from samba-2.2.x to samba-%{version},\\nbut are not officially supported")
|
|---|
| 206 |
|
|---|
| 207 | #check gcc version to disable some optimisations on gcc-3.3.1
|
|---|
| 208 | %define gcc331 %(gcc -dumpversion|awk '{if ($1>3.3) print 1; else print 0}')
|
|---|
| 209 |
|
|---|
| 210 | #Define sets of binaries that we can use in globs and loops:
|
|---|
| 211 | %global commonbin net,ntlm_auth,rpcclient,smbcacls,smbcquotas,smbpasswd,smbtree,testparm,testprns
|
|---|
| 212 |
|
|---|
| 213 | %global serverbin editreg,pdbedit,profiles,smbcontrol,smbstatus,tdbbackup,tdbdump
|
|---|
| 214 | %global serversbin nmbd,samba,smbd,mkntpwd
|
|---|
| 215 |
|
|---|
| 216 | %global clientbin findsmb,nmblookup,smbclient,smbmnt,smbmount,smbprint,smbspool,smbtar,smbumount,smbget
|
|---|
| 217 | %global client_bin mount.cifs
|
|---|
| 218 | %global client_sbin mount.smb,mount.smbfs
|
|---|
| 219 |
|
|---|
| 220 | %global testbin debug2html,smbtorture,msgtest,masktest,locktest,locktest2,nsstest,vfstest
|
|---|
| 221 |
|
|---|
| 222 | %ifarch alpha
|
|---|
| 223 | %define build_expsam xml
|
|---|
| 224 | %else
|
|---|
| 225 | %define build_expsam mysql,xml,pgsql
|
|---|
| 226 | %endif
|
|---|
| 227 |
|
|---|
| 228 | #Workaround missing macros in 8.x:
|
|---|
| 229 | %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
|
|---|
| 230 |
|
|---|
| 231 | # Determine whether this is the system samba or not.
|
|---|
| 232 | %if %build_system
|
|---|
| 233 | %define samba_major %{nil}
|
|---|
| 234 | %else
|
|---|
| 235 | %define samba_major 3
|
|---|
| 236 | %endif
|
|---|
| 237 | # alternatives_major is %{nil} if we aren't system and not using alternatives
|
|---|
| 238 | %if !%build_system || %build_alternatives
|
|---|
| 239 | %define alternative_major 3
|
|---|
| 240 | %else
|
|---|
| 241 | %define alternative_major %{nil}
|
|---|
| 242 | %endif
|
|---|
| 243 |
|
|---|
| 244 | Summary: Samba SMB server.
|
|---|
| 245 | Name: %{pkg_name}%{samba_major}
|
|---|
| 246 |
|
|---|
| 247 | %if %have_pre
|
|---|
| 248 | Version: %{pre_ver}
|
|---|
| 249 | %else
|
|---|
| 250 | Version: %{source_ver}
|
|---|
| 251 | %endif
|
|---|
| 252 |
|
|---|
| 253 | %if %have_prelease && !%have_pre
|
|---|
| 254 | Release: 0.%{prelease}.%{rel}
|
|---|
| 255 | %endif
|
|---|
| 256 | %if %have_prelease && %have_pre
|
|---|
| 257 | Release: 0.%{pre_pre}.%{rel}
|
|---|
| 258 | %endif
|
|---|
| 259 | %if !%have_prelease && !%have_pre
|
|---|
| 260 | Release: %{rel}
|
|---|
| 261 | %endif
|
|---|
| 262 | %if !%have_prelease && %have_pre
|
|---|
| 263 | Release: 0.%{pre_pre}.%{rel}
|
|---|
| 264 | %endif
|
|---|
| 265 |
|
|---|
| 266 | License: GPL
|
|---|
| 267 | Group: System/Servers
|
|---|
| 268 | Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
|
|---|
| 269 | URL: http://www.samba.org
|
|---|
| 270 | Source1: samba.log
|
|---|
| 271 | Source3: samba.xinetd
|
|---|
| 272 | Source4: swat_48.png.bz2
|
|---|
| 273 | Source5: swat_32.png.bz2
|
|---|
| 274 | Source6: swat_16.png.bz2
|
|---|
| 275 | Source7: README.%{name}-mandrake-rpm
|
|---|
| 276 | %if %build_vscan
|
|---|
| 277 | Source8: samba-vscan-%{vscanver}.tar.bz2
|
|---|
| 278 | %endif
|
|---|
| 279 | %if %build_vscan && %mdkversion >= 920
|
|---|
| 280 | BuildRequires: file-devel
|
|---|
| 281 | %endif
|
|---|
| 282 | Source10: samba-print-pdf.sh.bz2
|
|---|
| 283 | Source11: smb-migrate.bz2
|
|---|
| 284 | Patch1: smbw.patch.bz2
|
|---|
| 285 | Patch4: samba-3.0-smbmount-sbin.patch.bz2
|
|---|
| 286 | Patch5: samba-3.0.2a-smbldap-config.patch.bz2
|
|---|
| 287 | %if !%have_pversion
|
|---|
| 288 | # Version specific patches: current version
|
|---|
| 289 | Patch7: samba-3.0.5-lib64.patch.bz2
|
|---|
| 290 | Patch9: samba-3.0.6-smbmount-unixext.patch.bz2
|
|---|
| 291 | Patch11: samba-3.0.7-mandrake-packaging.patch.bz2
|
|---|
| 292 | %else
|
|---|
| 293 | # Version specific patches: upcoming version
|
|---|
| 294 | Patch8: samba-3.0.6-revert-libsmbclient-move.patch.bz2
|
|---|
| 295 | %endif
|
|---|
| 296 | # Limbo patches (applied to prereleases, but not preleases, ie destined for
|
|---|
| 297 | # samba CVS)
|
|---|
| 298 | %if %have_pversion && %have_pre
|
|---|
| 299 | %endif
|
|---|
| 300 | Requires: pam >= 0.64, samba-common = %{version}
|
|---|
| 301 | BuildRequires: pam-devel readline-devel libncurses-devel popt-devel
|
|---|
| 302 | BuildRequires: libxml2-devel postgresql-devel
|
|---|
| 303 | %ifnarch alpha
|
|---|
| 304 | BuildRequires: mysql-devel
|
|---|
| 305 | %endif
|
|---|
| 306 | %if %build_acl
|
|---|
| 307 | BuildRequires: libacl-devel
|
|---|
| 308 | %endif
|
|---|
| 309 | %if %build_mdk72
|
|---|
| 310 | BuildRequires: cups-devel
|
|---|
| 311 | %else
|
|---|
| 312 | BuildRequires: libcups-devel
|
|---|
| 313 | %endif
|
|---|
| 314 | BuildRequires: libldap-devel
|
|---|
| 315 | %if %build_ads
|
|---|
| 316 | BuildRequires: libldap-devel krb5-devel
|
|---|
| 317 | %endif
|
|---|
| 318 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|---|
| 319 | Prefix: /usr
|
|---|
| 320 | Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
|
|---|
| 321 | Prereq: fileutils sed /bin/grep
|
|---|
| 322 |
|
|---|
| 323 | %description
|
|---|
| 324 | Samba provides an SMB server which can be used to provide
|
|---|
| 325 | network services to SMB (sometimes called "Lan Manager")
|
|---|
| 326 | clients, including various versions of MS Windows, OS/2,
|
|---|
| 327 | and other Linux machines. Samba also provides some SMB
|
|---|
| 328 | clients, which complement the built-in SMB filesystem
|
|---|
| 329 | in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
|
|---|
| 330 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
|
|---|
| 331 | protocol.
|
|---|
| 332 |
|
|---|
| 333 | Samba-3.0 features working NT Domain Control capability and
|
|---|
| 334 | includes the SWAT (Samba Web Administration Tool) that
|
|---|
| 335 | allows samba's smb.conf file to be remotely managed using your
|
|---|
| 336 | favourite web browser. For the time being this is being
|
|---|
| 337 | enabled on TCP port 901 via xinetd. SWAT is now included in
|
|---|
| 338 | it's own subpackage, samba-swat.
|
|---|
| 339 |
|
|---|
| 340 | Please refer to the WHATSNEW.txt document for fixup information.
|
|---|
| 341 | This binary release includes encrypted password support.
|
|---|
| 342 |
|
|---|
| 343 | Please read the smb.conf file and ENCRYPTION.txt in the
|
|---|
| 344 | docs directory for implementation details.
|
|---|
| 345 | %if %have_pversion
|
|---|
| 346 | %message_bugzilla samba3
|
|---|
| 347 | %endif
|
|---|
| 348 | %if !%build_system
|
|---|
| 349 | %message_system
|
|---|
| 350 | %endif
|
|---|
| 351 | %if %build_non_default
|
|---|
| 352 | WARNING: This RPM was built with command-line options. Please
|
|---|
| 353 | see README.%{name}-mandrake-rpm in the documentation for
|
|---|
| 354 | more information.
|
|---|
| 355 | %endif
|
|---|
| 356 |
|
|---|
| 357 | %package server
|
|---|
| 358 | URL: http://www.samba.org
|
|---|
| 359 | Summary: Samba (SMB) server programs.
|
|---|
| 360 | Requires: %{name}-common = %{version}
|
|---|
| 361 | %if %have_rpmhelper
|
|---|
| 362 | PreReq: rpm-helper
|
|---|
| 363 | %endif
|
|---|
| 364 | Group: Networking/Other
|
|---|
| 365 | %if %build_system
|
|---|
| 366 | Provides: samba
|
|---|
| 367 | Obsoletes: samba
|
|---|
| 368 | Provides: samba-server-ldap
|
|---|
| 369 | Obsoletes: samba-server-ldap
|
|---|
| 370 | Provides: samba3-server
|
|---|
| 371 | Obsoletes: samba3-server
|
|---|
| 372 | %else
|
|---|
| 373 | #Provides: samba-server
|
|---|
| 374 | %endif
|
|---|
| 375 |
|
|---|
| 376 | %description server
|
|---|
| 377 | Samba-server provides a SMB server which can be used to provide
|
|---|
| 378 | network services to SMB (sometimes called "Lan Manager")
|
|---|
| 379 | clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
|
|---|
| 380 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
|
|---|
| 381 | protocol.
|
|---|
| 382 |
|
|---|
| 383 | Samba-3.0 features working NT Domain Control capability and
|
|---|
| 384 | includes the SWAT (Samba Web Administration Tool) that
|
|---|
| 385 | allows samba's smb.conf file to be remotely managed using your
|
|---|
| 386 | favourite web browser. For the time being this is being
|
|---|
| 387 | enabled on TCP port 901 via xinetd. SWAT is now included in
|
|---|
| 388 | it's own subpackage, samba-swat.
|
|---|
| 389 |
|
|---|
| 390 | Please refer to the WHATSNEW.txt document for fixup information.
|
|---|
| 391 | This binary release includes encrypted password support.
|
|---|
| 392 |
|
|---|
| 393 | Please read the smb.conf file and ENCRYPTION.txt in the
|
|---|
| 394 | docs directory for implementation details.
|
|---|
| 395 | %if %have_pversion
|
|---|
| 396 | %message_bugzilla samba3-server
|
|---|
| 397 | %endif
|
|---|
| 398 | %if !%build_system
|
|---|
| 399 | %message_system
|
|---|
| 400 | %endif
|
|---|
| 401 |
|
|---|
| 402 | %package client
|
|---|
| 403 | URL: http://www.samba.org
|
|---|
| 404 | Summary: Samba (SMB) client programs.
|
|---|
| 405 | Group: Networking/Other
|
|---|
| 406 | Requires: %{name}-common = %{version}
|
|---|
| 407 | %if %build_alternatives
|
|---|
| 408 | #Conflicts: samba-client < 2.2.8a-9mdk
|
|---|
| 409 | %endif
|
|---|
| 410 | %if %build_system
|
|---|
| 411 | Provides: samba3-client
|
|---|
| 412 | Obsoletes: samba3-client
|
|---|
| 413 | Obsoletes: smbfs
|
|---|
| 414 | %else
|
|---|
| 415 | #Provides: samba-client
|
|---|
| 416 | %endif
|
|---|
| 417 | %if !%build_system && %build_alternatives
|
|---|
| 418 | Provides: samba-client
|
|---|
| 419 | %endif
|
|---|
| 420 |
|
|---|
| 421 | %description client
|
|---|
| 422 | Samba-client provides some SMB clients, which complement the built-in
|
|---|
| 423 | SMB filesystem in Linux. These allow the accessing of SMB shares, and
|
|---|
| 424 | printing to SMB printers.
|
|---|
| 425 | %if %have_pversion
|
|---|
| 426 | %message_bugzilla samba3-client
|
|---|
| 427 | %endif
|
|---|
| 428 | %if !%build_system
|
|---|
| 429 | %message_system
|
|---|
| 430 | %endif
|
|---|
| 431 |
|
|---|
| 432 | %package common
|
|---|
| 433 | URL: http://www.samba.org
|
|---|
| 434 | Summary: Files used by both Samba servers and clients.
|
|---|
| 435 | Group: System/Servers
|
|---|
| 436 | %if %build_system
|
|---|
| 437 | Provides: samba-common-ldap
|
|---|
| 438 | Obsoletes: samba-common-ldap
|
|---|
| 439 | Provides: samba3-common
|
|---|
| 440 | Obsoletes: samba3-common
|
|---|
| 441 | %else
|
|---|
| 442 | #Provides: samba-common
|
|---|
| 443 | %endif
|
|---|
| 444 |
|
|---|
| 445 | %description common
|
|---|
| 446 | Samba-common provides files necessary for both the server and client
|
|---|
| 447 | packages of Samba.
|
|---|
| 448 | %if %have_pversion
|
|---|
| 449 | %message_bugzilla samba3-common
|
|---|
| 450 | %endif
|
|---|
| 451 | %if !%build_system
|
|---|
| 452 | %message_system
|
|---|
| 453 | %endif
|
|---|
| 454 |
|
|---|
| 455 | %package doc
|
|---|
| 456 | URL: http://www.samba.org
|
|---|
| 457 | Summary: Documentation for Samba servers and clients.
|
|---|
| 458 | Group: System/Servers
|
|---|
| 459 | Requires: %{name}-common = %{version}
|
|---|
| 460 | %if %build_system
|
|---|
| 461 | Obsoletes: samba3-doc
|
|---|
| 462 | Provides: samba3-doc
|
|---|
| 463 | %else
|
|---|
| 464 | #Provides: samba-doc
|
|---|
| 465 | %endif
|
|---|
| 466 |
|
|---|
| 467 | %description doc
|
|---|
| 468 | Samba-doc provides documentation files for both the server and client
|
|---|
| 469 | packages of Samba.
|
|---|
| 470 | %if %have_pversion
|
|---|
| 471 | %message_bugzilla samba3-doc
|
|---|
| 472 | %endif
|
|---|
| 473 | %if !%build_system
|
|---|
| 474 | %message_system
|
|---|
| 475 | %endif
|
|---|
| 476 |
|
|---|
| 477 | %package swat
|
|---|
| 478 | URL: http://www.samba.org
|
|---|
| 479 | Summary: The Samba Web Administration Tool.
|
|---|
| 480 | Requires: %{name}-server = %{version}
|
|---|
| 481 | Requires: xinetd
|
|---|
| 482 | Group: System/Servers
|
|---|
| 483 | %if %build_system
|
|---|
| 484 | Provides: samba-swat-ldap
|
|---|
| 485 | Obsoletes: samba-swat-ldap
|
|---|
| 486 | Provides: samba3-swat
|
|---|
| 487 | Obsoletes: samba3-swat
|
|---|
| 488 | %else
|
|---|
| 489 | #Provides: samba-swat
|
|---|
| 490 | %endif
|
|---|
| 491 |
|
|---|
| 492 | %description swat
|
|---|
| 493 | SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
|
|---|
| 494 | to be remotely managed using your favourite web browser. For the time
|
|---|
| 495 | being this is being enabled on TCP port 901 via xinetd. Note that
|
|---|
| 496 | SWAT does not use SSL encryption, nor does it preserve comments in
|
|---|
| 497 | your smb.conf file. Webmin uses SSL encryption by default, and
|
|---|
| 498 | preserves comments in configuration files, even if it does not display
|
|---|
| 499 | them, and is therefore the preferred method for remotely managing
|
|---|
| 500 | Samba.
|
|---|
| 501 | %if %have_pversion
|
|---|
| 502 | %message_bugzilla samba3-swat
|
|---|
| 503 | %endif
|
|---|
| 504 | %if !%build_system
|
|---|
| 505 | %message_system
|
|---|
| 506 | %endif
|
|---|
| 507 |
|
|---|
| 508 | %if %build_winbind
|
|---|
| 509 | %package winbind
|
|---|
| 510 | URL: http://www.samba.org
|
|---|
| 511 | Summary: Samba-winbind daemon, utilities and documentation
|
|---|
| 512 | Group: System/Servers
|
|---|
| 513 | Requires: %{name}-common = %{version}
|
|---|
| 514 | %endif
|
|---|
| 515 | %if %build_winbind && !%build_system
|
|---|
| 516 | Conflicts: samba-winbind
|
|---|
| 517 | %endif
|
|---|
| 518 | %if %build_winbind
|
|---|
| 519 | %description winbind
|
|---|
| 520 | Provides the winbind daemon and testing tools to allow authentication
|
|---|
| 521 | and group/user enumeration from a Windows or Samba domain controller.
|
|---|
| 522 | %endif
|
|---|
| 523 | %if %have_pversion
|
|---|
| 524 | %message_bugzilla samba3-winbind
|
|---|
| 525 | %endif
|
|---|
| 526 | %if !%build_system
|
|---|
| 527 | %message_system
|
|---|
| 528 | %endif
|
|---|
| 529 |
|
|---|
| 530 | %if %build_wins
|
|---|
| 531 | %package -n nss_wins%{samba_major}
|
|---|
| 532 | URL: http://www.samba.org
|
|---|
| 533 | Summary: Name Service Switch service for WINS
|
|---|
| 534 | Group: System/Servers
|
|---|
| 535 | Requires: %{name}-common = %{version}
|
|---|
| 536 | PreReq: glibc
|
|---|
| 537 | %endif
|
|---|
| 538 | %if %build_wins && !%build_system
|
|---|
| 539 | Conflicts: nss_wins
|
|---|
| 540 | %endif
|
|---|
| 541 | %if %build_wins
|
|---|
| 542 | %description -n nss_wins%{samba_major}
|
|---|
| 543 | Provides the libnss_wins shared library which resolves NetBIOS names to
|
|---|
| 544 | IP addresses.
|
|---|
| 545 | %endif
|
|---|
| 546 | %if %have_pversion
|
|---|
| 547 | %message_bugzilla nss_wins3
|
|---|
| 548 | %endif
|
|---|
| 549 | %if !%build_system
|
|---|
| 550 | %message_system
|
|---|
| 551 | %endif
|
|---|
| 552 |
|
|---|
| 553 | %if %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 554 | %package test
|
|---|
| 555 | URL: http://www.samba.org
|
|---|
| 556 | Summary: Debugging and benchmarking tools for samba
|
|---|
| 557 | Group: System/Servers
|
|---|
| 558 | Requires: %{name}-common = %{version}
|
|---|
| 559 | %endif
|
|---|
| 560 | %if %build_system && %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 561 | Provides: samba3-test samba3-debug
|
|---|
| 562 | Obsoletes: samba3-test samba3-debug
|
|---|
| 563 | %endif
|
|---|
| 564 | %if !%build_system && %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 565 | Provides: samba-test samba3-debug
|
|---|
| 566 | Obsoletes: samba3-debug
|
|---|
| 567 | %endif
|
|---|
| 568 | %if %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 569 |
|
|---|
| 570 | %description test
|
|---|
| 571 | This package provides tools for benchmarking samba, and debugging
|
|---|
| 572 | the correct operation of tools against smb servers.
|
|---|
| 573 | %endif
|
|---|
| 574 |
|
|---|
| 575 | %if %build_system
|
|---|
| 576 | %package -n %{libname}
|
|---|
| 577 | URL: http://www.samba.org
|
|---|
| 578 | Summary: SMB Client Library
|
|---|
| 579 | Group: System/Libraries
|
|---|
| 580 | Provides: libsmbclient
|
|---|
| 581 |
|
|---|
| 582 | %description -n %{libname}
|
|---|
| 583 | This package contains the SMB client library, part of the samba
|
|---|
| 584 | suite of networking software, allowing other software to access
|
|---|
| 585 | SMB shares.
|
|---|
| 586 | %endif
|
|---|
| 587 | %if %have_pversion && %build_system
|
|---|
| 588 | %message_bugzilla %{libname}
|
|---|
| 589 | %endif
|
|---|
| 590 |
|
|---|
| 591 | %if %build_system
|
|---|
| 592 | %package -n %{libname}-devel
|
|---|
| 593 | URL: http://www.samba.org
|
|---|
| 594 | Summary: SMB Client Library Development files
|
|---|
| 595 | Group: Development/C
|
|---|
| 596 | Provides: libsmbclient-devel
|
|---|
| 597 | Requires: %{libname} = %{version}-%{release}
|
|---|
| 598 |
|
|---|
| 599 | %description -n %{libname}-devel
|
|---|
| 600 | This package contains the development files for the SMB client
|
|---|
| 601 | library, part of the samba suite of networking software, allowing
|
|---|
| 602 | the development of other software to access SMB shares.
|
|---|
| 603 | %endif
|
|---|
| 604 | %if %have_pversion && %build_system
|
|---|
| 605 | %message_bugzilla %{libname}-devel
|
|---|
| 606 | %endif
|
|---|
| 607 |
|
|---|
| 608 | %if %build_system
|
|---|
| 609 | %package -n %{libname}-static-devel
|
|---|
| 610 | URL: http://www.samba.org
|
|---|
| 611 | Summary: SMB Client Static Library Development files
|
|---|
| 612 | Group: System/Libraries
|
|---|
| 613 | Provides: libsmbclient-static-devel = %{version}-%{release}
|
|---|
| 614 | Requires: %{libname}-devel = %{version}-%{release}
|
|---|
| 615 |
|
|---|
| 616 | %description -n %{libname}-static-devel
|
|---|
| 617 | This package contains the static development files for the SMB
|
|---|
| 618 | client library, part of the samba suite of networking software,
|
|---|
| 619 | allowing the development of other software to access SMB shares.
|
|---|
| 620 | %endif
|
|---|
| 621 | %if %have_pversion && %build_system
|
|---|
| 622 | %message_bugzilla %{libname}-devel
|
|---|
| 623 | %endif
|
|---|
| 624 |
|
|---|
| 625 | #%package passdb-ldap
|
|---|
| 626 | #URL: http://www.samba.org
|
|---|
| 627 | #Summary: Samba password database plugin for LDAP
|
|---|
| 628 | #Group: System/Libraries
|
|---|
| 629 | #
|
|---|
| 630 | #%description passdb-ldap
|
|---|
| 631 | #The passdb-ldap package for samba provides a password database
|
|---|
| 632 | #backend allowing samba to store account details in an LDAP
|
|---|
| 633 | #database
|
|---|
| 634 | #_if %have_pversion
|
|---|
| 635 | #_message_bugzilla samba3-passdb-ldap
|
|---|
| 636 | #_endif
|
|---|
| 637 | #_if !%build_system
|
|---|
| 638 | #_message_system
|
|---|
| 639 | #_endif
|
|---|
| 640 |
|
|---|
| 641 | %ifnarch alpha
|
|---|
| 642 | %package passdb-mysql
|
|---|
| 643 | URL: http://www.samba.org
|
|---|
| 644 | Summary: Samba password database plugin for MySQL
|
|---|
| 645 | Group: System/Libraries
|
|---|
| 646 | Requires: %{name}-server = %{version}-%{release}
|
|---|
| 647 | %endif
|
|---|
| 648 | %ifnarch alpha && %build_system
|
|---|
| 649 | Obsoletes: samba3-passdb-mysql
|
|---|
| 650 | Provides: samba3-passdb-mysql
|
|---|
| 651 | %endif
|
|---|
| 652 | %ifnarch alpha
|
|---|
| 653 |
|
|---|
| 654 | %description passdb-mysql
|
|---|
| 655 | The passdb-mysql package for samba provides a password database
|
|---|
| 656 | backend allowing samba to store account details in a MySQL
|
|---|
| 657 | database
|
|---|
| 658 | %endif
|
|---|
| 659 |
|
|---|
| 660 | #does postgresql build on alpha?
|
|---|
| 661 | #ifnarch alpha
|
|---|
| 662 | %package passdb-pgsql
|
|---|
| 663 | URL: http://www.samba.org
|
|---|
| 664 | Summary: Samba password database plugin for PostgreSQL
|
|---|
| 665 | Group: System/Libraries
|
|---|
| 666 | Requires: %{name}-server = %{version}-%{release}
|
|---|
| 667 | #endif
|
|---|
| 668 | #ifnarch alpha && %build_system
|
|---|
| 669 | %if %build_system
|
|---|
| 670 | Obsoletes: samba3-passdb-pgsql
|
|---|
| 671 | Provides: samba3-passdb-pgsql
|
|---|
| 672 | %endif
|
|---|
| 673 | #ifnarch alpha
|
|---|
| 674 |
|
|---|
| 675 | %description passdb-pgsql
|
|---|
| 676 | The passdb-pgsql package for samba provides a password database
|
|---|
| 677 | backend allowing samba to store account details in a PostgreSQL
|
|---|
| 678 | database
|
|---|
| 679 | #endif
|
|---|
| 680 |
|
|---|
| 681 | %package passdb-xml
|
|---|
| 682 | URL: http://www.samba.org
|
|---|
| 683 | Summary: Samba password database plugin for XML files
|
|---|
| 684 | Group: System/Libraries
|
|---|
| 685 | Requires: %{name}-server = %{version}-%{release}
|
|---|
| 686 | %if %build_system
|
|---|
| 687 | Obsoletes: samba3-passdb-xml
|
|---|
| 688 | Provides: samba3-passdb-xml
|
|---|
| 689 | %endif
|
|---|
| 690 |
|
|---|
| 691 | %description passdb-xml
|
|---|
| 692 | The passdb-xml package for samba provides a password database
|
|---|
| 693 | backend allowing samba to store account details in XML files.
|
|---|
| 694 | %if %have_pversion
|
|---|
| 695 | %message_bugzilla samba3-passdb-xml
|
|---|
| 696 | %endif
|
|---|
| 697 | %if !%build_system
|
|---|
| 698 | %message_system
|
|---|
| 699 | %endif
|
|---|
| 700 |
|
|---|
| 701 | #Antivirus packages:
|
|---|
| 702 | %if %build_clamav
|
|---|
| 703 | %package vscan-clamav
|
|---|
| 704 | Summary: On-access virus scanning for samba using Clam Antivirus
|
|---|
| 705 | Group: System/Servers
|
|---|
| 706 | Requires: %{name}-server = %{version}
|
|---|
| 707 | Provides: %{name}-vscan
|
|---|
| 708 | Requires: clamd
|
|---|
| 709 | %description vscan-clamav
|
|---|
| 710 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 711 | Clam antivirus scanner daemon.
|
|---|
| 712 | %endif
|
|---|
| 713 |
|
|---|
| 714 | %if %build_fprot
|
|---|
| 715 | %package vscan-fprot
|
|---|
| 716 | Summary: On-access virus scanning for samba using FPROT
|
|---|
| 717 | Group: System/Servers
|
|---|
| 718 | Requires: %{name}-server = %{version}
|
|---|
| 719 | Provides: %{name}-vscan
|
|---|
| 720 | %description vscan-fprot
|
|---|
| 721 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 722 | FPROT antivirus software (which must be installed to use this).
|
|---|
| 723 | %endif
|
|---|
| 724 |
|
|---|
| 725 | %if %build_fsav
|
|---|
| 726 | %package vscan-fsecure
|
|---|
| 727 | Summary: On-access virus scanning for samba using F-Secure
|
|---|
| 728 | Group: System/Servers
|
|---|
| 729 | Requires: %{name}-server = %{version}
|
|---|
| 730 | Provides: %{name}-vscan
|
|---|
| 731 | %description vscan-fsecure
|
|---|
| 732 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 733 | F-Secure antivirus software (which must be installed to use this).
|
|---|
| 734 | %endif
|
|---|
| 735 |
|
|---|
| 736 | %if %build_icap
|
|---|
| 737 | %package vscan-icap
|
|---|
| 738 | Summary: On-access virus scanning for samba using Clam Antivirus
|
|---|
| 739 | Group: System/Servers
|
|---|
| 740 | Requires: %{name}-server = %{version}
|
|---|
| 741 | Provides: %{name}-icap
|
|---|
| 742 | %description vscan-icap
|
|---|
| 743 | A vfs-module for samba to implement on-access scanning using
|
|---|
| 744 | ICAP-capable antivirus software.
|
|---|
| 745 | %endif
|
|---|
| 746 |
|
|---|
| 747 | %if %build_kaspersky
|
|---|
| 748 | %package vscan-kaspersky
|
|---|
| 749 | Summary: On-access virus scanning for samba using Kaspersky
|
|---|
| 750 | Group: System/Servers
|
|---|
| 751 | Requires: %{name}-server = %{version}
|
|---|
| 752 | Provides: %{name}-vscan
|
|---|
| 753 | %description vscan-kaspersky
|
|---|
| 754 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 755 | Kaspersky antivirus software (which must be installed to use this).
|
|---|
| 756 | %endif
|
|---|
| 757 |
|
|---|
| 758 | %if %build_mks
|
|---|
| 759 | %package vscan-mks
|
|---|
| 760 | Summary: On-access virus scanning for samba using MKS
|
|---|
| 761 | Group: System/Servers
|
|---|
| 762 | Requires: %{name}-server = %{version}
|
|---|
| 763 | Provides: %{name}-vscan
|
|---|
| 764 | %description vscan-mks
|
|---|
| 765 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 766 | MKS antivirus software (which must be installed to use this).
|
|---|
| 767 | %endif
|
|---|
| 768 |
|
|---|
| 769 | %if %build_nai
|
|---|
| 770 | %package vscan-nai
|
|---|
| 771 | Summary: On-access virus scanning for samba using NAI McAfee
|
|---|
| 772 | Group: System/Servers
|
|---|
| 773 | Requires: %{name}-server = %{version}
|
|---|
| 774 | Provides: %{name}-vscan
|
|---|
| 775 | %description vscan-nai
|
|---|
| 776 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 777 | NAI McAfee antivirus software (which must be installed to use this).
|
|---|
| 778 | %endif
|
|---|
| 779 |
|
|---|
| 780 | %if %build_openav
|
|---|
| 781 | %package vscan-openav
|
|---|
| 782 | Summary: On-access virus scanning for samba using OpenAntivirus
|
|---|
| 783 | Group: System/Servers
|
|---|
| 784 | Requires: %{name}-server = %{version}
|
|---|
| 785 | Provides: %{name}-vscan
|
|---|
| 786 | %description vscan-openav
|
|---|
| 787 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 788 | OpenAntivirus antivirus software (which must be installed to use this).
|
|---|
| 789 | %endif
|
|---|
| 790 |
|
|---|
| 791 | %if %build_sophos
|
|---|
| 792 | %package vscan-sophos
|
|---|
| 793 | Summary: On-access virus scanning for samba using Sophos
|
|---|
| 794 | Group: System/Servers
|
|---|
| 795 | Requires: %{name}-server = %{version}
|
|---|
| 796 | Provides: %{name}-vscan
|
|---|
| 797 | %description vscan-sophos
|
|---|
| 798 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 799 | Sophos antivirus software (which must be installed to use this).
|
|---|
| 800 | %endif
|
|---|
| 801 |
|
|---|
| 802 | %if %build_symantec
|
|---|
| 803 | %package vscan-symantec
|
|---|
| 804 | Summary: On-access virus scanning for samba using Symantec
|
|---|
| 805 | Group: System/Servers
|
|---|
| 806 | Requires: %{name}-server = %{version}
|
|---|
| 807 | Provides: %{name}-vscan
|
|---|
| 808 | Autoreq: 0
|
|---|
| 809 | %description vscan-symantec
|
|---|
| 810 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 811 | Symantec antivirus software (which must be installed to use this).
|
|---|
| 812 | %endif
|
|---|
| 813 |
|
|---|
| 814 |
|
|---|
| 815 | %if %build_trend
|
|---|
| 816 | %package vscan-trend
|
|---|
| 817 | Summary: On-access virus scanning for samba using Trend
|
|---|
| 818 | Group: System/Servers
|
|---|
| 819 | Requires: %{name}-server = %{version}
|
|---|
| 820 | Provides: %{name}-vscan
|
|---|
| 821 | %description vscan-trend
|
|---|
| 822 | A vfs-module for samba to implement on-access scanning using the
|
|---|
| 823 | Trend antivirus software (which must be installed to use this).
|
|---|
| 824 | %endif
|
|---|
| 825 |
|
|---|
| 826 | %prep
|
|---|
| 827 |
|
|---|
| 828 | # Allow users to query build options with --with options:
|
|---|
| 829 | #%define opt_status(%1) %(echo %{1})
|
|---|
| 830 | %if %{?_with_options:1}%{!?_with_options:0}
|
|---|
| 831 | %define opt_status(%{1}) %(if [ %{1} -eq 1 ];then echo enabled;else echo disabled;fi)
|
|---|
| 832 | #exit 1
|
|---|
| 833 | %{error: }
|
|---|
| 834 | %{error:Build options available are:}
|
|---|
| 835 | %{error:--with[out] system Build as the system samba package [or as samba3]}
|
|---|
| 836 | %{error:--with[out] acl Build with support for file ACLs - %opt_status %build_acl}
|
|---|
| 837 | %{error:--with[out] winbind Build with Winbind support - %opt_status %build_winbind}
|
|---|
| 838 | %{error:--with[out] wins Build with WINS name resolution support - %opt_status %build_wins}
|
|---|
| 839 | %{error:--with[out] ldap Build with legacy (samba2) LDAP support - %opt_status %build_ldap}
|
|---|
| 840 | %{error:--with[out] ads Build with Active Directory support - %opt_status %build_ads}
|
|---|
| 841 | %{error:--with[out] scanners Enable on-access virus scanners - %opt_status %build_scanners}
|
|---|
| 842 | %{error: }
|
|---|
| 843 | %else
|
|---|
| 844 | %{error: }
|
|---|
| 845 | %{error: This rpm has build options available, use --with options to see them}
|
|---|
| 846 | %{error: }
|
|---|
| 847 | %endif
|
|---|
| 848 |
|
|---|
| 849 | %if %{?_with_options:1}%{!?_with_options:0} && %build_scanners
|
|---|
| 850 | #{error:--with scanners enables the following:%{?build_clamav:clamav,}%{?build_icap:icap,}%{?build_fprot:fprot,}%{?build_mks:mks,}%{?build_openav:openav,}%{?build_sophos:sophos,}%{?build_symantec:symantec,}%{?build_trend:trend}}
|
|---|
| 851 | %{error:--with scanners enables the following: clamav,icap,fprot,fsav,mks,nai,openav,sophos,trend}
|
|---|
| 852 | %{error: }
|
|---|
| 853 | %{error:To enable others (requires development libraries for the scanner):}
|
|---|
| 854 | %{error:--with symantec Enable on-access scanning with Symantec - %opt_status %build_symantec}
|
|---|
| 855 | %{error: }
|
|---|
| 856 | %endif
|
|---|
| 857 |
|
|---|
| 858 | %if %{?_with_options:1}%{!?_with_options:0}
|
|---|
| 859 | clear
|
|---|
| 860 | exit 1
|
|---|
| 861 | %endif
|
|---|
| 862 |
|
|---|
| 863 |
|
|---|
| 864 | %if %build_non_default
|
|---|
| 865 | RPM_EXTRA_OPTIONS="\
|
|---|
| 866 | %{?_with_system: --with system}\
|
|---|
| 867 | %{?_without_system: --without system}\
|
|---|
| 868 | %{?_with_acl: --with acl}\
|
|---|
| 869 | %{?_without_acl: --without acl}\
|
|---|
| 870 | %{?_with_winbind: --with winbind}\
|
|---|
| 871 | %{?_without_winbind: --without winbind}\
|
|---|
| 872 | %{?_with_wins: --with wins}\
|
|---|
| 873 | %{?_without_wins: --without wins}\
|
|---|
| 874 | %{?_with_ldap: --with ldap}\
|
|---|
| 875 | %{?_without_ldap: --without ldap}\
|
|---|
| 876 | %{?_with_ads: --with ads}\
|
|---|
| 877 | %{?_without_ads: --without ads}\
|
|---|
| 878 | %{?_with_scanners: --with scanners}\
|
|---|
| 879 | %{?_without_scanners: --without scanners}\
|
|---|
| 880 | "
|
|---|
| 881 | echo "Building a non-default rpm with the following command-line arguments:"
|
|---|
| 882 | echo "$RPM_EXTRA_OPTIONS"
|
|---|
| 883 | echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
|
|---|
| 884 | echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
|
|---|
| 885 | echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
|
|---|
| 886 | echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
|
|---|
| 887 | %else
|
|---|
| 888 | echo "This rpm was built with default options">%{SOURCE7}
|
|---|
| 889 | echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
|
|---|
| 890 | %endif
|
|---|
| 891 |
|
|---|
| 892 | %if %build_vscan
|
|---|
| 893 | %setup -q -a 8 -n %{pkg_name}-%{source_ver}
|
|---|
| 894 | %else
|
|---|
| 895 | %setup -q -n %{pkg_name}-%{source_ver}
|
|---|
| 896 | %endif
|
|---|
| 897 | #%patch111 -p1
|
|---|
| 898 | %patch1 -p1 -b .smbw
|
|---|
| 899 | %patch4 -p1 -b .sbin
|
|---|
| 900 | %patch5 -p1
|
|---|
| 901 | # Version specific patches: current version
|
|---|
| 902 | %if !%have_pversion
|
|---|
| 903 | echo "Applying patches for current version: %{ver}"
|
|---|
| 904 | #%patch7 -p1 -b .lib64
|
|---|
| 905 | %patch9 -p1 -b .unixext
|
|---|
| 906 | #%patch10 -p1 -b .rpcclient-libs
|
|---|
| 907 | %patch11 -p1 -b .mdk
|
|---|
| 908 | %else
|
|---|
| 909 | # Version specific patches: upcoming version
|
|---|
| 910 | echo "Applying patches for new versions: %{pversion}"
|
|---|
| 911 | %patch8 -p1 -b .libsmbdir
|
|---|
| 912 | %endif
|
|---|
| 913 |
|
|---|
| 914 | # Limbo patches
|
|---|
| 915 | %if %have_pversion && %have_pre
|
|---|
| 916 | echo "Appling patches which should only be applied to prereleases"
|
|---|
| 917 | %endif
|
|---|
| 918 |
|
|---|
| 919 | # Fix quota compilation in glibc>2.3
|
|---|
| 920 | %if %mdkversion >= 910 && %mdkversion < 1000
|
|---|
| 921 | #grep "<linux/quota.h>" source/smbd/quotas.c >/dev/null && \
|
|---|
| 922 | perl -pi -e 's@<linux/quota.h>@<sys/quota.h>@' source/smbd/quotas.c
|
|---|
| 923 | %endif
|
|---|
| 924 |
|
|---|
| 925 | cp %{SOURCE7} .
|
|---|
| 926 |
|
|---|
| 927 | # Make a copy of examples so that we have a clean one for doc:
|
|---|
| 928 | cp -a examples examples.bin
|
|---|
| 929 |
|
|---|
| 930 | %if %build_vscan
|
|---|
| 931 | cp -a %{vscandir} %{vfsdir}
|
|---|
| 932 | #fix stupid directory names:
|
|---|
| 933 | #mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
|
|---|
| 934 | # Inline replacement of config dir
|
|---|
| 935 | for av in clamav fprotd fsav icap kavp mksd mcdaemon oav sophos symantec trend
|
|---|
| 936 | do
|
|---|
| 937 | [ -e %{vfsdir}/%{vscandir}/*/vscan-$av.h ] && perl -pi -e \
|
|---|
| 938 | 's,^#define PARAMCONF "/etc/samba,#define PARAMCONF "/etc/%{name},' \
|
|---|
| 939 | %{vfsdir}/%{vscandir}/*/vscan-$av.h
|
|---|
| 940 | done
|
|---|
| 941 | #Inline edit vscan header:
|
|---|
| 942 | perl -pi -e 's/^# define SAMBA_VERSION_MAJOR 2/# define SAMBA_VERSION_MAJOR 3/g;s/# define SAMBA_VERSION_MINOR 2/# define SAMBA_VERSION_MINOR 0/g' %{vfsdir}/%{vscandir}/include/vscan-global.h
|
|---|
| 943 | %endif
|
|---|
| 944 |
|
|---|
| 945 | # Edit some files when not building system samba:
|
|---|
| 946 | %if !%build_system
|
|---|
| 947 | perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
|
|---|
| 948 | %endif
|
|---|
| 949 |
|
|---|
| 950 | #remove cvs internal files from docs:
|
|---|
| 951 | find docs examples -name '.cvsignore' -exec rm -f {} \;
|
|---|
| 952 |
|
|---|
| 953 | #make better doc trees:
|
|---|
| 954 | chmod -R a+rX examples docs *Manifest* README Roadmap COPYING
|
|---|
| 955 | mkdir -p clean-docs/samba-doc
|
|---|
| 956 | cp -a examples docs clean-docs/samba-doc
|
|---|
| 957 | mv -f clean-docs/samba-doc/examples/libsmbclient clean-docs/
|
|---|
| 958 | rm -Rf clean-docs/samba-doc/docs/{docbook,manpages,htmldocs,using_samba}
|
|---|
| 959 | ln -s %{_datadir}/swat%{samba_major}/using_samba/ clean-docs/samba-doc/docs/using_samba
|
|---|
| 960 | ln -sf %{_datadir}/swat%{samba_major}/help/ clean-docs/samba-doc/docs/htmldocs
|
|---|
| 961 |
|
|---|
| 962 | %build
|
|---|
| 963 | #%serverbuild
|
|---|
| 964 | (cd source
|
|---|
| 965 | CFLAGS=`echo "$RPM_OPT_FLAGS"|sed -e 's/-g//g'`
|
|---|
| 966 | %if %gcc331
|
|---|
| 967 | CFLAGS=`echo "$CFLAGS"|sed -e 's/-O2/-O/g'`
|
|---|
| 968 | %endif
|
|---|
| 969 | ./autogen.sh
|
|---|
| 970 | # Don't use --with-fhs now, since it overrides libdir, it sets configdir,
|
|---|
| 971 | # lockdir,piddir logfilebase,privatedir and swatdir
|
|---|
| 972 | %configure --prefix=%{_prefix} \
|
|---|
| 973 | --sysconfdir=%{_sysconfdir}/%{name} \
|
|---|
| 974 | --localstatedir=/var \
|
|---|
| 975 | --with-libdir=%{_libdir}/%{name} \
|
|---|
| 976 | --with-privatedir=%{_sysconfdir}/%{name} \
|
|---|
| 977 | --with-lockdir=/var/cache/%{name} \
|
|---|
| 978 | --with-piddir=/var/run \
|
|---|
| 979 | --with-swatdir=%{_datadir}/swat%{samba_major} \
|
|---|
| 980 | --with-configdir=%{_sysconfdir}/%{name} \
|
|---|
| 981 | --with-logfilebase=/var/log/%{name} \
|
|---|
| 982 | %if !%build_ads
|
|---|
| 983 | --with-ads=no \
|
|---|
| 984 | %endif
|
|---|
| 985 | --with-automount \
|
|---|
| 986 | --with-smbmount \
|
|---|
| 987 | --with-pam \
|
|---|
| 988 | --with-pam_smbpass \
|
|---|
| 989 | %if %build_ldap
|
|---|
| 990 | --with-ldapsam \
|
|---|
| 991 | %endif
|
|---|
| 992 | --with-tdbsam \
|
|---|
| 993 | --with-syslog \
|
|---|
| 994 | --with-quotas \
|
|---|
| 995 | --with-utmp \
|
|---|
| 996 | --with-manpages-langs=en \
|
|---|
| 997 | %if %build_acl
|
|---|
| 998 | --with-acl-support \
|
|---|
| 999 | %endif
|
|---|
| 1000 | --disable-mysqltest \
|
|---|
| 1001 | --with-expsam=%build_expsam \
|
|---|
| 1002 | --program-suffix=%{samba_major}
|
|---|
| 1003 | # --with-shared-modules=pdb_ldap,idmap_ldap \
|
|---|
| 1004 | # --with-manpages-langs=en,ja,pl \
|
|---|
| 1005 | #_if !%build_system
|
|---|
| 1006 | # --with-smbwrapper \
|
|---|
| 1007 | #_endif
|
|---|
| 1008 | # --with-nisplussam \
|
|---|
| 1009 | # --with-fhs \
|
|---|
| 1010 |
|
|---|
| 1011 | #Fix the make file so we don't create debug information on 9.2
|
|---|
| 1012 | %if %mdkversion == 920
|
|---|
| 1013 | perl -pi -e 's/-g //g' Makefile
|
|---|
| 1014 | %endif
|
|---|
| 1015 |
|
|---|
| 1016 | perl -pi -e 's|-Wl,-rpath,%{_libdir}||g;s|-Wl,-rpath -Wl,%{_libdir}||g' Makefile
|
|---|
| 1017 |
|
|---|
| 1018 | make proto_exists
|
|---|
| 1019 | %make all libsmbclient smbfilter wins modules %{?_with_test: torture debug3html bin/log2pcap} bin/editreg bin/smbget client/mount.cifs
|
|---|
| 1020 |
|
|---|
| 1021 | )
|
|---|
| 1022 |
|
|---|
| 1023 | # Build mkntpasswd in examples/LDAP/ for smbldaptools
|
|---|
| 1024 | make -C examples.bin/LDAP/smbldap-tools/mkntpwd
|
|---|
| 1025 |
|
|---|
| 1026 | %if %build_vscan
|
|---|
| 1027 | echo -e "\n\nBuild antivirus VFS modules\n\n"
|
|---|
| 1028 | pushd %{vfsdir}/%{vscandir}
|
|---|
| 1029 | %configure
|
|---|
| 1030 | #sed -i -e 's,openantivirus,oav,g' Makefile
|
|---|
| 1031 | sed -i -e 's,^\(.*clamd socket name.*=\).*,\1 /var/lib/clamav/clamd.socket,g' clamav/vscan-clamav.conf
|
|---|
| 1032 | make
|
|---|
| 1033 | popd
|
|---|
| 1034 | %endif
|
|---|
| 1035 |
|
|---|
| 1036 | # Build antivirus vfs objects
|
|---|
| 1037 | %if %build_symantec
|
|---|
| 1038 | echo "Building Symantec"
|
|---|
| 1039 | make -C %{vfsdir}/%{vscandir} symantec
|
|---|
| 1040 | %endif
|
|---|
| 1041 |
|
|---|
| 1042 | %install
|
|---|
| 1043 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 1044 | mkdir -p $RPM_BUILD_ROOT
|
|---|
| 1045 |
|
|---|
| 1046 | #Ensure all docs are readable
|
|---|
| 1047 | chmod a+r docs -R
|
|---|
| 1048 |
|
|---|
| 1049 | # Any entries here mean samba makefile is *really* broken:
|
|---|
| 1050 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
|
|---|
| 1051 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}
|
|---|
| 1052 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
|
|---|
| 1053 |
|
|---|
| 1054 | (cd source
|
|---|
| 1055 | make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}/%{name} MANDIR=%{_mandir} install installclientlib installmodules)
|
|---|
| 1056 |
|
|---|
| 1057 | install -m755 source/bin/{editreg,smbget} %{buildroot}/%{_bindir}
|
|---|
| 1058 |
|
|---|
| 1059 | #need to stay
|
|---|
| 1060 | mkdir -p $RPM_BUILD_ROOT/{sbin,bin}
|
|---|
| 1061 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,pam.d,xinetd.d}
|
|---|
| 1062 | mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
|
|---|
| 1063 | mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
|
|---|
| 1064 | mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
|
|---|
| 1065 | mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
|
|---|
| 1066 | mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
|
|---|
| 1067 | mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/{netlogon,profiles,printers}
|
|---|
| 1068 | mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
|
|---|
| 1069 | mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/codepages/src
|
|---|
| 1070 | mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
|
|---|
| 1071 | mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 1072 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
|
|---|
| 1073 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
|
|---|
| 1074 |
|
|---|
| 1075 | #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
|
|---|
| 1076 | #install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
|
|---|
| 1077 | install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass%{samba_major}.so
|
|---|
| 1078 | install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind.so
|
|---|
| 1079 |
|
|---|
| 1080 | install -m755 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
|
|---|
| 1081 | pushd $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 1082 | [ -f libsmbclient.so ] && mv -f libsmbclient.so libsmbclient.so.%{libsmbmajor}
|
|---|
| 1083 | ln -sf libsmbclient.so.%{libsmbmajor} libsmbclient.so
|
|---|
| 1084 | popd
|
|---|
| 1085 |
|
|---|
| 1086 | # smbsh forgotten
|
|---|
| 1087 | #install -m 755 source/bin/smbsh $RPM_BUILD_ROOT%{_bindir}/
|
|---|
| 1088 |
|
|---|
| 1089 | %if %build_vscan
|
|---|
| 1090 | %makeinstall_std -C %{vfsdir}/%{vscandir}
|
|---|
| 1091 | install -m 644 %{vfsdir}/%{vscandir}/*/vscan-*.conf %{buildroot}/%{_sysconfdir}/%{name}
|
|---|
| 1092 | %endif
|
|---|
| 1093 |
|
|---|
| 1094 | #libnss_* not handled by make:
|
|---|
| 1095 | # Install the nsswitch library extension file
|
|---|
| 1096 | for i in wins winbind; do
|
|---|
| 1097 | install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/%{_lib}/libnss_${i}.so
|
|---|
| 1098 | done
|
|---|
| 1099 | # Make link for wins and winbind resolvers
|
|---|
| 1100 | ( cd $RPM_BUILD_ROOT/%{_lib}; ln -s libnss_wins.so libnss_wins.so.2; ln -s libnss_winbind.so libnss_winbind.so.2)
|
|---|
| 1101 |
|
|---|
| 1102 | %if %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 1103 | for i in {%{testbin}};do
|
|---|
| 1104 | install -m755 source/bin/${i} $RPM_BUILD_ROOT/%{_bindir}/${i}%{samba_major}
|
|---|
| 1105 | done
|
|---|
| 1106 | %endif
|
|---|
| 1107 |
|
|---|
| 1108 | # Install other stuff
|
|---|
| 1109 |
|
|---|
| 1110 | # install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/
|
|---|
| 1111 | install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/smbusers
|
|---|
| 1112 | install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
|
|---|
| 1113 | #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
|
|---|
| 1114 | install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
|
|---|
| 1115 | install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_initrddir}/smb%{samba_major}
|
|---|
| 1116 | install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
|
|---|
| 1117 | install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_initrddir}/winbind
|
|---|
| 1118 | # install -m755 packaging/Mandrake/wrepld.init $RPM_BUILD_ROOT/%{_initrddir}/wrepld%{samba_major}
|
|---|
| 1119 | install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind
|
|---|
| 1120 | install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/%{name}
|
|---|
| 1121 | install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/system-auth-winbind
|
|---|
| 1122 | #
|
|---|
| 1123 | install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/%{name}
|
|---|
| 1124 | # install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
|
|---|
| 1125 |
|
|---|
| 1126 | # Install smbldap-tools scripts:
|
|---|
| 1127 | for i in examples/LDAP/smbldap-tools/*.pl; do
|
|---|
| 1128 | install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
|
|---|
| 1129 | ln -s %{_datadir}/%{name}/scripts/`basename $i` $RPM_BUILD_ROOT/%{_bindir}/`basename $i|sed -e 's/\.pl//g'`%{samba_major}
|
|---|
| 1130 | done
|
|---|
| 1131 |
|
|---|
| 1132 | install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
|
|---|
| 1133 |
|
|---|
| 1134 | # The conf file
|
|---|
| 1135 | install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
|
|---|
| 1136 |
|
|---|
| 1137 | #Fix the smbldap-tools when not system samba:
|
|---|
| 1138 | %if !%build_system
|
|---|
| 1139 | perl -pi -e 's/^(use|package)(\s+)smbldap_(\w+);$/${1}${2}smbldap_${3}%{samba_major};/g' \
|
|---|
| 1140 | %{buildroot}/%{_sysconfdir}/%{name}/smbldap_conf.pm \
|
|---|
| 1141 | %{buildroot}/%{_datadir}/%{name}/scripts/smbldap*.p?
|
|---|
| 1142 | perl -pi -e 's,/usr/local/sbin/mkntpwd,/usr/sbin/mkntpwd%{samba_major},g;s,553,421,g' %{buildroot}/%{_sysconfdir}/%{name}/smbldap_conf.pm
|
|---|
| 1143 | perl -pi -e 's,\$smbldap_conf::SID,\$smbldap_conf3::SID,g' %{buildroot}/%{_datadir}/%{name}/scripts/smbldap*.p?
|
|---|
| 1144 | %endif
|
|---|
| 1145 | perl -pi -e 's,/usr/local/sbin/smbldap-passwd.pl,%{_datadir}/%{name}/scripts/smbldap-passwd.pl,g' %{buildroot}/%{_datadir}/%{name}/scripts/smbldap-useradd.pl
|
|---|
| 1146 |
|
|---|
| 1147 | # Link both smbldap*.pm into vendor-perl (any better ideas?)
|
|---|
| 1148 | mkdir -p %{buildroot}/%{perl_vendorlib}
|
|---|
| 1149 | ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/smbldap_conf%{samba_major}.pm
|
|---|
| 1150 | ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/smbldap_tools%{samba_major}.pm
|
|---|
| 1151 | #mkntpwd
|
|---|
| 1152 | install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}/mkntpwd%{samba_major}
|
|---|
| 1153 |
|
|---|
| 1154 | # Samba smbpasswd migration script:
|
|---|
| 1155 | install -m755 examples/LDAP/convertSambaAccount $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
|
|---|
| 1156 |
|
|---|
| 1157 | # make a conf file for winbind from the default one:
|
|---|
| 1158 | cat packaging/Mandrake/smb.conf|sed -e 's/^; winbind/ winbind/g;s/^; obey pam/ obey pam/g; s/^; printer admin = @"D/ printer admin = @"D/g;s/^; password server = \*/ password server = \*/g;s/^; template/ template/g; s/^ security = user/ security = domain/g' > packaging/Mandrake/smb-winbind.conf
|
|---|
| 1159 | install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb-winbind.conf
|
|---|
| 1160 |
|
|---|
| 1161 | # Some inline fixes for smb.conf for non-winbind use
|
|---|
| 1162 | install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1163 | cat packaging/Mandrake/smb.conf | \
|
|---|
| 1164 | sed -e 's/^; printer admin = @adm/ printer admin = @adm/g' >$RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1165 | %if %build_cupspc
|
|---|
| 1166 | perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1167 | perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb-winbind.conf
|
|---|
| 1168 | %endif
|
|---|
| 1169 |
|
|---|
| 1170 | #%if !%build_system
|
|---|
| 1171 | # Fix script paths in smb.conf
|
|---|
| 1172 | #perl -pi -e 's,%{_datadir}/samba,%{_datadir}/%{name},g' %{buildroot}/%{_sysconfdir}/%{name}/smb*.conf
|
|---|
| 1173 | #%endif
|
|---|
| 1174 |
|
|---|
| 1175 |
|
|---|
| 1176 | #install mount.cifs
|
|---|
| 1177 | install -m755 source/client/mount.cifs %{buildroot}/bin/mount.cifs%{samba_major}
|
|---|
| 1178 |
|
|---|
| 1179 | echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/lmhosts
|
|---|
| 1180 |
|
|---|
| 1181 | # Link smbspool to CUPS (does not require installed CUPS)
|
|---|
| 1182 |
|
|---|
| 1183 | mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
|
|---|
| 1184 | ln -s %{_bindir}/smbspool%{alternative_major} $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{alternative_major}
|
|---|
| 1185 |
|
|---|
| 1186 | # xinetd support
|
|---|
| 1187 |
|
|---|
| 1188 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d
|
|---|
| 1189 | install -m644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/swat%{samba_major}
|
|---|
| 1190 |
|
|---|
| 1191 | # menu support
|
|---|
| 1192 |
|
|---|
| 1193 | mkdir -p $RPM_BUILD_ROOT%{_menudir}
|
|---|
| 1194 | cat > $RPM_BUILD_ROOT%{_menudir}/%{name}-swat << EOF
|
|---|
| 1195 | ?package(%{name}-swat):\
|
|---|
| 1196 | command="gnome-moz-remote http://localhost:901/" \
|
|---|
| 1197 | needs="gnome" \
|
|---|
| 1198 | icon="swat%{samba_major}.png" \
|
|---|
| 1199 | section="Configuration/Networking" \
|
|---|
| 1200 | title="Samba Configuration (SWAT)" \
|
|---|
| 1201 | longtitle="The Swat Samba Administration Tool"
|
|---|
| 1202 | ?package(%{name}-swat):\
|
|---|
| 1203 | command="sh -c '\$BROWSER http://localhost:901/'" \
|
|---|
| 1204 | needs="x11" \
|
|---|
| 1205 | icon="swat%{samba_major}.png" \
|
|---|
| 1206 | section="Configuration/Networking" \
|
|---|
| 1207 | title="Samba Configuration (SWAT)" \
|
|---|
| 1208 | longtitle="The Swat Samba Administration Tool"
|
|---|
| 1209 | EOF
|
|---|
| 1210 |
|
|---|
| 1211 | mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
|
|---|
| 1212 |
|
|---|
| 1213 | bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.png
|
|---|
| 1214 | bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.png
|
|---|
| 1215 | bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.png
|
|---|
| 1216 |
|
|---|
| 1217 | bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
|
|---|
| 1218 | bzcat %{SOURCE11}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/smb-migrate
|
|---|
| 1219 |
|
|---|
| 1220 | # Fix configs when not building system samba:
|
|---|
| 1221 |
|
|---|
| 1222 | #Client binaries will have suffixes while we use alternatives, even
|
|---|
| 1223 | # if we are system samba
|
|---|
| 1224 | %if !%build_system || %build_alternatives
|
|---|
| 1225 | for OLD in %{buildroot}/%{_bindir}/{%{clientbin}} %{buildroot}/bin/%{client_bin} %{buildroot}/%{_libdir}/cups/backend/smb
|
|---|
| 1226 | do
|
|---|
| 1227 | NEW=`echo ${OLD}%{alternative_major}`
|
|---|
| 1228 | [ -e $OLD ] && mv -f $OLD $NEW
|
|---|
| 1229 | done
|
|---|
| 1230 | for OLD in %{buildroot}/%{_mandir}/man?/{%{clientbin}}* %{buildroot}/%{_mandir}/man?/%{client_bin}*
|
|---|
| 1231 | do
|
|---|
| 1232 | if [ -e $OLD ]
|
|---|
| 1233 | then
|
|---|
| 1234 | BASE=`perl -e '$_="'${OLD}'"; m,(%buildroot)(.*?)(\.[0-9]),;print "$1$2\n";'`
|
|---|
| 1235 | EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
|
|---|
| 1236 | NEW=`echo ${BASE}%{alternative_major}${EXT}`
|
|---|
| 1237 | mv $OLD $NEW
|
|---|
| 1238 | fi
|
|---|
| 1239 | done
|
|---|
| 1240 | %endif
|
|---|
| 1241 | rm -f %{buildroot}/sbin/mount.smbfs
|
|---|
| 1242 | # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
|
|---|
| 1243 | #I don't think it's possible for make to do this ...
|
|---|
| 1244 | (cd $RPM_BUILD_ROOT/sbin
|
|---|
| 1245 | ln -s ..%{_bindir}/smbmount%{alternative_major} mount.smb%{alternative_major}
|
|---|
| 1246 | ln -s ..%{_bindir}/smbmount%{alternative_major} mount.smbfs%{alternative_major}
|
|---|
| 1247 | )
|
|---|
| 1248 | # Server/common binaries are versioned only if not system samba:
|
|---|
| 1249 | %if !%build_system
|
|---|
| 1250 | for OLD in %{buildroot}/%{_bindir}/{%{commonbin}} %{buildroot}/%{_bindir}/{%{serverbin}} %{buildroot}/%{_sbindir}/{%{serversbin},swat}
|
|---|
| 1251 | do
|
|---|
| 1252 | NEW=`echo ${OLD}%{alternative_major}`
|
|---|
| 1253 | mv $OLD $NEW -f ||:
|
|---|
| 1254 | done
|
|---|
| 1255 | # And the man pages too:
|
|---|
| 1256 | for OLD in %{buildroot}/%{_mandir}/man?/{%{commonbin},%{serverbin},%{serversbin},swat,{%testbin},smb.conf,lmhosts}*
|
|---|
| 1257 | do
|
|---|
| 1258 | if [ -e $OLD ]
|
|---|
| 1259 | then
|
|---|
| 1260 | BASE=`perl -e '$_="'${OLD}'"; m,(%buildroot)(.*?)(\.[0-9]),;print "$1$2\n";'`
|
|---|
| 1261 | # BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
|
|---|
| 1262 | EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
|
|---|
| 1263 | NEW=`echo ${BASE}%{samba_major}${EXT}`
|
|---|
| 1264 | mv $OLD $NEW
|
|---|
| 1265 | fi
|
|---|
| 1266 | done
|
|---|
| 1267 | # Replace paths in config files and init scripts:
|
|---|
| 1268 | for i in smb ;do
|
|---|
| 1269 | perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/%{_initrddir}/${i}%{samba_major}
|
|---|
| 1270 | done
|
|---|
| 1271 | for i in %{_sysconfdir}/%{name}/smb.conf %{_initrddir}/smb%{samba_major} %{_sbindir}/%{name} %{_initrddir}/winbind /%{_sysconfdir}/logrotate.d/%{name} /%{_sysconfdir}/xinetd.d/swat%{samba_major} %{_initrddir}/wrepld%{samba_major}; do
|
|---|
| 1272 | perl -pi -e 's,/%{pkg_name},/%{name},g; s,smbd,%{_sbindir}/smbd%{samba_major},g; s,nmbd,%{_sbindir}/nmbd%{samba_major},g; s,/usr/sbin/swat,%{_sbindir}/swat%{samba_major},g;s,wrepld,%{_sbindir}/wrepld%{samba_major},g' $RPM_BUILD_ROOT/$i;
|
|---|
| 1273 | done
|
|---|
| 1274 | # Fix xinetd file for swat:
|
|---|
| 1275 | perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/swat%{samba_major}
|
|---|
| 1276 | %endif
|
|---|
| 1277 |
|
|---|
| 1278 | #Clean up unpackaged files:
|
|---|
| 1279 | for i in %{_bindir}/pam_smbpass.so %{_bindir}/smbwrapper.so;do
|
|---|
| 1280 | rm -f %{buildroot}/$i
|
|---|
| 1281 | done
|
|---|
| 1282 |
|
|---|
| 1283 | # (sb) make a smb.conf.clean we can use for the merge, since an existing
|
|---|
| 1284 | # smb.conf won't get overwritten
|
|---|
| 1285 | cp $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf $RPM_BUILD_ROOT/%{_datadir}/%{name}/smb.conf.clean
|
|---|
| 1286 |
|
|---|
| 1287 | # (sb) leave a README.mdk.conf to explain what has been done
|
|---|
| 1288 | cat << EOF > $RPM_BUILD_ROOT/%{_datadir}/%{name}/README.mdk.conf
|
|---|
| 1289 | In order to facilitate upgrading an existing samba install, and merging
|
|---|
| 1290 | previous configuration data with any new syntax used by samba3, a merge
|
|---|
| 1291 | script has attempted to combine your local configuration data with the
|
|---|
| 1292 | new conf file format. The merged data is in smb.conf, with comments like
|
|---|
| 1293 |
|
|---|
| 1294 | # *** merged from original smb.conf: ***
|
|---|
| 1295 |
|
|---|
| 1296 | near the additional entries. Any local shares should have been appended to
|
|---|
| 1297 | smb.conf. A log of what took place should be in:
|
|---|
| 1298 |
|
|---|
| 1299 | /var/log/samba/smb-migrate.log
|
|---|
| 1300 |
|
|---|
| 1301 | A clean samba3 smb.conf is in /usr/share/samba, named smb.conf.clean.
|
|---|
| 1302 | Your original conf should be /etc/samba/smb.conf.tomerge.
|
|---|
| 1303 |
|
|---|
| 1304 | The actual merge script is /usr/share/samba/scripts/smb-migrate.
|
|---|
| 1305 |
|
|---|
| 1306 | Questions/issues: sbenedict@mandrakesoft.com
|
|---|
| 1307 |
|
|---|
| 1308 | EOF
|
|---|
| 1309 |
|
|---|
| 1310 | %clean
|
|---|
| 1311 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 1312 |
|
|---|
| 1313 | %post server
|
|---|
| 1314 |
|
|---|
| 1315 | %_post_service smb%{samba_major}
|
|---|
| 1316 | #%_post_service wrepld%{samba_major}
|
|---|
| 1317 |
|
|---|
| 1318 | # Add a unix group for samba machine accounts
|
|---|
| 1319 | groupadd -frg 421 machines
|
|---|
| 1320 |
|
|---|
| 1321 | # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
|
|---|
| 1322 | for i in /var/lock/samba/*.tdb
|
|---|
| 1323 | do
|
|---|
| 1324 | if [ -f $i ]; then
|
|---|
| 1325 | newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
|
|---|
| 1326 | echo "Moving $i to $newname"
|
|---|
| 1327 | mv $i $newname
|
|---|
| 1328 | fi
|
|---|
| 1329 | done
|
|---|
| 1330 |
|
|---|
| 1331 | %post common
|
|---|
| 1332 | # Basic migration script for pre-2.2.1 users,
|
|---|
| 1333 | # since smb config moved from /etc to %{_sysconfdir}/samba
|
|---|
| 1334 |
|
|---|
| 1335 | # Let's create a proper %{_sysconfdir}/samba/smbpasswd file
|
|---|
| 1336 | [ -f %{_sysconfdir}/%{name}/smbpasswd ] || {
|
|---|
| 1337 | echo "Creating password file for samba..."
|
|---|
| 1338 | touch %{_sysconfdir}/%{name}/smbpasswd
|
|---|
| 1339 | }
|
|---|
| 1340 |
|
|---|
| 1341 | # And this too, in case we don't have smbd to create it for us
|
|---|
| 1342 | [ -f /var/cache/%{name}/unexpected.tdb ] || {
|
|---|
| 1343 | touch /var/cache/%{name}/unexpected.tdb
|
|---|
| 1344 | }
|
|---|
| 1345 |
|
|---|
| 1346 | # Let's define the proper paths for config files
|
|---|
| 1347 | perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' %{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1348 |
|
|---|
| 1349 | # Fix the logrotate.d file from smb and nmb to smbd and nmbd
|
|---|
| 1350 | if [ -f %{_sysconfdir}/logrotate.d/samba ]; then
|
|---|
| 1351 | perl -pi -e 's/smb /smbd /' %{_sysconfdir}/logrotate.d/samba
|
|---|
| 1352 | perl -pi -e 's/nmb /nmbd /' %{_sysconfdir}/logrotate.d/samba
|
|---|
| 1353 | fi
|
|---|
| 1354 |
|
|---|
| 1355 | # And not loose our machine account SID
|
|---|
| 1356 | [ -f %{_sysconfdir}/MACHINE.SID ] && mv -f %{_sysconfdir}/MACHINE.SID %{_sysconfdir}/%{name}/ ||:
|
|---|
| 1357 |
|
|---|
| 1358 | %triggerpostun common -- samba-common < 3.0.1-3mdk
|
|---|
| 1359 | # (sb) merge any existing smb.conf with new syntax file
|
|---|
| 1360 | if [ $1 = 2 ]; then
|
|---|
| 1361 | # (sb) save existing smb.conf for merge
|
|---|
| 1362 | echo "Upgrade: copy smb.conf to smb.conf.tomerge for merging..."
|
|---|
| 1363 | cp -f %{_sysconfdir}/%{name}/smb.conf %{_sysconfdir}/%{name}/smb.conf.tomerge
|
|---|
| 1364 | echo "Upgrade: merging previous smb.conf..."
|
|---|
| 1365 | if [ -f %{_datadir}/%{name}/smb.conf.clean ]; then
|
|---|
| 1366 | cp %{_datadir}/%{name}/smb.conf.clean %{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1367 | cp %{_datadir}/%{name}/README.mdk.conf %{_sysconfdir}/%{name}/
|
|---|
| 1368 | %{_datadir}/%{name}/scripts/smb-migrate commit
|
|---|
| 1369 | fi
|
|---|
| 1370 | fi
|
|---|
| 1371 |
|
|---|
| 1372 | %postun common
|
|---|
| 1373 | if [ -f %{_sysconfdir}/%{name}/README.mdk.conf ];then rm -f %{_sysconfdir}/%{name}/README.mdk.conf;fi
|
|---|
| 1374 |
|
|---|
| 1375 | %if %build_winbind
|
|---|
| 1376 | %post winbind
|
|---|
| 1377 | if [ $1 = 1 ]; then
|
|---|
| 1378 | /sbin/chkconfig winbind on
|
|---|
| 1379 | cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
|
|---|
| 1380 | cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmtemp
|
|---|
| 1381 | for i in passwd group;do
|
|---|
| 1382 | grep ^$i %{_sysconfdir}/nsswitch.conf |grep -v 'winbind' >/dev/null
|
|---|
| 1383 | if [ $? = 0 ];then
|
|---|
| 1384 | echo "Adding a winbind entry to the $i section of %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1385 | awk '/^'$i'/ {print $0 " winbind"};!/^'$i'/ {print}' %{_sysconfdir}/nsswitch.conf.rpmtemp >%{_sysconfdir}/nsswitch.conf;
|
|---|
| 1386 | cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmtemp
|
|---|
| 1387 | else
|
|---|
| 1388 | echo "$i entry found in %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1389 | fi
|
|---|
| 1390 | done
|
|---|
| 1391 | if [ -f %{_sysconfdir}/nsswitch.conf.rpmtemp ];then rm -f %{_sysconfdir}/nsswitch.conf.rpmtemp;fi
|
|---|
| 1392 | fi
|
|---|
| 1393 |
|
|---|
| 1394 | %preun winbind
|
|---|
| 1395 | if [ $1 = 0 ]; then
|
|---|
| 1396 | echo "Removing winbind entries from %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1397 | perl -pi -e 's/ winbind//' %{_sysconfdir}/nsswitch.conf
|
|---|
| 1398 |
|
|---|
| 1399 | /sbin/chkconfig winbind reset
|
|---|
| 1400 | fi
|
|---|
| 1401 | %endif %build_winbind
|
|---|
| 1402 |
|
|---|
| 1403 | %if %build_wins
|
|---|
| 1404 | %post -n nss_wins%{samba_major}
|
|---|
| 1405 | if [ $1 = 1 ]; then
|
|---|
| 1406 | cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
|
|---|
| 1407 | grep '^hosts' %{_sysconfdir}/nsswitch.conf |grep -v 'wins' >/dev/null
|
|---|
| 1408 | if [ $? = 0 ];then
|
|---|
| 1409 | echo "Adding a wins entry to the hosts section of %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1410 | awk '/^hosts/ {print $0 " wins"};!/^hosts/ {print}' %{_sysconfdir}/nsswitch.conf.rpmsave >%{_sysconfdir}/nsswitch.conf;
|
|---|
| 1411 | else
|
|---|
| 1412 | echo "wins entry found in %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1413 | fi
|
|---|
| 1414 | # else
|
|---|
| 1415 | # echo "Upgrade, leaving nsswitch.conf intact"
|
|---|
| 1416 | fi
|
|---|
| 1417 |
|
|---|
| 1418 | %preun -n nss_wins%{samba_major}
|
|---|
| 1419 | if [ $1 = 0 ]; then
|
|---|
| 1420 | echo "Removing wins entry from %{_sysconfdir}/nsswitch.conf"
|
|---|
| 1421 | perl -pi -e 's/ wins//' %{_sysconfdir}/nsswitch.conf
|
|---|
| 1422 | #else
|
|---|
| 1423 | # echo "Leaving %{_sysconfdir}/nsswitch.conf intact"
|
|---|
| 1424 | fi
|
|---|
| 1425 | %endif %build_wins
|
|---|
| 1426 |
|
|---|
| 1427 | %preun server
|
|---|
| 1428 |
|
|---|
| 1429 | %_preun_service smb%{samba_major}
|
|---|
| 1430 | #%_preun_service wrepld%{samba_major}
|
|---|
| 1431 |
|
|---|
| 1432 | if [ $1 = 0 ] ; then
|
|---|
| 1433 | # /sbin/chkconfig --level 35 smb reset
|
|---|
| 1434 | # Let's not loose /var/cache/samba
|
|---|
| 1435 |
|
|---|
| 1436 | if [ -d /var/cache/%{name} ]; then
|
|---|
| 1437 | mv -f /var/cache/%{name} /var/cache/%{name}.BAK
|
|---|
| 1438 | fi
|
|---|
| 1439 | fi
|
|---|
| 1440 |
|
|---|
| 1441 | %post swat
|
|---|
| 1442 | if [ -f /var/lock/subsys/xinetd ]; then
|
|---|
| 1443 | service xinetd reload >/dev/null 2>&1 || :
|
|---|
| 1444 | fi
|
|---|
| 1445 | %update_menus
|
|---|
| 1446 |
|
|---|
| 1447 | %postun swat
|
|---|
| 1448 |
|
|---|
| 1449 | # Remove swat entry from xinetd
|
|---|
| 1450 | if [ $1 = 0 -a -f %{_sysconfdir}/xinetd.conf ] ; then
|
|---|
| 1451 | rm -f %{_sysconfdir}/xinetd.d/swat%{samba_major}
|
|---|
| 1452 | service xinetd reload &>/dev/null || :
|
|---|
| 1453 | fi
|
|---|
| 1454 |
|
|---|
| 1455 | if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
|
|---|
| 1456 |
|
|---|
| 1457 | %clean_menus
|
|---|
| 1458 |
|
|---|
| 1459 | %if %build_system
|
|---|
| 1460 | %post -n %{libname} -p /sbin/ldconfig
|
|---|
| 1461 | %postun -n %{libname} -p /sbin/ldconfig
|
|---|
| 1462 | %endif
|
|---|
| 1463 |
|
|---|
| 1464 | %if %build_alternatives
|
|---|
| 1465 | %post client
|
|---|
| 1466 |
|
|---|
| 1467 | update-alternatives --install %{_bindir}/smbclient smbclient \
|
|---|
| 1468 | %{_bindir}/smbclient%{alternative_major} 10 \
|
|---|
| 1469 | $(for i in {/bin/mount.cifs,/sbin/{%{client_sbin}},%{_bindir}/{%{clientbin}}};do
|
|---|
| 1470 | j=`basename $i`
|
|---|
| 1471 | [ "$j" = "smbclient" ] || \
|
|---|
| 1472 | echo -n " --slave ${i} ${j} ${i}%{alternative_major}";done) \
|
|---|
| 1473 | --slave %{_libdir}/cups/backend/smb cups_smb %{_libdir}/cups/backend/smb%{alternative_major} || \
|
|---|
| 1474 | update-alternatives --auto smbclient
|
|---|
| 1475 |
|
|---|
| 1476 | %preun client
|
|---|
| 1477 | [ $1 = 0 ] && update-alternatives --remove smbclient %{_bindir}/smbclient%{alternative_major} ||:
|
|---|
| 1478 | %endif
|
|---|
| 1479 |
|
|---|
| 1480 | %if %build_alternatives
|
|---|
| 1481 | %triggerpostun client -- samba-client, samba2-client
|
|---|
| 1482 | [ ! -e %{_bindir}/smbclient ] && update-alternatives --auto smbclient || :
|
|---|
| 1483 | %endif
|
|---|
| 1484 |
|
|---|
| 1485 | %files server
|
|---|
| 1486 | %defattr(-,root,root)
|
|---|
| 1487 | %(for i in %{_sbindir}/{%{serversbin}}%{samba_major};do echo $i;done)
|
|---|
| 1488 | %(for i in %{_bindir}/{%{serverbin}}%{samba_major};do echo $i;done)
|
|---|
| 1489 | %attr(755,root,root) /%{_lib}/security/pam_smbpass*
|
|---|
| 1490 | %dir %{_libdir}/%{name}/vfs
|
|---|
| 1491 | %{_libdir}/%{name}/vfs/*.so
|
|---|
| 1492 | %if %build_vscan
|
|---|
| 1493 | %exclude %{_libdir}/%{name}/vfs/vscan*.so
|
|---|
| 1494 | %endif
|
|---|
| 1495 | %dir %{_libdir}/%{name}/pdb
|
|---|
| 1496 |
|
|---|
| 1497 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbusers
|
|---|
| 1498 | %attr(-,root,root) %config(noreplace) %{_initrddir}/smb%{samba_major}
|
|---|
| 1499 | #%attr(-,root,root) %config(noreplace) %{_initrddir}/wrepld%{samba_major}
|
|---|
| 1500 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|---|
| 1501 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/%{name}
|
|---|
| 1502 | #%attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/samba-slapd.include
|
|---|
| 1503 | %(for i in %{_mandir}/man?/{%{serverbin},%{serversbin}}%{samba_major}\.[0-9]*;do echo $i|grep -v mkntpwd;done)
|
|---|
| 1504 | %attr(775,root,adm) %dir %{_localstatedir}/%{name}/netlogon
|
|---|
| 1505 | %attr(755,root,root) %dir %{_localstatedir}/%{name}/profiles
|
|---|
| 1506 | %attr(755,root,root) %dir %{_localstatedir}/%{name}/printers
|
|---|
| 1507 | %attr(2775,root,adm) %dir %{_localstatedir}/%{name}/printers/*
|
|---|
| 1508 | %attr(1777,root,root) %dir /var/spool/%{name}
|
|---|
| 1509 | %dir %{_datadir}/%{name}
|
|---|
| 1510 | %dir %{_datadir}/%{name}/scripts
|
|---|
| 1511 | %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
|
|---|
| 1512 | %attr(0750,root,adm) %{_datadir}/%{name}/scripts/smbldap*.pl
|
|---|
| 1513 | %attr(0750,root,adm) %{_bindir}/smbldap*
|
|---|
| 1514 | %attr(0640,root,adm) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
|
|---|
| 1515 | %attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
|
|---|
| 1516 | %{perl_vendorlib}/*.pm
|
|---|
| 1517 | #%attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
|
|---|
| 1518 | %attr(0755,root,root) %{_datadir}/%{name}/scripts/convertSambaAccount
|
|---|
| 1519 |
|
|---|
| 1520 |
|
|---|
| 1521 | %files doc
|
|---|
| 1522 | %defattr(-,root,root)
|
|---|
| 1523 | %doc README COPYING Manifest Read-Manifest-Now
|
|---|
| 1524 | %doc WHATSNEW.txt Roadmap
|
|---|
| 1525 | %doc README.%{name}-mandrake-rpm
|
|---|
| 1526 | %doc clean-docs/samba-doc/docs
|
|---|
| 1527 | %doc clean-docs/samba-doc/examples
|
|---|
| 1528 | %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/
|
|---|
| 1529 |
|
|---|
| 1530 | %files swat
|
|---|
| 1531 | %defattr(-,root,root)
|
|---|
| 1532 | %config(noreplace) %{_sysconfdir}/xinetd.d/swat%{samba_major}
|
|---|
| 1533 | #%attr(-,root,root) /sbin/*
|
|---|
| 1534 | %{_sbindir}/swat%{samba_major}
|
|---|
| 1535 | %{_menudir}/%{name}-swat
|
|---|
| 1536 | %{_miconsdir}/*.png
|
|---|
| 1537 | %{_liconsdir}/*.png
|
|---|
| 1538 | %{_iconsdir}/*.png
|
|---|
| 1539 | %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/
|
|---|
| 1540 | %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/
|
|---|
| 1541 | %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/
|
|---|
| 1542 | %lang(ja) %{_datadir}/swat%{samba_major}/lang/ja
|
|---|
| 1543 | %lang(tr) %{_datadir}/swat%{samba_major}/lang/tr
|
|---|
| 1544 | %{_mandir}/man8/swat*.8*
|
|---|
| 1545 | %lang(de) %{_libdir}/%{name}/de.msg
|
|---|
| 1546 | %lang(en) %{_libdir}/%{name}/en.msg
|
|---|
| 1547 | %lang(fr) %{_libdir}/%{name}/fr.msg
|
|---|
| 1548 | %lang(it) %{_libdir}/%{name}/it.msg
|
|---|
| 1549 | %lang(ja) %{_libdir}/%{name}/ja.msg
|
|---|
| 1550 | %lang(nl) %{_libdir}/%{name}/nl.msg
|
|---|
| 1551 | %lang(pl) %{_libdir}/%{name}/pl.msg
|
|---|
| 1552 | %lang(tr) %{_libdir}/%{name}/tr.msg
|
|---|
| 1553 | #%doc swat/README
|
|---|
| 1554 |
|
|---|
| 1555 | %files client
|
|---|
| 1556 | %defattr(-,root,root)
|
|---|
| 1557 | %(for i in %{_bindir}/{%{clientbin}}%{alternative_major};do echo $i;done)
|
|---|
| 1558 | %(for i in %{_mandir}/man?/{%{clientbin}}%{alternative_major}.?.*;do echo $i|grep -v smbprint;done)
|
|---|
| 1559 | #xclude %{_mandir}/man?/smbget*
|
|---|
| 1560 | %{_mandir}/man5/smbgetrc%{alternative_major}.5*
|
|---|
| 1561 | %ifnarch alpha
|
|---|
| 1562 | %(for i in /sbin/{%{client_sbin}}%{alternative_major};do echo $i;done)
|
|---|
| 1563 | %attr(4755,root,root) /bin/mount.cifs%{alternative_major}
|
|---|
| 1564 | %attr(755,root,root) %{_bindir}/smbmount%{alternative_major}
|
|---|
| 1565 | %attr(4755,root,root) %{_bindir}/smbumount%{alternative_major}
|
|---|
| 1566 | %attr(4755,root,root) %{_bindir}/smbmnt%{alternative_major}
|
|---|
| 1567 | %{_mandir}/man8/smbmnt*.8*
|
|---|
| 1568 | %{_mandir}/man8/smbmount*.8*
|
|---|
| 1569 | %{_mandir}/man8/smbumount*.8*
|
|---|
| 1570 | %{_mandir}/man8/mount.cifs*.8*
|
|---|
| 1571 | %else
|
|---|
| 1572 | %exclude %{_bindir}/smb*m*nt%{samba_major}
|
|---|
| 1573 | %exclude %{_mandir}/man8/smb*m*nt*.8*
|
|---|
| 1574 | %endif
|
|---|
| 1575 | # Link of smbspool to CUPS
|
|---|
| 1576 | /%{_libdir}/cups/backend/smb%{alternative_major}
|
|---|
| 1577 |
|
|---|
| 1578 | %files common
|
|---|
| 1579 | %defattr(-,root,root)
|
|---|
| 1580 | %dir /var/cache/%{name}
|
|---|
| 1581 | %dir /var/log/%{name}
|
|---|
| 1582 | %dir /var/run/%{name}
|
|---|
| 1583 | %(for i in %{_bindir}/{%{commonbin},tdbtool}%{samba_major};do echo $i;done)
|
|---|
| 1584 | %(for i in %{_mandir}/man?/{%{commonbin}}%{samba_major}\.[0-9]*;do echo $i;done)
|
|---|
| 1585 | #%{_libdir}/smbwrapper%{samba_major}.so
|
|---|
| 1586 | %dir %{_libdir}/%{name}
|
|---|
| 1587 | %{_libdir}/%{name}/*.dat
|
|---|
| 1588 | %{_libdir}/%{name}/charset
|
|---|
| 1589 | #%{_libdir}/%{name}/lowcase.dat
|
|---|
| 1590 | #%{_libdir}/%{name}/valid.dat
|
|---|
| 1591 | %dir %{_sysconfdir}/%{name}
|
|---|
| 1592 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb.conf
|
|---|
| 1593 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb-winbind.conf
|
|---|
| 1594 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/lmhosts
|
|---|
| 1595 | %dir %{_localstatedir}/%{name}
|
|---|
| 1596 | %attr(-,root,root) %{_localstatedir}/%{name}/codepages
|
|---|
| 1597 | %{_mandir}/man5/smb.conf*.5*
|
|---|
| 1598 | %{_mandir}/man5/lmhosts*.5*
|
|---|
| 1599 | #%{_mandir}/man7/Samba*.7*
|
|---|
| 1600 | %dir %{_datadir}/swat%{samba_major}
|
|---|
| 1601 | %attr(0750,root,adm) %{_datadir}/%{name}/scripts/smb-migrate
|
|---|
| 1602 | %attr(-,root,root) %{_datadir}/%{name}/smb.conf.clean
|
|---|
| 1603 | %attr(-,root,root) %{_datadir}/%{name}/README.mdk.conf
|
|---|
| 1604 |
|
|---|
| 1605 | %if %build_winbind
|
|---|
| 1606 | %files winbind
|
|---|
| 1607 | %defattr(-,root,root)
|
|---|
| 1608 | %{_sbindir}/winbindd
|
|---|
| 1609 | %{_sbindir}/winbind
|
|---|
| 1610 | %{_bindir}/wbinfo
|
|---|
| 1611 | %attr(755,root,root) /%{_lib}/security/pam_winbind*
|
|---|
| 1612 | %attr(755,root,root) /%{_lib}/libnss_winbind*
|
|---|
| 1613 | %attr(-,root,root) %config(noreplace) %{_initrddir}/winbind
|
|---|
| 1614 | %attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-winbind*
|
|---|
| 1615 | %{_mandir}/man8/winbindd*.8*
|
|---|
| 1616 | %{_mandir}/man1/wbinfo*.1*
|
|---|
| 1617 | %endif
|
|---|
| 1618 |
|
|---|
| 1619 | %if %build_wins
|
|---|
| 1620 | %files -n nss_wins%{samba_major}
|
|---|
| 1621 | %defattr(-,root,root)
|
|---|
| 1622 | %attr(755,root,root) /%{_lib}/libnss_wins.so*
|
|---|
| 1623 | %endif
|
|---|
| 1624 |
|
|---|
| 1625 | %if %{?_with_test:1}%{!?_with_test:0}
|
|---|
| 1626 | %files test
|
|---|
| 1627 | %defattr(-,root,root)
|
|---|
| 1628 | %(for i in %{_bindir}/{%{testbin}}%{samba_major};do echo $i;done)
|
|---|
| 1629 | %{_mandir}/man1/vfstest%{samba_major}*.1*
|
|---|
| 1630 | %exclude %{_mandir}/man1/log2pcap*.1*
|
|---|
| 1631 | %else
|
|---|
| 1632 | %exclude %{_mandir}/man1/vfstest%{samba_major}*.1*
|
|---|
| 1633 | %exclude %{_mandir}/man1/log2pcap*.1*
|
|---|
| 1634 | %endif
|
|---|
| 1635 |
|
|---|
| 1636 | %if %build_system
|
|---|
| 1637 | %files -n %{libname}
|
|---|
| 1638 | %defattr(-,root,root)
|
|---|
| 1639 | %{_libdir}/libsmbclient.so.*
|
|---|
| 1640 | %else
|
|---|
| 1641 | %exclude %{_libdir}/libsmbclient.so.*
|
|---|
| 1642 | %endif
|
|---|
| 1643 |
|
|---|
| 1644 | %if %build_system
|
|---|
| 1645 | %files -n %{libname}-devel
|
|---|
| 1646 | %defattr(-,root,root)
|
|---|
| 1647 | %{_includedir}/*
|
|---|
| 1648 | %{_libdir}/libsmbclient.so
|
|---|
| 1649 | %doc clean-docs/libsmbclient/*
|
|---|
| 1650 | %else
|
|---|
| 1651 | %exclude %{_includedir}/*
|
|---|
| 1652 | %exclude %{_libdir}/libsmbclient.so
|
|---|
| 1653 | %endif
|
|---|
| 1654 |
|
|---|
| 1655 | %if %build_system
|
|---|
| 1656 | %files -n %{libname}-static-devel
|
|---|
| 1657 | %defattr(-,root,root)
|
|---|
| 1658 | %{_libdir}/libsmbclient.a
|
|---|
| 1659 | %else
|
|---|
| 1660 | %exclude %{_libdir}/libsmbclient.a
|
|---|
| 1661 | %endif
|
|---|
| 1662 |
|
|---|
| 1663 | #%files passdb-ldap
|
|---|
| 1664 | #%defattr(-,root,root)
|
|---|
| 1665 | #%{_libdir}/%{name}/*/*ldap.so
|
|---|
| 1666 |
|
|---|
| 1667 | %ifnarch alpha
|
|---|
| 1668 | %files passdb-mysql
|
|---|
| 1669 | %defattr(-,root,root)
|
|---|
| 1670 | %{_libdir}/%{name}/pdb/*mysql.so
|
|---|
| 1671 | %endif
|
|---|
| 1672 |
|
|---|
| 1673 | #ifnarch alpha
|
|---|
| 1674 | %files passdb-pgsql
|
|---|
| 1675 | %defattr(-,root,root)
|
|---|
| 1676 | %{_libdir}/%{name}/pdb/*pgsql.so
|
|---|
| 1677 | #endif
|
|---|
| 1678 |
|
|---|
| 1679 | %files passdb-xml
|
|---|
| 1680 | %defattr(-,root,root)
|
|---|
| 1681 | %{_libdir}/%{name}/pdb/*xml.so
|
|---|
| 1682 |
|
|---|
| 1683 | #Files for antivirus support:
|
|---|
| 1684 | %if %build_clamav
|
|---|
| 1685 | %files vscan-clamav
|
|---|
| 1686 | %defattr(-,root,root)
|
|---|
| 1687 | %{_libdir}/%{name}/vfs/vscan-clamav.so
|
|---|
| 1688 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-clamav.conf
|
|---|
| 1689 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1690 | %endif
|
|---|
| 1691 | %if !%build_clamav && %build_vscan
|
|---|
| 1692 | %exclude %{_libdir}/%{name}/vfs/vscan-clamav.so
|
|---|
| 1693 | %exclude %{_sysconfdir}/%{name}/vscan-clamav.conf
|
|---|
| 1694 | %endif
|
|---|
| 1695 |
|
|---|
| 1696 | %if %build_fprot
|
|---|
| 1697 | %files vscan-fprot
|
|---|
| 1698 | %defattr(-,root,root)
|
|---|
| 1699 | %{_libdir}/%{name}/vfs/vscan-fprotd.so
|
|---|
| 1700 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
|
|---|
| 1701 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1702 | %endif
|
|---|
| 1703 | %if !%build_fprot && %build_vscan
|
|---|
| 1704 | %exclude %{_libdir}/%{name}/vfs/vscan-fprotd.so
|
|---|
| 1705 | %exclude %{_sysconfdir}/%{name}/vscan-fprotd.conf
|
|---|
| 1706 | %endif
|
|---|
| 1707 |
|
|---|
| 1708 | %if %build_fsav
|
|---|
| 1709 | %files vscan-fsecure
|
|---|
| 1710 | %defattr(-,root,root)
|
|---|
| 1711 | %{_libdir}/%{name}/vfs/vscan-fsav.so
|
|---|
| 1712 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-fsav.conf
|
|---|
| 1713 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1714 | %endif
|
|---|
| 1715 | %if !%build_fsav && %build_vscan
|
|---|
| 1716 | %exclude %{_libdir}/%{name}/vfs/vscan-fsav.so
|
|---|
| 1717 | %exclude %{_sysconfdir}/%{name}/vscan-fsav.conf
|
|---|
| 1718 | %endif
|
|---|
| 1719 |
|
|---|
| 1720 | %if %build_icap
|
|---|
| 1721 | %files vscan-icap
|
|---|
| 1722 | %defattr(-,root,root)
|
|---|
| 1723 | %{_libdir}/%{name}/vfs/vscan-icap.so
|
|---|
| 1724 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-icap.conf
|
|---|
| 1725 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1726 | %endif
|
|---|
| 1727 | %if !%build_icap && %build_vscan
|
|---|
| 1728 | %exclude %{_libdir}/%{name}/vfs/vscan-icap.so
|
|---|
| 1729 | %exclude %{_sysconfdir}/%{name}/vscan-icap.conf
|
|---|
| 1730 | %endif
|
|---|
| 1731 |
|
|---|
| 1732 |
|
|---|
| 1733 | %if %build_kaspersky
|
|---|
| 1734 | %files vscan-kaspersky
|
|---|
| 1735 | %defattr(-,root,root)
|
|---|
| 1736 | %{_libdir}/%{name}/vfs/vscan-kavp.so
|
|---|
| 1737 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
|
|---|
| 1738 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1739 | %endif
|
|---|
| 1740 | %if !%build_kaspersky && %build_vscan
|
|---|
| 1741 | %exclude %{_libdir}/%{name}/vfs/vscan-kavp.so
|
|---|
| 1742 | %exclude %{_sysconfdir}/%{name}/vscan-kavp.conf
|
|---|
| 1743 | %endif
|
|---|
| 1744 |
|
|---|
| 1745 | %if %build_mks
|
|---|
| 1746 | %files vscan-mks
|
|---|
| 1747 | %defattr(-,root,root)
|
|---|
| 1748 | %{_libdir}/%{name}/vfs/vscan-mksd.so
|
|---|
| 1749 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
|
|---|
| 1750 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1751 | %endif
|
|---|
| 1752 | %if !%build_mks && %build_vscan
|
|---|
| 1753 | %exclude %{_libdir}/%{name}/vfs/vscan-mksd.so
|
|---|
| 1754 | %exclude %{_sysconfdir}/%{name}/vscan-mks*.conf
|
|---|
| 1755 | %endif
|
|---|
| 1756 |
|
|---|
| 1757 | %if %build_nai
|
|---|
| 1758 | %files vscan-nai
|
|---|
| 1759 | %defattr(-,root,root)
|
|---|
| 1760 | %{_libdir}/%{name}/vfs/vscan-mcdaemon.so
|
|---|
| 1761 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-mcdaemon.conf
|
|---|
| 1762 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1763 | %endif
|
|---|
| 1764 | %if !%build_nai && %build_vscan
|
|---|
| 1765 | %exclude %{_libdir}/%{name}/vfs/vscan-mcdaemon.so
|
|---|
| 1766 | %exclude %{_sysconfdir}/%{name}/vscan-mcdaemon.conf
|
|---|
| 1767 | %endif
|
|---|
| 1768 |
|
|---|
| 1769 | %if %build_openav
|
|---|
| 1770 | %files vscan-openav
|
|---|
| 1771 | %defattr(-,root,root)
|
|---|
| 1772 | %{_libdir}/%{name}/vfs/vscan-oav.so
|
|---|
| 1773 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
|
|---|
| 1774 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1775 | %endif
|
|---|
| 1776 | %if !%build_openav && %build_vscan
|
|---|
| 1777 | %exclude %{_libdir}/%{name}/vfs/vscan-oav.so
|
|---|
| 1778 | %exclude %{_sysconfdir}/%{name}/vscan-oav.conf
|
|---|
| 1779 | %endif
|
|---|
| 1780 |
|
|---|
| 1781 | %if %build_sophos
|
|---|
| 1782 | %files vscan-sophos
|
|---|
| 1783 | %defattr(-,root,root)
|
|---|
| 1784 | %{_libdir}/%{name}/vfs/vscan-sophos.so
|
|---|
| 1785 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
|
|---|
| 1786 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1787 | %endif
|
|---|
| 1788 | %if !%build_sophos && %build_vscan
|
|---|
| 1789 | %exclude %{_libdir}/%{name}/vfs/vscan-sophos.so
|
|---|
| 1790 | %exclude %{_sysconfdir}/%{name}/vscan-sophos.conf
|
|---|
| 1791 | %endif
|
|---|
| 1792 |
|
|---|
| 1793 | %if %build_symantec
|
|---|
| 1794 | %files vscan-symantec
|
|---|
| 1795 | %defattr(-,root,root)
|
|---|
| 1796 | %{_libdir}/%{name}/vfs/vscan-symantec.so
|
|---|
| 1797 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
|
|---|
| 1798 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1799 | %endif
|
|---|
| 1800 | %if !%build_symantec && %build_vscan
|
|---|
| 1801 | %exclude %{_sysconfdir}/%{name}/vscan-symantec.conf
|
|---|
| 1802 | %endif
|
|---|
| 1803 |
|
|---|
| 1804 | %if %build_trend
|
|---|
| 1805 | %files vscan-trend
|
|---|
| 1806 | %defattr(-,root,root)
|
|---|
| 1807 | %{_libdir}/%{name}/vfs/vscan-trend.so
|
|---|
| 1808 | %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
|
|---|
| 1809 | %doc %{vfsdir}/%{vscandir}/INSTALL
|
|---|
| 1810 | %endif
|
|---|
| 1811 | %if !%build_trend && %build_vscan
|
|---|
| 1812 | %exclude %{_libdir}/%{name}/vfs/vscan-trend.so
|
|---|
| 1813 | %exclude %{_sysconfdir}/%{name}/vscan-trend.conf
|
|---|
| 1814 | %endif
|
|---|
| 1815 |
|
|---|
| 1816 | %exclude %{_mandir}/man1/smbsh*.1*
|
|---|
| 1817 |
|
|---|
| 1818 | %changelog
|
|---|
| 1819 | * Tue Nov 09 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.8-1mdk
|
|---|
| 1820 | - 3.0.8
|
|---|
| 1821 | - add tdbtool to common
|
|---|
| 1822 | - fix doc permissions (broken in tarball)
|
|---|
| 1823 |
|
|---|
| 1824 | * Fri Nov 05 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.8-0.pre2.1mdk
|
|---|
| 1825 | - 3.0.8pre2
|
|---|
| 1826 |
|
|---|
| 1827 | * Wed Oct 06 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.7-3mdk
|
|---|
| 1828 | - drop patch 23 to ldap schema (patch in 3.0.6 was to bring schema up-to-date
|
|---|
| 1829 | with pre-3.0.7 cvs) (#11960)
|
|---|
| 1830 | - merge winbind init script fix into packaging patch
|
|---|
| 1831 | - Don't set printcap name in pdf printer share (#11861)
|
|---|
| 1832 | - allow official builds off-cluster (with _with_official macro defined)
|
|---|
| 1833 |
|
|---|
| 1834 | * Tue Sep 14 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.7-2mdk
|
|---|
| 1835 | - fix typo in winbind init script that prevented stop
|
|---|
| 1836 | (in 3.0.6 too, patch27)
|
|---|
| 1837 |
|
|---|
| 1838 | * Mon Sep 13 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.7-1mdk
|
|---|
| 1839 | - 3.0.7 (drop patch10,21,22,24,25,26; rediff patch23)
|
|---|
| 1840 |
|
|---|
| 1841 | * Thu Sep 09 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-5mdk
|
|---|
| 1842 | - patch for samba bug 1464
|
|---|
| 1843 | - make release-depenent release tag more like security updates tags
|
|---|
| 1844 | - sync smb.conf with drakwizard (which also fixes quoting of macros which
|
|---|
| 1845 | can have spaces)
|
|---|
| 1846 | - add example admin share
|
|---|
| 1847 | - patches from Gerald Carter
|
|---|
| 1848 |
|
|---|
| 1849 | * Mon Aug 31 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-4mdk
|
|---|
| 1850 | - Add Jerry's post-3.0.6 patches
|
|---|
| 1851 | - fix bug 11088
|
|---|
| 1852 |
|
|---|
| 1853 | * Fri Aug 27 2004 Buchan Milne <bgmilne@linux-mandrake.com>3.0.6-3mdk
|
|---|
| 1854 | - patch from Urban Widmark via Robert Sim (anthill bug 1086) to be able
|
|---|
| 1855 | to diable unix extensions in smbmount (and via 'unix extensions' in smb.conf)
|
|---|
| 1856 | - magic-devel only available on 9.2 and up
|
|---|
| 1857 | - allow building for stable release on the chroots on the cluster
|
|---|
| 1858 | - fix patch8
|
|---|
| 1859 | - fix build on older releases
|
|---|
| 1860 |
|
|---|
| 1861 | * Fri Aug 20 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-2mdk
|
|---|
| 1862 | - 3.0.6
|
|---|
| 1863 | -drop P6 (merged), P7 (broken for now)
|
|---|
| 1864 | -keep libsmbclient where it belongs (on x86 for now)
|
|---|
| 1865 | -implement mandrake version-specific release number
|
|---|
| 1866 |
|
|---|
| 1867 | * Thu Aug 12 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.5-2mdk
|
|---|
| 1868 | - 3.0.5
|
|---|
| 1869 | - fix pid file location (#10666)
|
|---|
| 1870 | - merge amd64 fixes (P7)
|
|---|
| 1871 | - make pdf printer work again, and other misc fixes to default config
|
|---|
| 1872 |
|
|---|
| 1873 | * Sun Jun 20 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.0.5-0.pre1.3mdk
|
|---|
| 1874 | - fix rpm group in libsmbclient0-devel (Goetz Waschk)
|
|---|
| 1875 |
|
|---|
| 1876 | * Sat Jun 19 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.0.5-0.pre1.2mdk
|
|---|
| 1877 | - fix deps
|
|---|
| 1878 |
|
|---|
| 1879 | * Wed May 26 2004 Buchan Milne <bgmilne@linux-mandrake.com>3.0.5-0.pre1.1mdk
|
|---|
| 1880 | - fix building without scanners
|
|---|
| 1881 | - 3.0.5pre1 (and drop patch from CVS)
|
|---|
| 1882 |
|
|---|
| 1883 | * Fri May 21 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.4-3mdk
|
|---|
| 1884 | - re-work scanner support
|
|---|
| 1885 |
|
|---|
| 1886 | * Thu May 13 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.4-2mdk
|
|---|
| 1887 | - 3.0.4
|
|---|
| 1888 | - Patch for winbind (from samba bug 1315)
|
|---|
| 1889 |
|
|---|
| 1890 | * Thu Apr 29 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-4mdk
|
|---|
| 1891 | - Fix samba-vscan (0.3.5), add clamav and icap, and build scanners by default
|
|---|
| 1892 | - Fix default vscan-clamav config and add sample config for homes share
|
|---|
| 1893 | - Add pgsql passdb backend
|
|---|
| 1894 |
|
|---|
| 1895 | * Mon Mar 01 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-3mdk
|
|---|
| 1896 | - Fix default smbldap config
|
|---|
| 1897 | - Don't clobber smb.conf backup for no reason
|
|---|
| 1898 |
|
|---|
| 1899 | * Mon Feb 16 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-2mdk
|
|---|
| 1900 | - 3.0.2a
|
|---|
| 1901 | - Only update smb.conf in upgrade from <3.0.1-3mdk (via trigger) and update
|
|---|
| 1902 | upgrade script (stew)
|
|---|
| 1903 |
|
|---|
| 1904 | * Mon Feb 09 2004 Buchan Milne <bgmilne@linux0mandrake.com> 3.0.2-2mdk
|
|---|
| 1905 | - 3.0.2
|
|---|
| 1906 |
|
|---|
| 1907 | * Mon Feb 02 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2-0.rc2.1mdk
|
|---|
| 1908 | - 3.0.2rc2
|
|---|
| 1909 |
|
|---|
| 1910 | * Tue Jan 6 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-5mdk
|
|---|
| 1911 | - update migrate script, feedback from Luca Berra
|
|---|
| 1912 |
|
|---|
| 1913 | * Mon Jan 5 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-4mdk
|
|---|
| 1914 | - re-enable relaxed CFLAGS to fix broken smbmount, smbclient
|
|---|
| 1915 |
|
|---|
| 1916 | * Fri Jan 2 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-3mdk
|
|---|
| 1917 | - add migrate script to merge existing smb.conf
|
|---|
| 1918 |
|
|---|
| 1919 | * Fri Dec 19 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-2mdk
|
|---|
| 1920 | - 3.0.1 final
|
|---|
| 1921 |
|
|---|
| 1922 | * Thu Dec 11 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.rc2.2mdk
|
|---|
| 1923 | - 3.0.1rc2
|
|---|
| 1924 |
|
|---|
| 1925 | * Sat Dec 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.rc1.2mdk
|
|---|
| 1926 | - rc1
|
|---|
| 1927 | - samba-vscan-0.3.4
|
|---|
| 1928 |
|
|---|
| 1929 | * Fri Dec 05 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.5mdk
|
|---|
| 1930 | - Allow winbind to start if old winbind ranges are used (ease upgrades)
|
|---|
| 1931 |
|
|---|
| 1932 | * Tue Nov 18 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.4mdk
|
|---|
| 1933 | - Fix build as system on 8.2 (and probably earlier)
|
|---|
| 1934 |
|
|---|
| 1935 | * Sun Nov 16 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.3mdk
|
|---|
| 1936 | - Ensure printer drivers keep permissions by default (setgid and inherit perms)
|
|---|
| 1937 |
|
|---|
| 1938 | * Fri Nov 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.2mdk
|
|---|
| 1939 | - 3.0.1pre3
|
|---|
| 1940 | - Add support for Mandrake 10.0 (as system samba)
|
|---|
| 1941 | - Fix alternatives triggers
|
|---|
| 1942 | - Fix obsoletes
|
|---|
| 1943 |
|
|---|
| 1944 | * Mon Nov 10 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre2.2mdk
|
|---|
| 1945 | - 3.0.1pre2
|
|---|
| 1946 | - misc spec files (pointed out by Luca Olivetti)
|
|---|
| 1947 | - Fix path to smbldap-passwd.pl
|
|---|
| 1948 | - Only allow one copy of winbind and nss_wins
|
|---|
| 1949 | - Add trigger for alternatives
|
|---|
| 1950 |
|
|---|
| 1951 | * Sun Oct 12 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre1.2mdk
|
|---|
| 1952 | - 3.0.1pre1
|
|---|
| 1953 | - remove buildroot patch (p3), fixed upstream
|
|---|
| 1954 |
|
|---|
| 1955 | * Thu Sep 25 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-2mdk
|
|---|
| 1956 | - 3.0.0 final
|
|---|
| 1957 |
|
|---|
| 1958 | * Sat Sep 13 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc4.2mdk
|
|---|
| 1959 | - rc4
|
|---|
| 1960 | - Don't update alternatives in pre/post scripts when not using alternatives
|
|---|
| 1961 | - Fix case of --with-system without alternatives
|
|---|
| 1962 | - Final fixes to smbldap-tools for non-system case
|
|---|
| 1963 | - Remove duplicate docs (really - 1 character typo ...)
|
|---|
| 1964 | - Update configs (fix winbind init script, add example scripts in smb.conf)
|
|---|
| 1965 |
|
|---|
| 1966 | * Tue Sep 09 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc3.2mdk
|
|---|
| 1967 | - rc3
|
|---|
| 1968 | - Fix mount.smb{,fs} alternatives (spotted by Laurent Culioli)
|
|---|
| 1969 |
|
|---|
| 1970 | * Thu Sep 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc2.3mdk
|
|---|
| 1971 | - Fix alternatives
|
|---|
| 1972 | - Fix libname (can I blame guillomovitch's evil line-wrapping spec mode?)
|
|---|
| 1973 | - Fix smbldap-tools package/use names when not system samba
|
|---|
| 1974 | - Don't conflict samba3-client with samba-client for now so we can install it
|
|---|
| 1975 |
|
|---|
| 1976 | * Fri Aug 29 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc2.2mdk
|
|---|
| 1977 | - rc2
|
|---|
| 1978 | - Remove patches 100-102 (upstream)
|
|---|
| 1979 | - Fix libname
|
|---|
| 1980 | - Alternatavise client
|
|---|
| 1981 | - Better solution to avoid rpath
|
|---|
| 1982 |
|
|---|
| 1983 | * Fri Aug 22 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc1.3mdk
|
|---|
| 1984 | - Fix build with test package (p100), but not by default (too big)
|
|---|
| 1985 | - Fix (p101) for SID resolution when member of samba-2.2.x domain
|
|---|
| 1986 | - Fix libsmbclient packages (thanks Gotz)
|
|---|
| 1987 | - version mount.cifs, patch from CVS (p102), and setuid it
|
|---|
| 1988 | - Clean up docs (guillomovitch spam ;-)
|
|---|
| 1989 |
|
|---|
| 1990 | * Sat Aug 16 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc1.2mdk
|
|---|
| 1991 | - rc1
|
|---|
| 1992 | - disable test subpackage since it's broken again
|
|---|
| 1993 |
|
|---|
| 1994 | * Mon Jul 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta3.3mdk
|
|---|
| 1995 | - Rebuild for kerberos-1.3 on cooker
|
|---|
| 1996 | - Put printer directories back
|
|---|
| 1997 | - Add mount.cifs
|
|---|
| 1998 | - Go back to standard optimisations
|
|---|
| 1999 |
|
|---|
| 2000 | * Thu Jul 17 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta3.2mdk
|
|---|
| 2001 | - beta3
|
|---|
| 2002 | - remove -g from cflags to avoid large static libraries
|
|---|
| 2003 | - drop optimisation from O2 to O1 for gcc 3.3.1
|
|---|
| 2004 | - own some directories for distriblint's benefit
|
|---|
| 2005 | - use chrpath on distro's that have it to drastically reduce rpmlint score
|
|---|
| 2006 |
|
|---|
| 2007 | * Mon Jul 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.3mdk
|
|---|
| 2008 | - place non-conditional excludes at the end of files list, to prevent causing
|
|---|
| 2009 | rpm in Mandrake <=8.2 from segfaulting when processing files.
|
|---|
| 2010 | - Update default config
|
|---|
| 2011 |
|
|---|
| 2012 | * Wed Jul 02 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.2mdk
|
|---|
| 2013 | - 3.0.0beta2
|
|---|
| 2014 | - manually build editreg
|
|---|
| 2015 | - Add some new man pages
|
|---|
| 2016 |
|
|---|
| 2017 | * Tue Jun 10 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.3mdk
|
|---|
| 2018 | - add provision for passdb-ldap subpackage (it doesn't build like that yet)
|
|---|
| 2019 | - avoid debugging info on cooker/9.2 for the moment
|
|---|
| 2020 | - We probably don't need to autoconf (and can thus build on 8.1)
|
|---|
| 2021 | - We can probably build without kerberos support (and thus on 8.0)
|
|---|
| 2022 | - Don't require mysql-devel on alpha's (maybe we want to be able to disable
|
|---|
| 2023 | mysql support for other arches?)
|
|---|
| 2024 | - We shouldn't need to specifically add openssl to include path, since ssl
|
|---|
| 2025 | support is deprecated.
|
|---|
| 2026 | - png icons, change menu title to not conflict with ksambaplugin
|
|---|
| 2027 | - update to samba-vscan-0.3.3beta1, but it still does not build the vscan
|
|---|
| 2028 | modules.
|
|---|
| 2029 | - add -static-devel package
|
|---|
| 2030 | - Add buildrequires for lib packages that are picked up if installed
|
|---|
| 2031 | (ncurses, popt) in an attempt to get slbd to build samba3
|
|---|
| 2032 | - Fix default config (P100)
|
|---|
| 2033 |
|
|---|
| 2034 | * Sun Jun 08 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.2mdk
|
|---|
| 2035 | - Get packages into cooker (klama doesn't want to build this package ..)
|
|---|
| 2036 | - samba-vscan-0.3.2b
|
|---|
| 2037 |
|
|---|
| 2038 | * Fri Jun 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.2mdk
|
|---|
| 2039 | - Rename debug package to test and other fixes for rpm-4.2
|
|---|
| 2040 | - prepare for beta1
|
|---|
| 2041 |
|
|---|
| 2042 | * Wed Apr 30 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.1mdk
|
|---|
| 2043 | - Remove some files removed upstream
|
|---|
| 2044 | - In builds from source, don't terminate on missing docs or unpackaged files
|
|---|
| 2045 | (if only we could do it for other missing files ...)
|
|---|
| 2046 |
|
|---|
| 2047 | * Mon Apr 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.0mdk
|
|---|
| 2048 | - Reenable debug package by (--without debug to not build it), fixed post-a23
|
|---|
| 2049 | - Add bugzilla note for builds from source (also intended for packages made
|
|---|
| 2050 | available on samba FTP site) at samba team request
|
|---|
| 2051 | - Fix build from CVS (run autogen.sh, pass options to all rpm commands)
|
|---|
| 2052 | - Appease distriblint, but not much to be done about /usr/share/swat3/ since
|
|---|
| 2053 | samba-doc owns some subdirs, and samba-swat others, and they can be installed
|
|---|
| 2054 | independantly.
|
|---|
| 2055 | - Apply kaspersky vscan build fix from samba2
|
|---|
| 2056 | - Final for alpha24
|
|---|
| 2057 |
|
|---|
| 2058 | * Wed Apr 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.3mdk
|
|---|
| 2059 | - Small fixes in preparation for testing as system samba
|
|---|
| 2060 | - Make debug package optional (--with debug) since it's often broken
|
|---|
| 2061 | - Add support for 9.2 (including in-line smbd quota patch for glibc2.3)
|
|---|
| 2062 | - Add --with options option, which will just show you the available options and exit
|
|---|
| 2063 |
|
|---|
| 2064 | * Sun Apr 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.2mdk
|
|---|
| 2065 | - Alpha23
|
|---|
| 2066 | - buildrequire autconf2.5
|
|---|
| 2067 | - samba-vscan 0.3.2a
|
|---|
| 2068 | - Remove patch 102 (upstreamed)
|
|---|
| 2069 |
|
|---|
| 2070 | * Thu Mar 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha22.2mdk
|
|---|
| 2071 | - Alpha22
|
|---|
| 2072 | - Add profiles binary to server and ntlm_auth to common
|
|---|
| 2073 | - smbwrapper and torture target broken (only in 9.0?)
|
|---|
| 2074 | - remove unused source 2
|
|---|
| 2075 |
|
|---|
| 2076 | * Tue Mar 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.4mdk
|
|---|
| 2077 | - Don't provide samba-{server,client,common} when not system samba (bug #2617)
|
|---|
| 2078 | - Don't build libsmbclient packages when not system samba
|
|---|
| 2079 | - Fix conflict between samba-server and samba3-server (pam_smbpass)
|
|---|
| 2080 | - Fix smbwrapper (from 2.2.7a-5mdk for bug #2356)
|
|---|
| 2081 | - Fix codepage/charset example (bug #1574)
|
|---|
| 2082 |
|
|---|
| 2083 | * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.3mdk
|
|---|
| 2084 | - samba-vscan 0.3.1 (and make it build again), including required inline edits
|
|---|
| 2085 | - Make all vscan packages provide samba(3)-vscan
|
|---|
| 2086 | - Build all vscan except kav (requires kaspersky lib) with --with-scanners
|
|---|
| 2087 | - Add vscan-(scanner).conf files
|
|---|
| 2088 | - Explicitly add ldapsam for 2.2 compatability when building --with ldap,
|
|---|
| 2089 | default build now uses new ldap passdb backend (ie you always get ldap)
|
|---|
| 2090 | - Enable (experimental) tdb passdb backend
|
|---|
| 2091 | - Fix file ownership conflicts between server and common
|
|---|
| 2092 | - Cleanup configure, to match order of --help
|
|---|
| 2093 | - Fix libdir location, was being overridden by --with-fhs
|
|---|
| 2094 | - Split off a libsmbclient and -devel package
|
|---|
| 2095 | - Add wins replication init script (patch 102)
|
|---|
| 2096 | - Workaround passdb/pdb_xml.c not compiling
|
|---|
| 2097 | - Workaround missing install targets for smbsh/smbwrapper.so in cvs
|
|---|
| 2098 | - Inline patch smbd/quotas.c for Mandrake >9.0
|
|---|
| 2099 |
|
|---|
| 2100 | * Wed Nov 27 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.2mdk
|
|---|
| 2101 | - Remove patch 20,21,22,23,25,26 (upstream)
|
|---|
| 2102 | - New destdir patch from cvs (18)
|
|---|
| 2103 | - package installed but non-packaged files
|
|---|
| 2104 | - new debug subpackage for vfstest and related files (it was that or nuke the
|
|---|
| 2105 | manpage ;-))
|
|---|
| 2106 | - use _libdir for libdir instead of _sysconfdir
|
|---|
| 2107 | - Update samba-vscan (untested)
|
|---|
| 2108 |
|
|---|
| 2109 | * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
|
|---|
| 2110 | - Fix mount.smbfs3 pointing to smbmount not in package
|
|---|
| 2111 | - Remove unnecessary lines from install (now done by make)
|
|---|
| 2112 | - Build with ldap and ads on all releases by default
|
|---|
| 2113 | - Put av-stuff back
|
|---|
| 2114 |
|
|---|
| 2115 | * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
|
|---|
| 2116 | - When not building as system samba, avoid conflicting with system samba
|
|---|
| 2117 | - Macro-ize as much as possible for above (aka finish cleanups)
|
|---|
| 2118 | - Fix paths in init scripts and logrotate and xinetd
|
|---|
| 2119 | - Fix provides and obsoletes so as to provide samba, but not obsolete
|
|---|
| 2120 | current stable until we have a stable release (when it's the system samba).
|
|---|
| 2121 | - Add warnings to descriptions when not system samba.
|
|---|
| 2122 | - This is now parallel installable with the normal samba release, for easy
|
|---|
| 2123 | testing. It shouldn't touch existing installations. Of course, only
|
|---|
| 2124 | one samba at a time on the same interface!
|
|---|
| 2125 |
|
|---|
| 2126 | * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
|
|---|
| 2127 | - Merge with 2.2.6pre2.2mdk
|
|---|
| 2128 | - Detect alpha- and beta-, along with pre-releases
|
|---|
| 2129 |
|
|---|
| 2130 | * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
|
|---|
| 2131 | - Sync with 2.2.3-2mdk (new --without options, detect when
|
|---|
| 2132 | building for a different distribution.
|
|---|
| 2133 |
|
|---|
| 2134 | * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
|
|---|
| 2135 | - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
|
|---|
| 2136 | winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
|
|---|
| 2137 | warning in description if built with these options.
|
|---|
| 2138 |
|
|---|
| 2139 | * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
|
|---|
| 2140 | - Added if's for build_ads, which hopefully will add Active Directory
|
|---|
| 2141 | Support (by request).
|
|---|
| 2142 |
|
|---|
| 2143 | * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
|
|---|
| 2144 | - More syncing with 2.2 rpm (post and postun scripts)
|
|---|
| 2145 | - Testing without ldap
|
|---|
| 2146 |
|
|---|
| 2147 | * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
|
|---|
| 2148 | - 3.0-alpha13
|
|---|
| 2149 | - Fixed installman.sh patch.
|
|---|
| 2150 |
|
|---|
| 2151 | * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
|
|---|
| 2152 | - Fixed %post and %preun for nss_wins, added %post and %preun for
|
|---|
| 2153 | samba-winbind (chkconfig and winbind entries in nsswitch.conf)
|
|---|
| 2154 |
|
|---|
| 2155 | * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
|
|---|
| 2156 | - 3.0-alpha12
|
|---|
| 2157 | - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
|
|---|
| 2158 | - Added new subpackage for swat
|
|---|
| 2159 | - More if's for ldap.
|
|---|
| 2160 |
|
|---|
| 2161 | * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
|
|---|
| 2162 | - 3.0-alpha11
|
|---|
| 2163 |
|
|---|
| 2164 | * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
|
|---|
| 2165 | - 3.0-alpha10
|
|---|
| 2166 |
|
|---|
| 2167 | * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
|
|---|
| 2168 | - 3.0-alpha9
|
|---|
| 2169 |
|
|---|
| 2170 | * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
|
|---|
| 2171 | - Added net command to %files common, pdbedit and smbgroupedit to
|
|---|
| 2172 | %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
|
|---|
| 2173 | Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
|
|---|
| 2174 |
|
|---|
| 2175 | * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
|
|---|
| 2176 | - Patch for installman.sh to handle lang=en correctly (p24)
|
|---|
| 2177 | - added --with-manpages-langs=en,ja,pl (translated manpages), but there
|
|---|
| 2178 | aren't any manpages for these languages yet ... so we still
|
|---|
| 2179 | need %dir and %doc entries for them ...
|
|---|
| 2180 | - patch (p25) to configure.in to support more than 2 languages.
|
|---|
| 2181 | - addtosmbpass seems to have returned for now, but make_* have disappeared!
|
|---|
| 2182 |
|
|---|
| 2183 | * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
|
|---|
| 2184 | - DESTDIR patch for Makefile.in (p23), remove a lot of %%install scripts
|
|---|
| 2185 | this forces move of smbcontrol and smbmnt to %{prefix}/bin
|
|---|
| 2186 | removed --with-pam_smbpass as it doesn't compile.
|
|---|
| 2187 |
|
|---|
| 2188 | * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
|
|---|
| 2189 | - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
|
|---|
| 2190 | - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch
|
|---|
| 2191 | (applied upstream), removed ook-patch (codepage directory totally different).
|
|---|
| 2192 | - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23
|
|---|
| 2193 | should be applied upstream before 3.0 ships ...
|
|---|
| 2194 |
|
|---|
| 2195 | * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
|
|---|
| 2196 | - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
|
|---|
| 2197 | - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
|
|---|
| 2198 |
|
|---|
| 2199 | * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
|
|---|
| 2200 | - Had to remove the network recycle bin patch: it seems to mess up
|
|---|
| 2201 | file deletion from windows (files appear to be "already in use")
|
|---|
| 2202 |
|
|---|
| 2203 | * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
|
|---|
| 2204 | - added network recycle bin patch:
|
|---|
| 2205 | <http://www.amherst.edu/~bbstone/howto/samba.html>
|
|---|
| 2206 | - added "recycle bin = .recycled" parameter in smb.conf [homes].
|
|---|
| 2207 | - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
|
|---|
| 2208 |
|
|---|
| 2209 | * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
|
|---|
| 2210 | - added %build 8.0 and 7.2, for tweakers to play around.
|
|---|
| 2211 | - changed configure options:
|
|---|
| 2212 | . removed --with-mmap, --with-netatalk (obsolete).
|
|---|
| 2213 | . added --with-msdfs, --with-vfs (seems stable, but still need testing).
|
|---|
| 2214 |
|
|---|
| 2215 | * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
|
|---|
| 2216 | - rebuilt with winbind and nss_wins enabled.
|
|---|
| 2217 |
|
|---|
| 2218 | * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
|
|---|
| 2219 | - Rebuilt on cooker.
|
|---|
| 2220 |
|
|---|
| 2221 | * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
|
|---|
| 2222 | - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
|
|---|
| 2223 | and add sample linpopup command. Added print driver directories.
|
|---|
| 2224 | - New XFS quota patch (untested!, samba runs, but do quotas work? We
|
|---|
| 2225 | can't check yet since the kernel doesn't seem to support XFS quotas!)
|
|---|
| 2226 |
|
|---|
| 2227 | * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
|
|---|
| 2228 | - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
|
|---|
| 2229 | Who did a tremendous integration work on 2.2.2.
|
|---|
| 2230 | Rebuild on cooker, please test XFS (ACLs and quotas) again...
|
|---|
| 2231 |
|
|---|
| 2232 | * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
|
|---|
| 2233 | - Samba-2.2.2. released! Use %defines to determine which subpackages
|
|---|
| 2234 | are built and which Mandrake release we are buiding on/for (hint: define
|
|---|
| 2235 | build_mdk81 1 for Mandrake 8.1 updates)
|
|---|
| 2236 |
|
|---|
| 2237 | * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
|
|---|
| 2238 | - %post and %postun for nss_wins
|
|---|
| 2239 |
|
|---|
| 2240 | * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
|
|---|
| 2241 | - New CVS snapshot, /etc/pam.d/system-auth-winbind added
|
|---|
| 2242 | with configuration to allow easy winbind setup.
|
|---|
| 2243 |
|
|---|
| 2244 | * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
|
|---|
| 2245 | - Added new package nss_wins and moved smbpasswd to common (required by
|
|---|
| 2246 | winbind).
|
|---|
| 2247 |
|
|---|
| 2248 | * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
|
|---|
| 2249 | - Added new package winbind.
|
|---|
| 2250 |
|
|---|
| 2251 | * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
|
|---|
| 2252 | - Removed patch to smb init.d file (applied in cvs)
|
|---|
| 2253 |
|
|---|
| 2254 | * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
|
|---|
| 2255 | - Added winbind init script, which still needs to check for running nmbd.
|
|---|
| 2256 |
|
|---|
| 2257 | * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
|
|---|
| 2258 | - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
|
|---|
| 2259 | pam_winbind, moved pam_smbpass from samba-common to samba. We still
|
|---|
| 2260 | need a start-up script for winbind, or need to modify existing one.
|
|---|
| 2261 |
|
|---|
| 2262 | * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
|
|---|
| 2263 | - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
|
|---|
| 2264 | Added smbd patch to support XFS quota (Nathan Scott)
|
|---|
| 2265 |
|
|---|
| 2266 | * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
|
|---|
| 2267 | - Oops! smbpasswd created in wrong directory...
|
|---|
| 2268 |
|
|---|
| 2269 | * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
|
|---|
| 2270 | - Removed a wrong comment in smb.conf.
|
|---|
| 2271 | Added creation of smbpasswd during install.
|
|---|
| 2272 |
|
|---|
| 2273 | * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
|
|---|
| 2274 | - really less verbose %%post
|
|---|
| 2275 |
|
|---|
| 2276 | * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
|
|---|
| 2277 | - Fix shared libs in /usr/bin silliness.
|
|---|
| 2278 |
|
|---|
| 2279 | * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
|
|---|
| 2280 | - less verbose %%post
|
|---|
| 2281 |
|
|---|
| 2282 | * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
|
|---|
| 2283 | - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
|
|---|
| 2284 | is still needed, even with point-and-print!, user add script should
|
|---|
| 2285 | use name and not gid, since we may not get the gid . New script for
|
|---|
| 2286 | putting manpages in place (still need to be added in %files!). Moved
|
|---|
| 2287 | smbcontrol to sbin and added it and its man page to %files.
|
|---|
| 2288 |
|
|---|
| 2289 | * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
|
|---|
| 2290 | - cleanup /var/lib/samba/codepage/src
|
|---|
| 2291 |
|
|---|
| 2292 | * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
|
|---|
| 2293 | - moved codepage generation to %%install and codepage dir to /var/lib/samba
|
|---|
| 2294 |
|
|---|
| 2295 | * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
|
|---|
| 2296 | - /lib/* was in both samba and samba-common
|
|---|
| 2297 | Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
|
|---|
| 2298 | when Samba was under the Megabyte..."
|
|---|
| 2299 |
|
|---|
| 2300 | * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
|
|---|
| 2301 | - Added "the gc touch" to smbinit through the use of killall -0 instead of
|
|---|
| 2302 | grep cupsd | grep -v grep (too many greps :o)
|
|---|
| 2303 |
|
|---|
| 2304 | * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
|
|---|
| 2305 | - BuildRequires: libcups-devel
|
|---|
| 2306 | - Removed BuildRequires: openssl-devel
|
|---|
| 2307 |
|
|---|
| 2308 | * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
|
|---|
| 2309 | - replace chkconfig --add/del with --level 35 on/reset.
|
|---|
| 2310 |
|
|---|
| 2311 | * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
|
|---|
| 2312 | - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
|
|---|
| 2313 |
|
|---|
| 2314 | * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
|
|---|
| 2315 | - Bugfix release. Fixed add user script, added print$ share and printer admin
|
|---|
| 2316 | We need to test interaction of new print support with CUPS, but printer
|
|---|
| 2317 | driver uploads should work.
|
|---|
| 2318 |
|
|---|
| 2319 | * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
|
|---|
| 2320 | - fixed smb.conf a bit, rebuilt on cooker.
|
|---|
| 2321 |
|
|---|
| 2322 | * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
|
|---|
| 2323 | - Finally, samba 2.2.1 has actually been release. At least we were ready!
|
|---|
| 2324 | Cleaned up smb.conf, and added some useful entries for domain controlling.
|
|---|
| 2325 | Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
|
|---|
| 2326 | Added groupadd command in post to create a group for samba machine accounts.
|
|---|
| 2327 | (We should still check the postun, samba removes pam, logs and cache)
|
|---|
| 2328 |
|
|---|
| 2329 | * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
|
|---|
| 2330 | - fixed smbwrapper compile options.
|
|---|
| 2331 |
|
|---|
| 2332 | * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
|
|---|
| 2333 | - added LFS support.
|
|---|
| 2334 | added smbwrapper support (smbsh)
|
|---|
| 2335 |
|
|---|
| 2336 | * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
|
|---|
| 2337 | - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
|
|---|
| 2338 | of smbmount (/usr/bin/smbmount)
|
|---|
| 2339 |
|
|---|
| 2340 | * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
|
|---|
| 2341 | - smbmount and smbumount are now in /usr/bin and SUID.
|
|---|
| 2342 | added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
|
|---|
| 2343 | Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
|
|---|
| 2344 |
|
|---|
| 2345 | * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
|
|---|
| 2346 | - s/Copyright/License/;
|
|---|
| 2347 | - Stop Sylvester from pretending .gz source to be .bz2 source via filename
|
|---|
| 2348 | aka really bzip2 the source.
|
|---|
| 2349 |
|
|---|
| 2350 | * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
|
|---|
| 2351 | - changed Till's startup script modifications: now samba is being reloaded
|
|---|
| 2352 | automatically 1 minute after it has started (same reasons as below in 9mdk)
|
|---|
| 2353 | added _post_ and _preun_ for service smb
|
|---|
| 2354 | fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
|
|---|
| 2355 |
|
|---|
| 2356 | * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
|
|---|
| 2357 | - Modified the Samba startup script so that in case of CUPS being used as
|
|---|
| 2358 | printing system Samba only starts when the CUPS daemon is ready to accept
|
|---|
| 2359 | requests. Otherwise the CUPS queues would not appear as Samba shares.
|
|---|
| 2360 |
|
|---|
| 2361 | * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
|
|---|
| 2362 | - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
|
|---|
| 2363 |
|
|---|
| 2364 | * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
|
|---|
| 2365 | - put SWAT menu icons back in place.
|
|---|
| 2366 |
|
|---|
| 2367 | * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
|
|---|
| 2368 | - OOPS! fixed smbmount symlinks
|
|---|
| 2369 |
|
|---|
| 2370 | * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
|
|---|
| 2371 | - removed inetd postun script, replaced with xinetd.
|
|---|
| 2372 | updated binary list (smbcacls...)
|
|---|
| 2373 | cleaned samba.spec
|
|---|
| 2374 |
|
|---|
| 2375 | * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
|
|---|
| 2376 | - Changed configure options to point to correct log and codepage directories,
|
|---|
| 2377 | added crude script to fix logrotate file for new log file names, updated
|
|---|
| 2378 | patches to work with current CVS.
|
|---|
| 2379 |
|
|---|
| 2380 | * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
|
|---|
| 2381 | - Cleaned and updated the %files section.
|
|---|
| 2382 |
|
|---|
| 2383 | * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
|
|---|
| 2384 | - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
|
|---|
| 2385 | Fixed fixinit patch (/etc/samba/smb.conf)
|
|---|
| 2386 |
|
|---|
| 2387 | * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
|
|---|
| 2388 | - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
|
|---|
| 2389 | patches, moved netlogon and profile shares to /var/lib/samba in the
|
|---|
| 2390 | smb.conf to match the spec file. Added configuration for ntlogon to
|
|---|
| 2391 | smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
|
|---|
| 2392 | symlink I introduced in 2.2.0-1mdk
|
|---|
| 2393 |
|
|---|
| 2394 | * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
|
|---|
| 2395 | - Added more configure options. Changed Description field (thx John T).
|
|---|
| 2396 |
|
|---|
| 2397 | * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
|
|---|
| 2398 | - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
|
|---|
| 2399 |
|
|---|
| 2400 | * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
|
|---|
| 2401 | - moved netlogon and profiles back to /home.
|
|---|
| 2402 |
|
|---|
| 2403 | * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
|
|---|
| 2404 | - fixed post inetd/xinetd script&
|
|---|
| 2405 |
|
|---|
| 2406 | * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
|
|---|
| 2407 | - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
|
|---|
| 2408 | nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
|
|---|
| 2409 | to take. smbadduser and addtosmbpass seem to have disappeared. Moved
|
|---|
| 2410 | all Mandrake-specific files to packaging/Mandrake and made patches
|
|---|
| 2411 | from those shipped with samba. Moved netlogon to /home/samba and added
|
|---|
| 2412 | /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
|
|---|
| 2413 |
|
|---|
| 2414 | * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
|
|---|
| 2415 | - Fix menu entry and provide separate menu entry for GNOME
|
|---|
| 2416 | (nautilus doesn't support HTTP authentication yet)
|
|---|
| 2417 | - Add icons in package
|
|---|
| 2418 |
|
|---|
| 2419 | * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
|
|---|
| 2420 | - use new server macros
|
|---|
| 2421 |
|
|---|
| 2422 | * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
|
|---|
| 2423 | - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
|
|---|
| 2424 |
|
|---|
| 2425 | * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
|
|---|
| 2426 | - spec cosmetics, added '-r' option to lpr-cups command line so files are
|
|---|
| 2427 | removed from /var/spool/samba after printing.
|
|---|
| 2428 |
|
|---|
| 2429 | * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
|
|---|
| 2430 | - merged last rh patches.
|
|---|
| 2431 |
|
|---|
| 2432 | * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
|
|---|
| 2433 | - removed dependencies on cups and cups-devel so one can install samba without using cups
|
|---|
| 2434 | - added /home/netlogon
|
|---|
| 2435 |
|
|---|
| 2436 | * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
|
|---|
| 2437 | - Changed default print command in /etc/smb.conf, so that the Windows
|
|---|
| 2438 | driver of the printer has to be used on the client.
|
|---|
| 2439 | - Fixed bug in smbspool which prevented from printing from a
|
|---|
| 2440 | Linux-Samba-CUPS client to a Windows server through the guest account.
|
|---|
| 2441 |
|
|---|
| 2442 | * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
|
|---|
| 2443 | - Moved "smbspool" (Samba client of CUPS) to the samba-client package
|
|---|
| 2444 |
|
|---|
| 2445 | * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
|
|---|
| 2446 | - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
|
|---|
| 2447 | quota related compile problems on the alpha.
|
|---|
| 2448 |
|
|---|
| 2449 | * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
|
|---|
| 2450 | - Fixed 'guest ok = ok' flag in smb.conf
|
|---|
| 2451 |
|
|---|
| 2452 | * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
|
|---|
| 2453 | - Allowed guest account to print in smb.conf
|
|---|
| 2454 | - added swat icon in menu
|
|---|
| 2455 |
|
|---|
| 2456 | * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
|
|---|
| 2457 | - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
|
|---|
| 2458 |
|
|---|
| 2459 | * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
|
|---|
| 2460 | - Changed fixinit patch.
|
|---|
| 2461 | - Changed smb.conf for better CUPS configuration.
|
|---|
| 2462 | - Thanks Fred for doing this ---vvv.
|
|---|
| 2463 |
|
|---|
| 2464 | * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
|
|---|
| 2465 | - menu entry for web configuration tool.
|
|---|
| 2466 | - merge with rh: xinetd + ssl + pam_stack.
|
|---|
| 2467 | - Added smbadduser rh-bugfix w/o relocation of config-files.
|
|---|
| 2468 |
|
|---|
| 2469 | * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
|
|---|
| 2470 | - added build requires on cups-devel and pam-devel.
|
|---|
| 2471 |
|
|---|
| 2472 | * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
|
|---|
| 2473 | - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
|
|---|
| 2474 | wrong.
|
|---|
| 2475 |
|
|---|
| 2476 | * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
|
|---|
| 2477 | - Cosmetic changes to make rpmlint more happy
|
|---|
| 2478 |
|
|---|
| 2479 | * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
|
|---|
| 2480 | - added linkage to the using_samba book in swat
|
|---|
| 2481 |
|
|---|
| 2482 | * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
|
|---|
| 2483 | - Added CUPS support to smb.conf
|
|---|
| 2484 | - Added internationalization options to smb.conf [Global]
|
|---|
| 2485 |
|
|---|
| 2486 | * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
|
|---|
| 2487 | - Put "smbspool" to the files to install
|
|---|
| 2488 |
|
|---|
| 2489 | * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
|
|---|
| 2490 | - Did some cleaning in the patches
|
|---|
| 2491 |
|
|---|
| 2492 | * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
|
|---|
| 2493 | - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
|
|---|
| 2494 |
|
|---|
| 2495 | * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
|
|---|
| 2496 | - added make_unicodemap and build of unicode_map.$i in the spec file
|
|---|
| 2497 |
|
|---|
| 2498 | * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
|
|---|
| 2499 | - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
|
|---|
| 2500 |
|
|---|
| 2501 | * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
|
|---|
| 2502 | - 2.0.7
|
|---|
| 2503 |
|
|---|
| 2504 | * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
|
|---|
| 2505 |
|
|---|
| 2506 | - Titi sucks, does not put versions in changelog
|
|---|
| 2507 | - Fixed groups for -common and -client
|
|---|
| 2508 | - /usr/sbin/samba is no config file
|
|---|
| 2509 |
|
|---|
| 2510 | * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
|
|---|
| 2511 | - fix buggy post install script (pixel)
|
|---|
| 2512 |
|
|---|
| 2513 | * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
|
|---|
| 2514 |
|
|---|
| 2515 | - Changed group according to 7.1 specs
|
|---|
| 2516 | - Some spec file changes
|
|---|
| 2517 | - Let spec-helper do its job
|
|---|
| 2518 |
|
|---|
| 2519 | * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
|---|
| 2520 | - 2.0.6.
|
|---|
| 2521 |
|
|---|
| 2522 | * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
|---|
| 2523 | - Merge with rh changes.
|
|---|
| 2524 | - Split in 3 packages.
|
|---|
| 2525 |
|
|---|
| 2526 | * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
|
|---|
| 2527 | - corrected a bug with %post (the $1 parameter is "1" in case of
|
|---|
| 2528 | a first install, not "0". That parameter is the number of packages
|
|---|
| 2529 | of the same name that will exist after running all the steps if nothing
|
|---|
| 2530 | is removed; so it is "1" after first isntall, "2" for a second install
|
|---|
| 2531 | or an upgrade, and "0" for a removal)
|
|---|
| 2532 |
|
|---|
| 2533 | * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
|
|---|
| 2534 | - made smbmnt and smbumount suid root, and only executable by group 'smb'
|
|---|
| 2535 | add to 'smb' group any user that should be allowed to mount/unmount
|
|---|
| 2536 | SMB shared directories
|
|---|
| 2537 |
|
|---|
| 2538 | * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
|---|
| 2539 | - 2.0.5a (bug security fix).
|
|---|
| 2540 |
|
|---|
| 2541 | * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
|
|---|
| 2542 | - 2.0.5
|
|---|
| 2543 | - cs/da/de/fi/fr/it/tr descriptions/summaries
|
|---|
| 2544 |
|
|---|
| 2545 | * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
|
|---|
| 2546 | - 2.0.4b
|
|---|
| 2547 | - recompile on a system that works ;)
|
|---|
| 2548 |
|
|---|
| 2549 | * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
|---|
| 2550 | - Mandrake adaptations.
|
|---|
| 2551 | - Bzip2 man-pages.
|
|---|
| 2552 |
|
|---|
| 2553 | * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2554 | - add a mount.smb to make smb mounting a little easier.
|
|---|
| 2555 | - smb filesystems apparently do not work on alpha. Oops.
|
|---|
| 2556 |
|
|---|
| 2557 | * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2558 | - always create codepages
|
|---|
| 2559 |
|
|---|
| 2560 | * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2561 | - logrotate changes
|
|---|
| 2562 |
|
|---|
| 2563 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|---|
| 2564 | - auto rebuild in the new build environment (release 3)
|
|---|
| 2565 |
|
|---|
| 2566 | * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
|
|---|
| 2567 | - updated init script to use graceful restart (not stop/start)
|
|---|
| 2568 |
|
|---|
| 2569 | * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2570 | - update to 2.0.3
|
|---|
| 2571 |
|
|---|
| 2572 | * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2573 | - update to 2.0.2
|
|---|
| 2574 |
|
|---|
| 2575 | * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2576 | - swat swat
|
|---|
| 2577 |
|
|---|
| 2578 | * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2579 | - fix bash2 breakage in post script
|
|---|
| 2580 |
|
|---|
| 2581 | * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
|
|---|
| 2582 | - update to 2.0.0
|
|---|
| 2583 |
|
|---|
| 2584 | * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
|
|---|
| 2585 | - make sure all binaries are stripped
|
|---|
| 2586 |
|
|---|
| 2587 | * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
|
|---|
| 2588 | - update to 1.9.18p10.
|
|---|
| 2589 | - fix %triggerpostun.
|
|---|
| 2590 |
|
|---|
| 2591 | * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
|
|---|
| 2592 | - updated postun triggerscript to check $0
|
|---|
| 2593 | - clear /etc/codepages from %preun instead of %postun
|
|---|
| 2594 |
|
|---|
| 2595 | * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
|
|---|
| 2596 | - made the %postun script a tad less agressive; no reason to remove
|
|---|
| 2597 | the logs or lock file (after all, if the lock file is still there,
|
|---|
| 2598 | samba is still running)
|
|---|
| 2599 | - the %postun and %preun should only exectute if this is the final
|
|---|
| 2600 | removal
|
|---|
| 2601 | - migrated %triggerpostun from Red Hat's samba package to work around
|
|---|
| 2602 | packaging problems in some Red Hat samba releases
|
|---|
| 2603 |
|
|---|
| 2604 | * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
|
|---|
| 2605 | - minor tidy up in preparation for release of 1.9.18p5
|
|---|
| 2606 | - added findsmb utility from SGI package
|
|---|
| 2607 |
|
|---|
| 2608 | * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
|
|---|
| 2609 | - Updated version and codepage info.
|
|---|
| 2610 | - Release to test name resolve order
|
|---|
| 2611 |
|
|---|
| 2612 | * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
|
|---|
| 2613 | - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
|
|---|
| 2614 | - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
|
|---|
| 2615 | - Compounded make line
|
|---|
| 2616 | - Updated smb.init restart mechanism
|
|---|
| 2617 | - Use compound mkdir -p line instead of individual calls to mkdir
|
|---|
| 2618 | - Fixed smb.conf file path for log files
|
|---|
| 2619 | - Fixed smb.conf file path for incoming smb print spool directory
|
|---|
| 2620 | - Added a number of options to smb.conf file
|
|---|
| 2621 | - Added smbadduser command (missed from all previous RPMs) - Doooh!
|
|---|
| 2622 | - Added smbuser file and smb.conf file updates for username map
|
|---|