[ecryptfs-utils] update pam config in post install phase

Michal Hlavinka mhlavink at fedoraproject.org
Wed Dec 7 11:57:25 UTC 2011


commit 6e2ee95c43c20e680e0d74066e08142f09d52690
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Wed Dec 7 12:57:20 2011 +0100

    update pam config in post install phase

 ecryptfs-utils.spec |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/ecryptfs-utils.spec b/ecryptfs-utils.spec
index 56f720a..f67bca6 100644
--- a/ecryptfs-utils.spec
+++ b/ecryptfs-utils.spec
@@ -5,7 +5,7 @@
 
 Name: ecryptfs-utils
 Version: 93
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: The eCryptfs mount helper and support libraries
 Group: System Environment/Base
 License: GPLv2+
@@ -165,9 +165,19 @@ fi
 %pre
 groupadd -r -f ecryptfs
 
-%post -p /sbin/ldconfig
+%post 
+/sbin/ldconfig
+if [ $1 -eq 1 ] ; then 
+    # Initial installation 
+    authconfig --enableecryptfs --update
+fi
 
-%postun -p /sbin/ldconfig
+%postun 
+/sbin/ldconfig
+if [ $1 -eq 0 ] ; then
+    # Package removal, not upgrade
+    authconfig --disableecryptfs --update
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -247,6 +257,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/ecryptfs-utils/_libecryptfs.so
 
 %changelog
+* Wed Dec 07 2011 Michal Hlavinka <mhlavink at redhat.com> - 93-2
+- update pam config in post install phase
+
 * Mon Oct 31 2011 Michal Hlavinka <mhlavink at redhat.com> - 93-1
 - updated to v. 93
 


More information about the scm-commits mailing list