[packages/samba4] - added triggers to readd initscripts removed by old uninstalled packages - rel 2

baggins baggins at pld-linux.org
Mon Jul 22 19:27:31 CEST 2013


commit 7a0a86a00bd4c732cf30fdffee0986f498d165c8
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 d269466..16d97ef 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
@@ -922,6 +922,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"
@@ -937,6 +942,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
 
@@ -956,6 +966,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/samba4.git/commitdiff/7a0a86a00bd4c732cf30fdffee0986f498d165c8



More information about the pld-cvs-commit mailing list