Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 616403 Details for
Bug 834603
Correct samba spec file for DC-enabled builds
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Spec patch versus latest (140.rc1) package release
samba4-140.patch (text/plain), 5.67 KB, created by
Giuseppe Ragusa
on 2012-09-24 08:02:03 UTC
(
hide
)
Description:
Spec patch versus latest (140.rc1) package release
Filename:
MIME Type:
Creator:
Giuseppe Ragusa
Created:
2012-09-24 08:02:03 UTC
Size:
5.67 KB
patch
obsolete
>--- samba4.spec.orig 2012-09-24 09:55:02.566451356 +0200 >+++ samba4.spec 2012-09-24 09:54:44.813576911 +0200 >@@ -1,4 +1,4 @@ >-%define main_release 140 >+%define main_release 140.1 > > %define samba_version 4.0.0 > %define talloc_version 2.0.7 >@@ -22,9 +22,17 @@ > > %global with_usrmove 0 > >+%global with_runmove 0 >+ >+%global with_tmpfiles 0 >+ > %global with_mitkrb5 1 > %global with_dc 0 > >+%if %with_dc >+%global with_mitkrb5 0 >+%endif >+ > %if 0%{?rhel} == 6 > %global with_talloc 0 > %global with_tevent 0 >@@ -38,6 +46,11 @@ > %global with_ldb 0 > %endif > >+%if 0%{?fedora} > 14 || 0%{?rhel} > 6 >+%global with_tmpfiles 1 >+%global with_runmove 1 >+%endif >+ > %if 0%{?fedora} > 16 || 0%{?rhel} > 6 > %global with_usrmove 1 > %endif >@@ -48,6 +61,12 @@ > %global smb_lib %{_lib} > %endif > >+%if %with_runmove >+%global real_run /run >+%else >+%global real_run /var/run >+%endif >+ > %{!?python_libdir: %define python_libdir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,1)")} > %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} > >@@ -88,6 +107,7 @@ > Source100: nmb.init > Source101: smb.init > Source102: winbind.init >+Source103: samba.init > > Source200: README.dc > Source201: README.downgrade >@@ -447,8 +467,8 @@ > > %configure \ > --enable-fhs \ >- --with-piddir=/run \ >- --with-sockets-dir=/run/samba \ >+ --with-piddir=%{real_run} \ >+ --with-sockets-dir=%{real_run}/samba \ > --with-modulesdir=%{_libdir}/samba \ > --with-pammodulesdir=/%{smb_lib}/security \ > --with-lockdir=/var/lib/samba \ >@@ -532,8 +552,10 @@ > install -d -m 0755 %{buildroot}%{_sysconfdir}/xinetd.d > install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/swat > >+%if %with_tmpfiles > install -d -m 0755 %{buildroot}%{_sysconfdir}/tmpfiles.d/ > install -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/tmpfiles.d/samba.conf >+%endif > > install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig > install -m 0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/samba >@@ -548,7 +570,7 @@ > > %if 0%{?fedora} > 15 || 0%{?rhel} > 6 > install -d -m 0755 %{buildroot}%{_unitdir} >-for i in nmb smb winbind ; do >+for i in nmb smb winbind samba ; do > cat packaging/systemd/$i.service | sed -e 's@Type=forking@Type=forking\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' >tmp$i.service > install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service > done >@@ -556,9 +578,10 @@ > > %if 0%{?rhel} == 6 > install -d -m 0755 %{buildroot}%{_initrddir} >-install -m 0644 %{SOURCE100} %{buildroot}%{_initrddir}/nmb >-install -m 0644 %{SOURCE101} %{buildroot}%{_initrddir}/smb >-install -m 0644 %{SOURCE102} %{buildroot}%{_initrddir}/winbind >+install -m 0755 %{SOURCE100} %{buildroot}%{_initrddir}/nmb >+install -m 0755 %{SOURCE101} %{buildroot}%{_initrddir}/smb >+install -m 0755 %{SOURCE102} %{buildroot}%{_initrddir}/winbind >+install -m 0755 %{SOURCE103} %{buildroot}%{_initrddir}/samba > %endif > > # winbind krb5 locator >@@ -665,6 +688,61 @@ > %post dc-libs -p /sbin/ldconfig > > %postun dc-libs -p /sbin/ldconfig >+ >+%post dc >+%if 0%{?rhel} == 6 >+/sbin/chkconfig --add samba >+if [ "$1" -ge "1" ]; then >+ /sbin/service samba condrestart >/dev/null 2>&1 || : >+fi >+exit 0 >+%endif >+ >+%if 0%{?fedora} == 17 >+if [ $1 -eq 1 ] ; then >+ # Initial installation >+ /bin/systemctl daemon-reload >/dev/null 2>&1 || : >+fi >+%endif >+ >+%if 0%{?fedora} > 17 || 0%{?rhel} > 6 >+%systemd_post samba.service >+%endif >+ >+%preun dc >+%if 0%{?rhel} == 6 >+if [ $1 = 0 ] ; then >+ /sbin/service samba stop >/dev/null 2>&1 || : >+ /sbin/chkconfig --del samba >+fi >+exit 0 >+%endif >+ >+%if 0%{?fedora} == 17 >+if [ $1 -eq 0 ] ; then >+ # Package removal, not upgrade >+ /bin/systemctl --no-reload disable samba.service > /dev/null 2>&1 || : >+ /bin/systemctl stop samba.service > /dev/null 2>&1 || : >+fi >+%endif >+ >+%if 0%{?fedora} > 17 || 0%{?rhel} > 6 >+%systemd_preun samba.service >+%endif >+ >+%postun dc >+%if 0%{?fedora} == 17 >+/bin/systemctl daemon-reload >/dev/null 2>&1 || : >+if [ $1 -ge 1 ] ; then >+ # Package upgrade, not uninstall >+ /bin/systemctl try-restart samba.service >/dev/null 2>&1 || : >+fi >+%endif >+ >+%if 0%{?fedora} > 17 || 0%{?rhel} > 6 >+%systemd_postun_with_restart samba.service >+%endif >+ > %endif # with_dc > > %post test -p /sbin/ldconfig >@@ -942,7 +1020,9 @@ > %files common > %defattr(-,root,root) > #%{_libdir}/samba/charset ??? >+%if %with_tmpfiles > %{_sysconfdir}/tmpfiles.d/samba.conf >+%endif > %{_bindir}/net > %{_bindir}/pdbedit > %{_bindir}/profiles >@@ -951,8 +1031,13 @@ > %{_libdir}/libnetapi.so.* > %{_libdir}/samba/libprinting_migrate.so > %{_datadir}/samba/codepages >+%if %{with_runmove} > %ghost %dir /var/run/samba > %ghost %dir /var/run/winbindd >+%else >+%dir /var/run/samba >+%dir /var/run/winbindd >+%endif > %attr(700,root,root) %dir /var/lib/samba/private > %attr(755,root,root) %dir %{_sysconfdir}/samba > %config(noreplace) %{_sysconfdir}/samba/smb.conf >@@ -985,6 +1070,12 @@ > %{_libdir}/samba/libdsdb-module.so > > %if %with_dc >+%if 0%{?fedora} > 15 || 0%{?rhel} > 6 >+%{_unitdir}/samba.service >+%endif >+%if 0%{?rhel} == 6 >+%{_initrddir}/samba >+%endif > %{_bindir}/samba-tool > %{_sbindir}/samba > %{_sbindir}/samba_kcc >@@ -1401,6 +1492,13 @@ > %endif # with_libwbclient > > %changelog >+* Mon Sep 24 2012 Giuseppe Ragusa <giuseppe.ragusa@hotmail.com>- 2:4.0.0-140.1.rc1 >+- Make tmpfiles.d support conditional. >+- Fix runmove paths. >+- Fix permissions of SysVinit control scripts >+- Disable MIT Kerberos when enabling full DC functionalities. >+- Add initscript/unit and post/preun/postun for full DC functionalities. >+ > * Tue Sep 18 2012 - Andreas Schneider <asn@redhat.com> - 2:4.0.0-140.rc1 > - Fixed building the manpages. > - Fixed building passdb and smbldaphelper
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 834603
:
593770
|
593771
|
594194
|
595555
|
602237
|
602245
|
609612
|
609614
|
611674
|
613981
|
616403
|
620199
|
622289
|
945120
|
945127