]> git.pld-linux.org Git - packages/pam.git/commitdiff
- restart crond in pam trigger, would match also cronds which are not upgraded (vixie... auto/th/pam-1_1_3-2 auto/ti/pam-1_1_3-2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Dec 2010 20:58:24 +0000 (20:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pam.spec -> 1.308

pam.spec

index c825e301e56ac31543b0cf4097c2dfc0a2ca67e4..a1e87d9b4a3f202820dbe1ef54704c18b11b76de 100644 (file)
--- a/pam.spec
+++ b/pam.spec
@@ -4,11 +4,8 @@
 %bcond_with    prelude         # build with Prelude IDS support
 %bcond_without selinux         # build without SELinux support
 %bcond_without audit           # build with Linux Auditing library support
-#
+
 %define                pam_pld_version 1.1.2-1
-#
-%define                _sbindir        /sbin
-#
 Summary:       Pluggable Authentication Modules: modular, incremental authentication
 Summary(de.UTF-8):     Einsteckbare Authentifizierungsmodule: modulare, inkrementäre Authentifizierung
 Summary(es.UTF-8):     Módulos de autentificación plugables (PAM)
@@ -20,7 +17,7 @@ Summary(tr.UTF-8):    Modüler, artımsal doğrulama birimleri
 Summary(uk.UTF-8):     Інструмент, що забезпечує аутентифікацію для програм
 Name:          pam
 Version:       1.1.3
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL or BSD
 Group:         Base
@@ -79,6 +76,8 @@ Conflicts:    dev < 3.4-4
 Conflicts:     udev < 1:138-5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sbindir        /sbin
+
 %description
 PAM (Pluggable Authentication Modules) is a powerful, flexible,
 extensible authentication system which allows the system administrator
@@ -372,6 +371,13 @@ if [ -d /var/lock/console -a -d /var/run/console ]; then
        rm -rf /var/lock/console
 fi
 
+%triggerin -- cronie,vixie-cron,hc-cron,fcron,mcron
+# restart crond if pam is upgraded
+# (crond is linked with old libpam but tries to open modules linked with new libpam)
+if [ "$1" != 1 ]; then
+       %service -q crond restart
+fi
+
 %post -p <lua>
 fh, error = io.open("/var/log/tallylog")
 if fh ~= nil then
This page took 0.20117 seconds and 4 git commands to generate.