[packages/samba/DEVEL: 54/111] - added triggers to readd initscripts removed by old uninstalled packages - rel 2

baggins baggins at pld-linux.org
Wed Jan 15 19:42:57 CET 2014


commit 00fd225e4a7387c3983a9f47bb82280b69cf59d7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jul 22 19:26:56 2013 +0200

    - added triggers to readd initscripts removed by old uninstalled packages
    - rel 2

 samba4.spec | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/samba4.spec b/samba4.spec
index ee695bf..d0cf37e 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -18,7 +18,7 @@ Summary:	Active Directory server
 Summary(pl.UTF-8):	Serwer Active Directory
 Name:		samba4
 Version:	4.0.7
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL v3
 Group:		Networking/Daemons
@@ -923,6 +923,11 @@ fi
 %postun -n samba3-server
 %systemd_reload
 
+%triggerpostun -n samba3-server -- samba < 1:4.0.0-1
+/sbin/chkconfig --add smb
+%service smb restart "Samba3 daemons"
+%systemd_post smb.service nmb.service
+
 %post -n samba3-winbind
 /sbin/chkconfig --add winbind
 %service winbind restart "Winbind daemon"
@@ -938,6 +943,11 @@ fi
 %postun -n samba3-winbind
 %systemd_reload
 
+%triggerpostun -n samba3-winbind -- samba-winbind < 1:4.0.0-1
+/sbin/chkconfig --add winbind
+%service winbind restart "Winbind daemon"
+%systemd_post winbind.service
+
 %post -n samba3-swat
 %service -q rc-inetd reload
 
@@ -957,6 +967,11 @@ if [ "$1" = "0" ]; then
 	%service -q ldap restart
 fi
 
+%triggerpostun -n openldap-schema-samba3 -- openldap-schema-samba < 1:4.0.0-1
+# dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
+%openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
+%service -q ldap restart
+
 %files
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/env.d/LDB_MODULES_PATH
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/8f2607b83208e9672972be90df9adb474f035876



More information about the pld-cvs-commit mailing list