summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-24 17:35:52 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-08 13:42:47 -0500
commit5db6de6594e8e8c87efe0d2ad72f8af7f0ab1371 (patch)
tree4e449e1aa85d9205b239f48102df77a977655d06 /contrib
parent71cd2f7ce705561d8d8f3cb7f385a57bedad1ef1 (diff)
downloadsssd-5db6de6594e8e8c87efe0d2ad72f8af7f0ab1371.tar.gz
sssd-5db6de6594e8e8c87efe0d2ad72f8af7f0ab1371.tar.bz2
sssd-5db6de6594e8e8c87efe0d2ad72f8af7f0ab1371.zip
Package example logrotate script
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 95c6a11a..3acecd3c 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -230,6 +230,10 @@ install -m600 src/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.con
install -m400 src/config/etc/sssd.api.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.conf
install -m400 src/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.d/
+# Copy default logrotate file
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
+install -m644 src/examples/logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/sssd
+
# Remove .la files created by libtool
rm -f \
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
@@ -284,6 +288,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(750,root,root) %dir %{_var}/log/%{name}
%attr(700,root,root) %dir %{_sysconfdir}/sssd
%config(noreplace) %{_sysconfdir}/sssd/sssd.conf
+%config(noreplace) %{_sysconfdir}/logrotate.d/sssd
%config %{_sysconfdir}/sssd/sssd.api.conf
%attr(700,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d
%config %{_sysconfdir}/sssd/sssd.api.d/