~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to debian/patches/autoconf.patch

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2009-05-18 13:26:04 UTC
  • mfrom: (0.28.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090518132604-ebyuqimgymtr3h0k
Tags: 2:3.3.4-2ubuntu1
* Merge from debian unstable, remaining changes:
  + debian/patches/VERSION.patch:
    - setup SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted (LP: #312449)
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control:
    - Make libwbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb.
    - Add suggests keyutils for smbfs. (LP: #300221)
  + debian/rules:
    - enable "native" PIE hardening.
    - remove --with-ctdb and --with-cluster-support=yes
  + Add ufw integration:
    - Created debian/samba.ufw profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install 
      profile
    - debian/control: have samba sugguest ufw.
* Dropped patches:
  + debian/patches/fix-upstream-bug-6186.patch: Merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 quilt refresh
26
26
 find . -name '*.rej' | xargs rm
27
27
 
28
 
Index: samba-3.3.2/source/configure
 
28
Index: samba/source/configure
29
29
===================================================================
30
 
--- samba-3.3.2.orig/source/configure
31
 
+++ samba-3.3.2/source/configure
32
 
@@ -676,6 +676,7 @@
 
30
--- samba.orig/source/configure
 
31
+++ samba/source/configure
 
32
@@ -678,6 +678,7 @@
33
33
 LIBADDNS_SOVER
34
34
 UNINSTALL_LIBADDNS
35
35
 INSTALL_LIBADDNS
37
37
 LIBADDNS_LIBS
38
38
 LIBADDNS_STATIC
39
39
 LIBADDNS_SHARED
40
 
@@ -684,6 +685,7 @@
 
40
@@ -686,6 +687,7 @@
41
41
 LIBSMBSHAREMODES_SOVER
42
42
 UNINSTALL_LIBSMBSHAREMODES
43
43
 INSTALL_LIBSMBSHAREMODES
45
45
 LIBSMBSHAREMODES_LIBS
46
46
 LIBSMBSHAREMODES_STATIC
47
47
 LIBSMBSHAREMODES_SHARED
48
 
@@ -692,6 +694,7 @@
 
48
@@ -694,6 +696,7 @@
49
49
 LIBSMBCLIENT_SOVER
50
50
 UNINSTALL_LIBSMBCLIENT
51
51
 INSTALL_LIBSMBCLIENT
53
53
 LIBSMBCLIENT_LIBS
54
54
 LIBSMBCLIENT_STATIC
55
55
 LIBSMBCLIENT_SHARED
56
 
@@ -700,6 +703,7 @@
 
56
@@ -702,6 +705,7 @@
57
57
 LIBNETAPI_SOVER
58
58
 UNINSTALL_LIBNETAPI
59
59
 INSTALL_LIBNETAPI
61
61
 LIBNETAPI_LIBS
62
62
 LIBNETAPI_STATIC
63
63
 LIBNETAPI_SHARED
64
 
@@ -708,6 +712,7 @@
 
64
@@ -710,6 +714,7 @@
65
65
 LIBTDB_SOVER
66
66
 UNINSTALL_LIBTDB
67
67
 INSTALL_LIBTDB
69
69
 LIBTDB_LIBS
70
70
 LIBTDB_STATIC
71
71
 LIBTDB_SHARED
72
 
@@ -716,6 +721,7 @@
 
72
@@ -718,6 +723,7 @@
73
73
 LIBTALLOC_SOVER
74
74
 UNINSTALL_LIBTALLOC
75
75
 INSTALL_LIBTALLOC
77
77
 LIBTALLOC_LIBS
78
78
 LIBTALLOC_STATIC
79
79
 LIBTALLOC_SHARED
80
 
@@ -2408,9 +2414,9 @@
 
80
@@ -2412,9 +2418,9 @@
81
81
 pammodulesdir="${libdir}/security"
82
82
 configdir="${libdir}"
83
83
 swatdir="\${prefix}/swat"
90
90
 localedir="\${prefix}/share/locale"
91
91
 
92
92
 
93
 
@@ -2426,10 +2432,10 @@
 
93
@@ -2430,10 +2436,10 @@
94
94
     test "${libdir}" || libdir="\${prefix}/lib"
95
95
     modulesdir="${libdir}/samba"
96
96
     configdir="\${sysconfdir}/samba"
103
103
 
104
104
 cat >>confdefs.h <<\_ACEOF
105
105
 #define FHS_COMPATIBLE 1
106
 
@@ -12591,7 +12597,7 @@
107
 
         else
108
 
            { $as_echo "$as_me:$LINENO: checking GNU ld release version" >&5
109
 
 $as_echo_n "checking GNU ld release version... " >&6; }
110
 
-                      ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
111
 
+                      ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*[^0-9\.]\+\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
112
 
            ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
113
 
            ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
114
 
                       { $as_echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5
115
 
@@ -12607,7 +12613,7 @@
116
 
            if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then
117
 
              ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
118
 
            fi
119
 
-           if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
120
 
+           if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major" = 2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
121
 
              ac_cv_gnu_ld_version_script=yes
122
 
            fi
123
 
         fi
124
 
@@ -13715,6 +13721,27 @@
 
106
@@ -13719,6 +13725,27 @@
125
107
       fi
126
108
     ;;
127
109
 
149
131
 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
150
132
 #
151
133
     *linux*)
152
 
@@ -44058,7 +44085,7 @@
 
134
@@ -44065,7 +44092,7 @@
153
135
 #
154
136
 #
155
137
 case "$host_os" in
158
140
        # glibc <= 2.3.2 has a broken getgrouplist
159
141
        if test "$cross_compiling" = yes; then
160
142
   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
161
 
@@ -49873,11 +49900,14 @@
 
143
@@ -49880,11 +49907,14 @@
162
144
 
163
145
   # and these are for particular systems
164
146
   case "$host_os" in
175
157
                        BLDSHARED="true"
176
158
                        if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
177
159
                                LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
178
 
@@ -71925,7 +71955,8 @@
 
160
@@ -71932,7 +71962,8 @@
179
161
 LIBTALLOC_STATIC_TARGET=bin/libtalloc.a
180
162
 LIBTALLOC_SHARED=
181
163
 LIBTALLOC_STATIC=
185
167
 INSTALL_LIBTALLOC=
186
168
 UNINSTALL_LIBTALLOC=
187
169
 
188
 
@@ -71940,6 +71971,7 @@
 
170
@@ -71947,6 +71978,7 @@
189
171
 
190
172
 
191
173
 
193
175
 { $as_echo "$as_me:$LINENO: checking whether to build the libtalloc shared library" >&5
194
176
 $as_echo_n "checking whether to build the libtalloc shared library... " >&6; }
195
177
 
196
 
@@ -71974,15 +72006,17 @@
 
178
@@ -71981,15 +72013,17 @@
197
179
        UNINSTALL_LIBTALLOC=uninstalllibtalloc
198
180
        if eval $BLDSHARED = true; then
199
181
                LIBTALLOC_SHARED=$LIBTALLOC_SHARED_TARGET
213
195
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
214
196
 $as_echo "no shared library support -- will supply static library" >&6; }
215
197
        fi
216
 
@@ -72009,7 +72043,8 @@
 
198
@@ -72016,7 +72050,8 @@
217
199
 LIBTDB_STATIC_TARGET=bin/libtdb.a
218
200
 LIBTDB_SHARED=
219
201
 LIBTDB_STATIC=
223
205
 INSTALL_LIBTDB=
224
206
 UNINSTALL_LIBTDB=
225
207
 
226
 
@@ -72024,6 +72059,7 @@
 
208
@@ -72031,6 +72066,7 @@
227
209
 
228
210
 
229
211
 
231
213
 { $as_echo "$as_me:$LINENO: checking whether to build the libtdb shared library" >&5
232
214
 $as_echo_n "checking whether to build the libtdb shared library... " >&6; }
233
215
 
234
 
@@ -72058,15 +72094,17 @@
 
216
@@ -72065,15 +72101,17 @@
235
217
        UNINSTALL_LIBTDB=uninstalllibtdb
236
218
        if eval $BLDSHARED = true; then
237
219
                LIBTDB_SHARED=$LIBTDB_SHARED_TARGET
251
233
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
252
234
 $as_echo "no shared library support -- will supply static library" >&6; }
253
235
        fi
254
 
@@ -72093,7 +72131,8 @@
 
236
@@ -72100,7 +72138,8 @@
255
237
 LIBNETAPI_STATIC_TARGET=bin/libnetapi.a
256
238
 LIBNETAPI_SHARED=
257
239
 LIBNETAPI_STATIC=
261
243
 INSTALL_LIBNETAPI=
262
244
 UNINSTALL_LIBNETAPI=
263
245
 
264
 
@@ -72108,6 +72147,7 @@
 
246
@@ -72115,6 +72154,7 @@
265
247
 
266
248
 
267
249
 
269
251
 { $as_echo "$as_me:$LINENO: checking whether to build the libnetapi shared library" >&5
270
252
 $as_echo_n "checking whether to build the libnetapi shared library... " >&6; }
271
253
 
272
 
@@ -72142,15 +72182,17 @@
 
254
@@ -72149,15 +72189,17 @@
273
255
        UNINSTALL_LIBNETAPI=uninstalllibnetapi
274
256
        if eval $BLDSHARED = true; then
275
257
                LIBNETAPI_SHARED=$LIBNETAPI_SHARED_TARGET
289
271
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
290
272
 $as_echo "no shared library support -- will supply static library" >&6; }
291
273
        fi
292
 
@@ -72177,7 +72219,8 @@
 
274
@@ -72184,7 +72226,8 @@
293
275
 LIBSMBCLIENT_STATIC_TARGET=bin/libsmbclient.a
294
276
 LIBSMBCLIENT_SHARED=
295
277
 LIBSMBCLIENT_STATIC=
299
281
 INSTALL_LIBSMBCLIENT=
300
282
 UNINSTALL_LIBSMBCLIENT=
301
283
 
302
 
@@ -72192,6 +72235,7 @@
 
284
@@ -72199,6 +72242,7 @@
303
285
 
304
286
 
305
287
 
307
289
 { $as_echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
308
290
 $as_echo_n "checking whether to build the libsmbclient shared library... " >&6; }
309
291
 
310
 
@@ -72226,15 +72270,17 @@
 
292
@@ -72233,15 +72277,17 @@
311
293
        UNINSTALL_LIBSMBCLIENT=uninstalllibsmbclient
312
294
        if eval $BLDSHARED = true; then
313
295
                LIBSMBCLIENT_SHARED=$LIBSMBCLIENT_SHARED_TARGET
327
309
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
328
310
 $as_echo "no shared library support -- will supply static library" >&6; }
329
311
        fi
330
 
@@ -72261,7 +72307,8 @@
 
312
@@ -72268,7 +72314,8 @@
331
313
 LIBSMBSHAREMODES_STATIC_TARGET=bin/libsmbsharemodes.a
332
314
 LIBSMBSHAREMODES_SHARED=
333
315
 LIBSMBSHAREMODES_STATIC=
337
319
 INSTALL_LIBSMBSHAREMODES=
338
320
 UNINSTALL_LIBSMBSHAREMODES=
339
321
 
340
 
@@ -72276,6 +72323,7 @@
 
322
@@ -72283,6 +72330,7 @@
341
323
 
342
324
 
343
325
 
345
327
 { $as_echo "$as_me:$LINENO: checking whether to build the libsmbsharemodes shared library" >&5
346
328
 $as_echo_n "checking whether to build the libsmbsharemodes shared library... " >&6; }
347
329
 
348
 
@@ -72310,15 +72358,17 @@
 
330
@@ -72317,15 +72365,17 @@
349
331
        UNINSTALL_LIBSMBSHAREMODES=uninstalllibsmbsharemodes
350
332
        if eval $BLDSHARED = true; then
351
333
                LIBSMBSHAREMODES_SHARED=$LIBSMBSHAREMODES_SHARED_TARGET
365
347
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
366
348
 $as_echo "no shared library support -- will supply static library" >&6; }
367
349
        fi
368
 
@@ -72345,7 +72395,8 @@
 
350
@@ -72352,7 +72402,8 @@
369
351
 LIBADDNS_STATIC_TARGET=bin/libaddns.a
370
352
 LIBADDNS_SHARED=
371
353
 LIBADDNS_STATIC=
375
357
 INSTALL_LIBADDNS=
376
358
 UNINSTALL_LIBADDNS=
377
359
 
378
 
@@ -72360,6 +72411,7 @@
 
360
@@ -72367,6 +72418,7 @@
379
361
 
380
362
 
381
363
 
383
365
 { $as_echo "$as_me:$LINENO: checking whether to build the libaddns shared library" >&5
384
366
 $as_echo_n "checking whether to build the libaddns shared library... " >&6; }
385
367
 
386
 
@@ -72396,15 +72448,17 @@
 
368
@@ -72403,15 +72455,17 @@
387
369
        UNINSTALL_LIBADDNS=uninstalllibaddns
388
370
        if eval $BLDSHARED = true; then
389
371
                LIBADDNS_SHARED=$LIBADDNS_SHARED_TARGET
403
385
                { $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
404
386
 $as_echo "no shared library support -- will supply static library" >&6; }
405
387
        fi
406
 
@@ -75293,7 +75347,7 @@
 
388
@@ -75300,7 +75354,7 @@
407
389
 $as_echo "yes" >&6; };
408
390
 
409
391
        case "$host_os" in
412
394
                { $as_echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
413
395
 $as_echo_n "checking for linux sendfile64 support... " >&6; }
414
396
 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
415
 
@@ -76555,11 +76609,11 @@
 
397
@@ -76562,11 +76616,11 @@
416
398
 WINBIND_NSS_PTHREAD=""
417
399
 
418
400
 case "$host_os" in
426
408
                # FreeBSD winbind client is implemented as a wrapper around
427
409
                # the Linux version.
428
410
                NSSSONAMEVERSIONSUFFIX=".1"
429
 
Index: samba-3.3.2/source/include/config.h.in
 
411
Index: samba/source/include/config.h.in
430
412
===================================================================
431
 
--- samba-3.3.2.orig/source/include/config.h.in
432
 
+++ samba-3.3.2/source/include/config.h.in
 
413
--- samba.orig/source/include/config.h.in
 
414
+++ samba/source/include/config.h.in
433
415
@@ -69,6 +69,9 @@
434
416
 /* Whether to use fully FHS-compatible paths */
435
417
 #undef FHS_COMPATIBLE