From 94f1c5e9a5914497d2fb34fdb0de1e4a919245ab Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: May 28 2008 16:53:14 +0000 Subject: - update to 0.29.1 to pull in fix for #448741: config files aren't set up right for pam_oddjob_mkhomedir's expectations --- diff --git a/.cvsignore b/.cvsignore index b2b3b67..19e7058 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -oddjob-0.27-1.tar.gz -oddjob-0.29-1.tar.gz +oddjob-0.29.1-1.tar.gz diff --git a/oddjob.spec b/oddjob.spec index a3f3d7d..9d5b40f 100644 --- a/oddjob.spec +++ b/oddjob.spec @@ -1,8 +1,9 @@ %define build_sample 0 +%define dbus_send /bin/dbus-send Name: oddjob -Version: 0.29 -Release: 2%{?dist} +Version: 0.29.1 +Release: 1%{?dist} Source: http://people.redhat.com/nalin/oddjob/oddjob-%{version}-1.tar.gz Summary: A D-BUS service which runs odd jobs on behalf of client applications License: BSD @@ -13,6 +14,7 @@ BuildRequires: pam-devel, python-devel, pkgconfig BuildRequires: cyrus-sasl-devel, krb5-devel, openldap-devel BuildRequires: docbook-dtds, xmlto Requires(post): /sbin/service +Requires(postun): /sbin/service Requires(post): /sbin/chkconfig Requires(pre): /sbin/chkconfig URL: http://people.redhat.com/nalin/oddjob/ @@ -25,6 +27,7 @@ connect to it and issue requests using the system-wide message bus. Group: System Environment/Daemons Summary: An oddjob helper which creates and populates home directories Requires: %{name} = %{version}-%{release} +Requires(post): %{dbus_send} %description mkhomedir This package contains the oddjob helper which can be used by the @@ -165,6 +168,12 @@ install -m755 sample/oddjob-sample.sh sample-install-root/sample/%{_libdir}/% %post /sbin/chkconfig --add oddjobd +%postun +if [ $1 -gt 0 ] ; then + /sbin/service oddjobd condrestart 2>&1 > /dev/null || : +fi +exit 0 + %preun if [ $1 -eq 0 ] ; then /sbin/service oddjobd stop > /dev/null 2>&1 @@ -174,7 +183,19 @@ fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig +%post mkhomedir +if [ -f /var/lock/subsys/oddjobd ] ; then + %{dbus_send} --system --dest=com.redhat.oddjob /com/redhat/oddjob com.redhat.oddjob.reload +fi +exit 0 + %changelog +* Wed May 28 2008 Nalin Dahyabhai 0.29.1-1 +- when we install the mkhomedir subpackage, if there's a running oddjobd, ask + it to reload its configuration +- fix missing bits from the namespace changes in configuration files +- restart the service in %%postun + * Tue Feb 19 2008 Fedora Release Engineering - 0.29-2 - Autorebuild for GCC 4.3 diff --git a/sources b/sources index 285cc9a..80094b4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -51aac71afb06315afd6d6434cf5aa3cc oddjob-0.29-1.tar.gz +064377e83a3684a5feb9468a93e8d912 oddjob-0.29.1-1.tar.gz