This commit is contained in:
parent
4d3642a564
commit
85e6ca69e1
@ -1,2 +1,2 @@
|
||||
1906
|
||||
1931
|
||||
Branch : 3.2.4
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6b34cf7a245732cb5418b13b6ad2ec91554629d977549aef6d6938a0a07c0df6
|
||||
size 72793
|
||||
oid sha256:a89d352402dd86d4ee99aff1e1b4066c60cfa9cb43ae29faff810d61dbb73ee3
|
||||
size 59711
|
||||
|
@ -26,13 +26,13 @@ BuildRequires: ccache cracklib-devel cups-devel e2fsprogs-devel gdbm-devel krb5
|
||||
License: GPL v3 or later
|
||||
Url: http://www.samba.org/
|
||||
Version: 3.2.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Samba Documentation
|
||||
Group: Documentation/Other
|
||||
AutoReqProv: on
|
||||
Provides: samba3-doc = %{version}-%{release}
|
||||
Obsoletes: samba3-doc < %{version}
|
||||
PreReq: /bin/rm /usr/bin/find /usr/bin/xargs
|
||||
PreReq: coreutils findutils
|
||||
BuildArch: noarch
|
||||
Source: http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.tar.bz2
|
||||
Source1: vendor-files.tar.bz2
|
||||
@ -45,9 +45,9 @@ Source3: build-source-timestamp
|
||||
# requires: docbook-utils docbook-xsl-stylesheets docbook_4 freetype2 ghostscript-fonts-std ghostscript-library ghostscript-x11 libxslt sgml-skel te_etex te_latex te_pdf tetex xmlcharent
|
||||
%define make_doc 0
|
||||
%define make_utils 0
|
||||
%define make_vscan 0
|
||||
%define make_vscan 1
|
||||
%define make_ldapsmb 1
|
||||
%if 0%{?suse_version} > 1020
|
||||
%if 0%{?suse_version} > 1020 || 0%{?centos_version} > 500 || 0%{?fedora_version} > 7 || 0%{?rhel_version} > 500
|
||||
%define make_cifsupcall 1
|
||||
%else
|
||||
%define make_cifsupcall 0
|
||||
@ -62,6 +62,11 @@ Source3: build-source-timestamp
|
||||
%define CONFIGDIR %{_sysconfdir}/samba
|
||||
%define INITDIR %{_sysconfdir}/init.d
|
||||
%define PIDDIR %{_localstatedir}/run/samba
|
||||
%if "%{_vendor}" == "suse"
|
||||
%define NET_CFGDIR network
|
||||
%else
|
||||
%define NET_CFGDIR network-scripts
|
||||
%endif
|
||||
%define idmap_modules idmap_ad,idmap_ldap,idmap_rid
|
||||
%define vfs_modules vfs_cacheprime,vfs_readahead
|
||||
%if 0%{?ul_version} >= 1
|
||||
@ -314,7 +319,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +1,51 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 3 16:48:31 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Only call the stop_on_removal, restart_on_update, or insserv_cleanup macro
|
||||
if available.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 3 15:12:23 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Only call the fillup_and_insserv or fillup_only macro if available.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 3 12:42:13 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Use package names instead of macros for cp, mkdir, mv, rm, and grep or
|
||||
instead of the full path to the binary for ln, find and xargs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 3 01:28:07 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Introduce NET_CFGDIR to fit the needs for a differing location of the
|
||||
network configuration per vendor.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 3 00:59:49 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Use path macros for cp, mkdir, mv, rm, and grep.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 2 21:30:06 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Only use SUSE rpm macros and SuSEconfig.permissions if available.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 29 16:09:11 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Adopt samba-vscan to build after the change to the bool type define.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 24 19:40:30 MDT 2008 - tlaxmeshwar@novell.com
|
||||
|
||||
- Fix winbindd crash in an unusual failure mode; (bnc#416598).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 22 15:13:40 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
- Build cifs.upcall for CentOS 5, Fedora 8 and RHEL 5 and newer too.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 20 14:53:45 CEST 2008 - lmuelle@suse.de
|
||||
|
||||
|
159
samba.spec
159
samba.spec
@ -51,12 +51,12 @@ Group: Productivity/Networking/Samba
|
||||
Url: http://www.samba.org/
|
||||
AutoReqProv: on
|
||||
Version: 3.2.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Requires: samba-client >= %{version}
|
||||
%if 0%{?suse_version} > 1030
|
||||
Recommends: cron logrotate
|
||||
%endif
|
||||
PreReq: /bin/cp /bin/mkdir /bin/mv /bin/rm /bin/touch /usr/bin/dirname /usr/bin/grep /usr/sbin/groupadd /usr/bin/tr
|
||||
PreReq: coreutils grep /usr/sbin/groupadd
|
||||
Summary: A SMB/CIFS File, Print, and Authentication Server
|
||||
Source: http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.tar.bz2
|
||||
Source1: vendor-files.tar.bz2
|
||||
@ -71,9 +71,9 @@ Source11: http://www.hhrm.de/~gd/ldapsmb/ldapsmb-%{ldapsmb_ver}.tar.bz2
|
||||
# requires: docbook-utils docbook-xsl-stylesheets docbook_4 freetype2 ghostscript-fonts-std ghostscript-library ghostscript-x11 libxslt sgml-skel te_etex te_latex te_pdf tetex xmlcharent
|
||||
%define make_doc 0
|
||||
%define make_utils 0
|
||||
%define make_vscan 0
|
||||
%define make_vscan 1
|
||||
%define make_ldapsmb 1
|
||||
%if 0%{?suse_version} > 1020
|
||||
%if 0%{?suse_version} > 1020 || 0%{?centos_version} > 500 || 0%{?fedora_version} > 7 || 0%{?rhel_version} > 500
|
||||
%define make_cifsupcall 1
|
||||
%else
|
||||
%define make_cifsupcall 0
|
||||
@ -88,6 +88,11 @@ Source11: http://www.hhrm.de/~gd/ldapsmb/ldapsmb-%{ldapsmb_ver}.tar.bz2
|
||||
%define CONFIGDIR %{_sysconfdir}/samba
|
||||
%define INITDIR %{_sysconfdir}/init.d
|
||||
%define PIDDIR %{_localstatedir}/run/samba
|
||||
%if "%{_vendor}" == "suse"
|
||||
%define NET_CFGDIR network
|
||||
%else
|
||||
%define NET_CFGDIR network-scripts
|
||||
%endif
|
||||
%define idmap_modules idmap_ad,idmap_ldap,idmap_rid
|
||||
%define vfs_modules vfs_cacheprime,vfs_readahead
|
||||
%if 0%{?ul_version} >= 1
|
||||
@ -123,7 +128,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package client
|
||||
@ -133,7 +138,7 @@ Group: Productivity/Networking/Samba
|
||||
AutoReqProv: on
|
||||
Provides: smbfs samba3-client = %{version}-%{release}
|
||||
Obsoletes: samba3-client < %{version}
|
||||
PreReq: %{?insserv_prereq} %{?fillup_prereq} /bin/ln /bin/mkdir /bin/touch /sbin/ldconfig /usr/bin/dirname
|
||||
PreReq: %{?insserv_prereq} %{?fillup_prereq} coreutils /sbin/ldconfig
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 920
|
||||
Requires: cifs-mount
|
||||
%endif
|
||||
@ -160,7 +165,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1020
|
||||
@ -181,7 +186,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -194,7 +199,7 @@ Group: Documentation/Other
|
||||
AutoReqProv: on
|
||||
Provides: samba3-doc = %{version}-%{release}
|
||||
Obsoletes: samba3-doc < %{version}
|
||||
PreReq: /bin/rm /usr/bin/find /usr/bin/xargs
|
||||
PreReq: coreutils findutils
|
||||
|
||||
%description doc
|
||||
This package contains all the Samba documentation as it is not part of
|
||||
@ -211,7 +216,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -223,8 +228,9 @@ Group: Productivity/Networking/Samba
|
||||
AutoReqProv: on
|
||||
Provides: samba3-krb-printing = %{version}-%{release}
|
||||
Obsoletes: samba3-krb-printing
|
||||
PreReq: coreutils
|
||||
%if 0%{?suse_version} > 1000
|
||||
PreReq: /sbin/conf.d/SuSEconfig.permissions /bin/ln
|
||||
PreReq: /sbin/conf.d/SuSEconfig.permissions
|
||||
%endif
|
||||
Requires: samba-client >= %{version}
|
||||
|
||||
@ -237,7 +243,7 @@ Authors:
|
||||
--------
|
||||
Jeremy Allison <jra at samba dot org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%if %{make_utils}
|
||||
@ -272,7 +278,7 @@ Requires: samba-client >= %{version}
|
||||
%if 0%{?suse_version} > 1030
|
||||
Recommends: cron logrotate
|
||||
%endif
|
||||
PreReq: /bin/ln /sbin/ldconfig /sbin/insserv /bin/rm
|
||||
PreReq: coreutils /sbin/ldconfig %{?insserv_prereq}
|
||||
|
||||
%description winbind
|
||||
This is the winbind-daemon and the wbinfo-tool.
|
||||
@ -283,7 +289,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1031
|
||||
@ -318,7 +324,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%else
|
||||
@ -332,7 +338,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -366,7 +372,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libnetapi0
|
||||
@ -385,7 +391,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libnetapi-devel
|
||||
@ -405,7 +411,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1031
|
||||
@ -432,7 +438,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%else
|
||||
@ -446,7 +452,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -477,7 +483,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%if %{make_ldapsmb}
|
||||
@ -498,7 +504,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libtalloc-devel
|
||||
@ -518,7 +524,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libtdb1
|
||||
@ -537,7 +543,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libtdb-devel
|
||||
@ -557,7 +563,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libwbclient0
|
||||
@ -576,7 +582,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n libwbclient-devel
|
||||
@ -596,7 +602,7 @@ Authors:
|
||||
--------
|
||||
The Samba Team <samba@samba.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%package -n ldapsmb
|
||||
@ -605,7 +611,7 @@ Summary: Tool to administer Samba's LDAP backend
|
||||
Group: Productivity/Networking/Samba
|
||||
AutoReqProv: on
|
||||
Version: 1.34b
|
||||
Release: 240
|
||||
Release: 241
|
||||
Requires: perl-ldap
|
||||
|
||||
%description -n ldapsmb
|
||||
@ -618,7 +624,7 @@ Authors:
|
||||
--------
|
||||
Guenther Deschner <guenther at deschner dot de>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -640,7 +646,7 @@ Authors:
|
||||
--------
|
||||
Steve French <sfrench at Samba dot org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -670,7 +676,7 @@ Authors:
|
||||
--------
|
||||
Rainer Link <rainer@openantivirus.org>
|
||||
|
||||
Source Timestamp: 1906
|
||||
Source Timestamp: 1931
|
||||
Branch : 3.2.4
|
||||
|
||||
%endif
|
||||
@ -855,7 +861,7 @@ popd
|
||||
mkdir -p \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/{pam.d,xinetd.d,logrotate.d} \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/openldap/schema \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/network/{if-{down,up}.d,scripts} \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/{if-{down,up}.d,scripts} \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/permissions.d \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/security \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/slp.reg.d \
|
||||
@ -947,11 +953,11 @@ cp -p tools/smbfs ${RPM_BUILD_ROOT}/%{_sysconfdir}/NetworkManager/dispatcher.d/s
|
||||
cp -p config/dhcp.conf ${RPM_BUILD_ROOT}/%{_var}/adm/fillup-templates/samba-client-dhcp.conf
|
||||
cp -p config/sysconfig.dhcp-samba-client ${RPM_BUILD_ROOT}/%{_var}/adm/fillup-templates/
|
||||
for script in dhcpcd-hook-samba samba-winbindd; do
|
||||
cp -p "tools/${script}" "${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/network/scripts/"
|
||||
cp -p "tools/${script}" "${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/"
|
||||
done
|
||||
# Create ghosts for the symlinks
|
||||
for script in 21-dhcpcd-hook-samba 55-samba-winbindd; do
|
||||
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/network/if-{down,up}.d/${script}
|
||||
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${script}
|
||||
done
|
||||
# Add logrotate settings for nmbd and smbd only on systems newer than 8.1.
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 811
|
||||
@ -978,7 +984,7 @@ cp -p docu/README.vendor ${RPM_BUILD_ROOT}/%{DOCDIR}/README.%{VENDOR}
|
||||
cp -p docu/Samba.desktop ${RPM_BUILD_ROOT}/%{_datadir}/susehelp/meta/Administration/System
|
||||
cp -p docu/manpages.html ../docs/htmldocs
|
||||
popd
|
||||
cp -p packaging/Debian/debian-unstable/samba-common.dhcp ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba-functions
|
||||
cp -p packaging/Debian/debian-unstable/samba-common.dhcp ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba-functions
|
||||
# libnss_wins.so
|
||||
install -m 0755 source/nsswitch/libnss_wins.so ${RPM_BUILD_ROOT}/%{_lib}/libnss_wins.so.2
|
||||
# winbind stuff
|
||||
@ -1118,42 +1124,38 @@ ln -fs /usr/sbin/umount.cifs ${RPM_BUILD_ROOT}/sbin/
|
||||
/usr/sbin/groupadd -g 71 -o -r ntadmin 2>/dev/null || :
|
||||
|
||||
%preun
|
||||
%stop_on_removal smb nmb
|
||||
%{?stop_on_removal smb nmb}
|
||||
|
||||
%postun
|
||||
%restart_on_update nmb smb
|
||||
%insserv_cleanup
|
||||
%{?restart_on_update nmb smb}
|
||||
%{?insserv_cleanup}
|
||||
|
||||
%preun client
|
||||
%stop_on_removal smbfs
|
||||
%{?stop_on_removal smbfs}
|
||||
|
||||
%post client
|
||||
/sbin/ldconfig
|
||||
if [ ${1:-0} -eq 1 ]; then
|
||||
# Only insserv smbfs if we're not in update mode.
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1001
|
||||
%{fillup_and_insserv -fy smbfs} || :
|
||||
%else
|
||||
%fillup_and_insserv -fy smbfs
|
||||
%endif
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/network/if-down.d/21-dhcpcd-hook-samba
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/network/if-up.d/21-dhcpcd-hook-samba
|
||||
%{?fillup_and_insserv -fy smbfs}
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-down.d/21-dhcpcd-hook-samba
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-up.d/21-dhcpcd-hook-samba
|
||||
else
|
||||
for if_case in if-down.d if-up.d; do
|
||||
test -h %{_sysconfdir}/sysconfig/network/${if_case}/dhcpcd-hook-samba || \
|
||||
test -h %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/dhcpcd-hook-samba || \
|
||||
continue
|
||||
rm -f %{_sysconfdir}/sysconfig/network/${if_case}/dhcpcd-hook-samba
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/network/${if_case}/21-dhcpcd-hook-samba
|
||||
rm -f %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/dhcpcd-hook-samba
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/21-dhcpcd-hook-samba
|
||||
done
|
||||
fi
|
||||
if ! test -e %{_bindir}/get_printing_ticket; then
|
||||
ln -fs %{_bindir}/smbspool %{_libdir}/cups/backend/smb
|
||||
fi
|
||||
%fillup_only -nsd dhcp samba-client network
|
||||
%{?fillup_only -nsd dhcp samba-client network}
|
||||
|
||||
%postun client
|
||||
/sbin/ldconfig
|
||||
%insserv_cleanup
|
||||
%{?insserv_cleanup}
|
||||
|
||||
%post -n libnetapi0
|
||||
/sbin/ldconfig
|
||||
@ -1212,24 +1214,24 @@ fi
|
||||
%post winbind
|
||||
/sbin/ldconfig
|
||||
if test ${1:-0} -eq 1; then
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/samba-winbindd %{_sysconfdir}/sysconfig/network/if-down.d/55-samba-winbindd
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/samba-winbindd %{_sysconfdir}/sysconfig/network/if-up.d/55-samba-winbindd
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/samba-winbindd %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-down.d/55-samba-winbindd
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/samba-winbindd %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-up.d/55-samba-winbindd
|
||||
else
|
||||
for if_case in if-down.d if-up.d; do
|
||||
test -h %{_sysconfdir}/sysconfig/network/${if_case}/samba-winbindd || \
|
||||
test -h %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/samba-winbindd || \
|
||||
continue
|
||||
rm -f %{_sysconfdir}/sysconfig/network/${if_case}/samba-winbindd
|
||||
ln -fs %{_sysconfdir}/sysconfig/network/scripts/samba-winbindd %{_sysconfdir}/sysconfig/network/${if_case}/55-samba-winbindd
|
||||
rm -f %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/samba-winbindd
|
||||
ln -fs %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/samba-winbindd %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/${if_case}/55-samba-winbindd
|
||||
done
|
||||
fi
|
||||
|
||||
%preun winbind
|
||||
%stop_on_removal winbind
|
||||
%{?stop_on_removal winbind}
|
||||
|
||||
%postun winbind
|
||||
/sbin/ldconfig
|
||||
%restart_on_update nscd winbind
|
||||
%insserv_cleanup
|
||||
%{?restart_on_update nscd winbind}
|
||||
%{?insserv_cleanup}
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 920
|
||||
|
||||
%post -n cifs-mount
|
||||
@ -1359,13 +1361,13 @@ exit 0
|
||||
%dir %{_sysconfdir}/openldap
|
||||
%dir %{_sysconfdir}/openldap/schema
|
||||
%attr(0444,root,root) %config %{_sysconfdir}/openldap/schema/samba3.schema
|
||||
%ghost %{_sysconfdir}/sysconfig/network/if-down.d/21-dhcpcd-hook-samba
|
||||
%ghost %{_sysconfdir}/sysconfig/network/if-up.d/21-dhcpcd-hook-samba
|
||||
%ghost %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-down.d/21-dhcpcd-hook-samba
|
||||
%ghost %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-up.d/21-dhcpcd-hook-samba
|
||||
%dir %{_sysconfdir}/NetworkManager
|
||||
%dir %{_sysconfdir}/NetworkManager/dispatcher.d
|
||||
%{_sysconfdir}/NetworkManager/dispatcher.d/smbfs
|
||||
%{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba
|
||||
%{_sysconfdir}/sysconfig/network/scripts/dhcpcd-hook-samba-functions
|
||||
%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba
|
||||
%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/dhcpcd-hook-samba-functions
|
||||
%{_bindir}/eventlogadm
|
||||
%{_bindir}/findsmb
|
||||
%{_bindir}/ldbadd
|
||||
@ -1468,9 +1470,9 @@ exit 0
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/security/pam_winbind.conf
|
||||
%attr(0754,root,root) %config %{INITDIR}/winbind
|
||||
%ghost %{_sysconfdir}/sysconfig/network/if-down.d/55-samba-winbindd
|
||||
%ghost %{_sysconfdir}/sysconfig/network/if-up.d/55-samba-winbindd
|
||||
%{_sysconfdir}/sysconfig/network/scripts/samba-winbindd
|
||||
%ghost %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-down.d/55-samba-winbindd
|
||||
%ghost %{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-up.d/55-samba-winbindd
|
||||
%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/scripts/samba-winbindd
|
||||
%doc %{_mandir}/man1/ntlm_auth.1.*
|
||||
%doc %{_mandir}/man1/wbinfo.1.*
|
||||
%doc %{_mandir}/man8/winbindd.8.*
|
||||
@ -1632,7 +1634,7 @@ exit 0
|
||||
/sbin/umount.cifs
|
||||
%doc %{_mandir}/man8/mount.cifs.8.*
|
||||
%doc %{_mandir}/man8/umount.cifs.8.*
|
||||
%if 0%{?suse_version} > 1020
|
||||
%if %{make_cifsupcall}
|
||||
%{_sbindir}/cifs.upcall
|
||||
%doc %{_mandir}/man8/cifs.upcall.8.*
|
||||
%endif
|
||||
@ -1645,6 +1647,27 @@ exit 0
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Oct 03 2008 lmuelle@suse.de
|
||||
- Only call the stop_on_removal, restart_on_update, or insserv_cleanup macro
|
||||
if available.
|
||||
* Fri Oct 03 2008 lmuelle@suse.de
|
||||
- Only call the fillup_and_insserv or fillup_only macro if available.
|
||||
* Fri Oct 03 2008 lmuelle@suse.de
|
||||
- Use package names instead of macros for cp, mkdir, mv, rm, and grep or
|
||||
instead of the full path to the binary for ln, find and xargs.
|
||||
* Fri Oct 03 2008 lmuelle@suse.de
|
||||
- Introduce NET_CFGDIR to fit the needs for a differing location of the
|
||||
network configuration per vendor.
|
||||
* Fri Oct 03 2008 lmuelle@suse.de
|
||||
- Use path macros for cp, mkdir, mv, rm, and grep.
|
||||
* Thu Oct 02 2008 lmuelle@suse.de
|
||||
- Only use SUSE rpm macros and SuSEconfig.permissions if available.
|
||||
* Mon Sep 29 2008 lmuelle@suse.de
|
||||
- Adopt samba-vscan to build after the change to the bool type define.
|
||||
* Thu Sep 25 2008 tlaxmeshwar@novell.com
|
||||
- Fix winbindd crash in an unusual failure mode; (bnc#416598).
|
||||
* Mon Sep 22 2008 lmuelle@suse.de
|
||||
- Build cifs.upcall for CentOS 5, Fedora 8 and RHEL 5 and newer too.
|
||||
* Sat Sep 20 2008 lmuelle@suse.de
|
||||
- Call mkinitrd_setup during %%post and %%postun for post-9.2 systems only.
|
||||
* Sat Sep 20 2008 lmuelle@suse.de
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:810e14a7dd343e854f2401e36151651254df3302db6c4ff400dbe7866777f013
|
||||
size 22556
|
||||
oid sha256:94f8367c3e21f8cf50d8cff18596c0161b43f326405ee5c4d351dba700624bfe
|
||||
size 22554
|
||||
|
Loading…
Reference in New Issue
Block a user