Accepting request 876691 from home:scabrero:branches:network:samba:STABLE
- Spec file fixes around systemd and requires; (bsc#1182830); - Align systemd service unit files with upstream provided ones. OBS-URL: https://build.opensuse.org/request/show/876691 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=642
This commit is contained in:
parent
ff3019cd90
commit
eb9272c94c
2
_service
2
_service
@ -4,7 +4,7 @@
|
|||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="revision">factory-4-13-stable</param>
|
<param name="revision">factory-4-13-stable</param>
|
||||||
<param name="versionformat">@PARENT_TAG@+git.@TAG_OFFSET@.%h</param>
|
<param name="versionformat">@PARENT_TAG@+git.@TAG_OFFSET@.%h</param>
|
||||||
<param name="versionrewrite-pattern">samba(.*)</param>
|
<param name="versionrewrite-pattern">samba-(.*)</param>
|
||||||
<param name="versionrewrite-replacement">\1</param>
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
<param name="filename">samba</param>
|
<param name="filename">samba</param>
|
||||||
<param name="exclude">.git</param>
|
<param name="exclude">.git</param>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c5545289dda61f26b15219d3324f4625aa8d89de4ecd1526fc2e4d996aca01bc
|
|
||||||
size 24915485
|
|
3
samba-4.13.4+git.199.be6e11f5ab2.tar.bz2
Normal file
3
samba-4.13.4+git.199.be6e11f5ab2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:43a80c16bd2a94579245230ea3bef8dc561f1a31f33eb80ab0e5c2c6c6260394
|
||||||
|
size 24918402
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 1 12:09:56 UTC 2021 - Samuel Cabrero <scabrero@suse.de>
|
||||||
|
|
||||||
|
- Spec file fixes around systemd and requires; (bsc#1182830);
|
||||||
|
- Align systemd service unit files with upstream provided ones.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 26 15:15:08 UTC 2021 - Samuel Cabrero <scabrero@suse.de>
|
Tue Jan 26 15:15:08 UTC 2021 - Samuel Cabrero <scabrero@suse.de>
|
||||||
|
|
||||||
|
24
samba.spec
24
samba.spec
@ -170,7 +170,7 @@ BuildRequires: liburing-devel
|
|||||||
%else
|
%else
|
||||||
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
||||||
%endif
|
%endif
|
||||||
Version: 4.13.4+git.187.5ad4708741a
|
Version: 4.13.4+git.199.be6e11f5ab2
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://www.samba.org/
|
Url: https://www.samba.org/
|
||||||
Obsoletes: samba-32bit < %{version}
|
Obsoletes: samba-32bit < %{version}
|
||||||
@ -187,7 +187,7 @@ Requires(pre): /usr/bin/getent
|
|||||||
Requires(pre): /usr/sbin/groupadd
|
Requires(pre): /usr/sbin/groupadd
|
||||||
Requires: system-user-nobody
|
Requires: system-user-nobody
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires: grep
|
Requires: /usr/bin/grep
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
Requires: %{fillup_prereq}
|
Requires: %{fillup_prereq}
|
||||||
%endif
|
%endif
|
||||||
@ -257,7 +257,6 @@ Requires: /sbin/chkconfig
|
|||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
Requires(postun): /sbin/ldconfig
|
Requires(postun): /sbin/ldconfig
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
%{?systemd_requires}
|
|
||||||
Requires: cifs-utils
|
Requires: cifs-utils
|
||||||
|
|
||||||
%description client
|
%description client
|
||||||
@ -397,7 +396,7 @@ Requires(pre): %{insserv_prereq}
|
|||||||
Requires(pre): coreutils
|
Requires(pre): coreutils
|
||||||
Requires(pre): /bin/mktemp
|
Requires(pre): /bin/mktemp
|
||||||
Requires(pre): /usr/bin/killall
|
Requires(pre): /usr/bin/killall
|
||||||
Requires(pre): sed
|
Requires(pre): /usr/bin/sed
|
||||||
|
|
||||||
%description -n ctdb
|
%description -n ctdb
|
||||||
ctdb is the clustered database used by Samba
|
ctdb is the clustered database used by Samba
|
||||||
@ -1027,6 +1026,8 @@ CONFIGURE_OPTIONS="\
|
|||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
--enable-avahi \
|
--enable-avahi \
|
||||||
--with-systemd \
|
--with-systemd \
|
||||||
|
--with-systemddir=%{_unitdir} \
|
||||||
|
--systemd-install-services \
|
||||||
%endif
|
%endif
|
||||||
--with-shared-modules=%{auth_modules},%{vfs_modules},%{pdb_modules},%{idmap_modules} \
|
--with-shared-modules=%{auth_modules},%{vfs_modules},%{pdb_modules},%{idmap_modules} \
|
||||||
%if %with_mitkrb5
|
%if %with_mitkrb5
|
||||||
@ -1174,14 +1175,15 @@ startScripts="smb nmb winbind"
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
for srv_name in nmb smb winbind; do
|
for srv_name in nmb smb winbind; do
|
||||||
install -m 0644 -p systemd/${srv_name}.service %{buildroot}/%{_unitdir}
|
|
||||||
ln -s service %{buildroot}/%{_sbindir}/rc${srv_name}
|
ln -s service %{buildroot}/%{_sbindir}/rc${srv_name}
|
||||||
done
|
done
|
||||||
%if %{with_dc}
|
%if %{with_dc}
|
||||||
install -m 0644 -p systemd/samba-ad-dc.service %{buildroot}/%{_unitdir}
|
|
||||||
ln -s service %{buildroot}/%{_sbindir}/rcsamba-ad-dc
|
ln -s service %{buildroot}/%{_sbindir}/rcsamba-ad-dc
|
||||||
%endif
|
%endif
|
||||||
install -m 0644 systemd/sysconfig.* %{buildroot}%{_fillupdir}
|
rm %{buildroot}/%{_sysconfdir}/sysconfig/samba
|
||||||
|
install -m 0644 systemd/sysconfig.samba %{buildroot}%{_fillupdir}
|
||||||
|
install -m 0644 systemd/sysconfig.samba-winbind %{buildroot}%{_fillupdir}
|
||||||
|
install -m 0644 systemd/sysconfig.samba-ad-dc %{buildroot}%{_fillupdir}
|
||||||
install -m 0644 -p ../systemd/samba.conf.tmp %{buildroot}/%{_tmpfilesdir}/samba.conf
|
install -m 0644 -p ../systemd/samba.conf.tmp %{buildroot}/%{_tmpfilesdir}/samba.conf
|
||||||
%else
|
%else
|
||||||
for script in ${startScripts}; do
|
for script in ${startScripts}; do
|
||||||
@ -1387,7 +1389,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%service_add_post nmb.service smb.service
|
%service_add_post nmb.service smb.service
|
||||||
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf
|
%tmpfiles_create samba.conf
|
||||||
%fillup_only
|
%fillup_only
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -1512,6 +1514,7 @@ fi
|
|||||||
%post ad-dc
|
%post ad-dc
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%service_add_post samba-ad-dc.service
|
%service_add_post samba-ad-dc.service
|
||||||
|
%{fillup_only -ans samba ad-dc}
|
||||||
|
|
||||||
%postun ad-dc
|
%postun ad-dc
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -1547,7 +1550,7 @@ else
|
|||||||
fi
|
fi
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
%service_add_post winbind.service
|
%service_add_post winbind.service
|
||||||
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf
|
%tmpfiles_create samba.conf
|
||||||
%{fillup_only -ans samba winbind}
|
%{fillup_only -ans samba winbind}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -1617,7 +1620,7 @@ exit 0
|
|||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
%{fillup_only -n ctdb}
|
%{fillup_only -n ctdb}
|
||||||
%service_add_post ctdb.service
|
%service_add_post ctdb.service
|
||||||
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/ctdb.conf || :
|
%tmpfiles_create ctdb.conf
|
||||||
%else
|
%else
|
||||||
%{fillup_and_insserv -n ctdb}
|
%{fillup_and_insserv -n ctdb}
|
||||||
%endif
|
%endif
|
||||||
@ -2424,6 +2427,7 @@ exit 0
|
|||||||
|
|
||||||
%if %{with_dc}
|
%if %{with_dc}
|
||||||
%files ad-dc
|
%files ad-dc
|
||||||
|
%{_fillupdir}/sysconfig.samba-ad-dc
|
||||||
%{_unitdir}/samba-ad-dc.service
|
%{_unitdir}/samba-ad-dc.service
|
||||||
%{_bindir}/samba-tool
|
%{_bindir}/samba-tool
|
||||||
%{_sbindir}/samba
|
%{_sbindir}/samba
|
||||||
|
Loading…
Reference in New Issue
Block a user