summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-03-04 12:15:03 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-03-04 12:15:03 -0500
commitef45e59e0623ed6d63474372229c2ca82f007296 (patch)
tree0477c23cd96af9fbe2507e3e15679ffaf7ba32d6
parent0315a64e2ea2c377e71e88224c051780b5aba6f9 (diff)
parentcf6221ea3590120ab68f40a6d50a2456bae5e3cf (diff)
downloadfunc-ef45e59e0623ed6d63474372229c2ca82f007296.tar.gz
func-ef45e59e0623ed6d63474372229c2ca82f007296.tar.xz
func-ef45e59e0623ed6d63474372229c2ca82f007296.zip
Merge branch 'my-devel'
-rw-r--r--func.spec9
-rw-r--r--setup.py4
2 files changed, 12 insertions, 1 deletions
diff --git a/func.spec b/func.spec
index c43da30..cff9bb0 100644
--- a/func.spec
+++ b/func.spec
@@ -54,6 +54,7 @@ rm -fr $RPM_BUILD_ROOT
%{_bindir}/func
%{_bindir}/func-inventory
%{_bindir}/func-create-module
+%{_bindir}/update-func
/etc/init.d/funcd
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/minion-acl.d/
@@ -102,6 +103,10 @@ else
ln -sf /etc/init.d/funcd /etc/rc.d/rc${i}.d/S99funcd
done
fi
+
+# upgrade old installs if needed
+/usr/bin/update-func
+
exit 0
%preun
@@ -117,7 +122,11 @@ if [ "$1" = 0 ] ; then
fi
+
%changelog
+* Mon Mar 03 2008 Adrian Likins <alikins@redhat.com> - 0.18-1
+- run update-func from the %post
+
* Wed Feb 13 2008 Adrian Likins <alikins@redhat.com> - 0.18-1
- split off certmaster
diff --git a/setup.py b/setup.py
index acba0f2..a36f348 100644
--- a/setup.py
+++ b/setup.py
@@ -30,9 +30,11 @@ if __name__ == "__main__":
url = "https://hosted.fedoraproject.org/projects/func/",
license = "GPL",
scripts = [
- "scripts/funcd", "scripts/func",
+ "scripts/funcd",
+ "scripts/func",
"scripts/func-inventory",
"scripts/func-create-module",
+ "scripts/update-func",
],
# package_data = { '' : ['*.*'] },
package_dir = {"%s" % NAME: "%s" % NAME