]> git.pld-linux.org Git - packages/samba.git/commitdiff
- updated to 4.1.6 (fixes CVE-2013-4496 CVE-2013-6442) auto/th/samba-4.1.6-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 12 Mar 2014 20:50:40 +0000 (21:50 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 12 Mar 2014 20:50:40 +0000 (21:50 +0100)
- added readline patch (fixes build with readline 6.3)

samba-readline.patch [new file with mode: 0644]
samba.spec

diff --git a/samba-readline.patch b/samba-readline.patch
new file mode 100644 (file)
index 0000000..7cdedc3
--- /dev/null
@@ -0,0 +1,11 @@
+--- samba-4.1.6/libcli/smbreadline/smbreadline.c.orig  2013-06-13 11:21:02.000000000 +0200
++++ samba-4.1.6/libcli/smbreadline/smbreadline.c       2014-03-12 20:41:16.503527437 +0100
+@@ -141,7 +141,7 @@
+ #if HAVE_DECL_RL_EVENT_HOOK
+       if (callback)
+-              rl_event_hook = (Function *)callback;
++              rl_event_hook = (rl_hook_func_t *)callback;
+ #endif
+       ret = readline(prompt);
+       if (ret && *ret)
index 452b93ceee54e581eb73bcb0a4bc24cd51e68d60..ce69b1b15668dd6fe00b0da9452fc8389cb3fbaa 100644 (file)
 Summary:       Samba Active Directory and SMB server
 Summary(pl.UTF-8):     Serwer Samba Active Directory i SMB
 Name:          samba
-Version:       4.1.4
-Release:       4
+Version:       4.1.6
+Release:       1
 Epoch:         1
 License:       GPL v3
 Group:         Networking/Daemons
 Source0:       http://www.samba.org/samba/ftp/stable/samba-%{version}.tar.gz
-# Source0-md5: c7871012ac40b8c74afff42bbd873bd7
+# Source0-md5: 9dc64658c0cc81e7637f9b975c19638c
 Source1:       smb.init
 Source2:       samba.pamd
 Source4:       samba.sysconfig
@@ -39,12 +39,13 @@ Source9:    samba.init
 Source10:      https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2
 # Source10-md5:        a3a30d5fbf309d356e8c5833db680c17
 Patch0:                system-heimdal.patch
-Patch1:                samba-c++-nofail.patch
-Patch2:                samba-lprng-no-dot-printers.patch
+Patch1:                %{name}-c++-nofail.patch
+Patch2:                %{name}-lprng-no-dot-printers.patch
 Patch3:                systemd-pid-dir.patch
 Patch4:                unicodePwd-nthash-values-over-LDAP.patch
 Patch5:                link.patch
 Patch6:                server-role.patch
+Patch7:                %{name}-readline.patch
 URL:           http://www.samba.org/
 BuildRequires: acl-devel
 %{?with_avahi:BuildRequires:   avahi-devel}
@@ -495,9 +496,10 @@ Ten pakiet zawiera schemat Samby (samba.schema) dla OpenLDAP-a.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
-sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba*
-sed -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl
+%{__sed} -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba*
+%{__sed} -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl
 
 %build
 LDFLAGS="${LDFLAGS:-%rpmldflags}" \
This page took 0.323915 seconds and 4 git commands to generate.