X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster.spec;h=1b51c5b7f2591afe446f6f2e093768430baf3b2c;hp=ced884739ab296a5ba91a0b7600dc90333dcf627;hb=5cfab995e99a58c2fcb2369eeda0635dfb59b24e;hpb=cd13dd2c5c5e85461ac5b19aa48480d1ef80b94b diff --git a/certmaster.spec b/certmaster.spec index ced8847..1b51c5b 100644 --- a/certmaster.spec +++ b/certmaster.spec @@ -16,9 +16,8 @@ Summary: Remote certificate distribution framework Name: certmaster -Source1: version -Version: %(echo `awk '{ print $1 }' %{SOURCE1}`) -Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist} +Version: 0.28 +Release: 1%{?dist} Source0: %{name}-%{version}.tar.gz License: GPLv2+ Group: Applications/System @@ -63,6 +62,11 @@ certmaster is a easy mechanism for distributing SSL certificates %install test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT +ln -s %{_bindir}/certmaster-sync $RPM_BUILD_ROOT/var/lib/certmaster/triggers/sign/post/certmaster-sync +ln -s %{_bindir}/certmaster-sync $RPM_BUILD_ROOT/var/lib/certmaster/triggers/remove/post/certmaster-sync +touch $RPM_BUILD_ROOT/var/log/certmaster/certmaster.log +touch $RPM_BUILD_ROOT/var/log/certmaster/audit.log + %clean rm -fr $RPM_BUILD_ROOT @@ -75,6 +79,7 @@ rm -fr $RPM_BUILD_ROOT %{_bindir}/certmaster %{_bindir}/certmaster-request %{_bindir}/certmaster-ca +%{_bindir}/certmaster-sync /etc/init.d/certmaster %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/minion-acl.d/ @@ -82,10 +87,19 @@ rm -fr $RPM_BUILD_ROOT %config(noreplace) /etc/certmaster/minion.conf %config(noreplace) /etc/certmaster/certmaster.conf %config(noreplace) /etc/logrotate.d/certmaster_rotate +%config /etc/certmaster/version %dir %{python_sitelib}/certmaster %{python_sitelib}/certmaster/*.py* + %dir /var/log/certmaster -%dir /var/lib/certmaster +%attr(0600,root,root) %config(noreplace) %verify(not md5 size mtime) /var/log/certmaster/certmaster.log +%attr(0600,root,root) %config(noreplace) %verify(not md5 size mtime) /var/log/certmaster/audit.log + +%attr(600,root,root) %dir /var/lib/certmaster +%attr(600,root,root) %dir /var/lib/certmaster/certmaster +%attr(600,root,root) %dir /var/lib/certmaster/certmaster/certs +%attr(600,root,root) %dir /var/lib/certmaster/certmaster/csrs +%dir /var/lib/certmaster/peers %dir /var/lib/certmaster/triggers/sign/ %dir /var/lib/certmaster/triggers/sign/pre %dir /var/lib/certmaster/triggers/sign/post @@ -95,6 +109,8 @@ rm -fr $RPM_BUILD_ROOT %dir /var/lib/certmaster/triggers/remove/ %dir /var/lib/certmaster/triggers/remove/pre %dir /var/lib/certmaster/triggers/remove/post +/var/lib/certmaster/triggers/sign/post/certmaster-sync +/var/lib/certmaster/triggers/remove/post/certmaster-sync %doc AUTHORS README LICENSE %{_mandir}/man1/*.1.gz @@ -116,6 +132,9 @@ else done fi exit 0 +# fix perms on log files +chmod 600 /var/log/certmaster/certmaster.log +chmod 600 /var/log/certmaster/audit.log %preun if [ "$1" = 0 ] ; then @@ -131,13 +150,27 @@ fi %changelog +* Wed Aug 25 2010 Seth Vidal - 0.27-1 +- 0.27 + +* Thu Jun 11 2009 Adrian Likins - 0.25-1 +- add /etc/certmaster/func + +* Tue May 26 2009 Adrian Likins - 0.25-1 +- add /var/lib/certmaster/certmaster* to spec and set perms +- add /var/log/certmaster/certmaster.log,audit.log to spec + and set perms + +* Wed Feb 18 2009 Adrian Likins - 0.24.5 +- remove version file + * Mon Jan 19 2009 Adrian Likins - 0.24.4 - make inclusion of egginfo dependant on having python >= 2.5 - remove need for patch on rhel3+python2.4 cases (distutils should do all the /usr/bin/python renaming now) - minor reformatting changes -* Tue Jan 06 2009 Greg Swift - 0.24-3 +* Tue Jan 06 2009 Greg Swift - 0.24-3x1 - Fixed spec because it was only building in rhel3 * Wed Dec 31 2008 Greg Swift - 0.24-2