Added logrotate to package.
Faiyaz Ahmed [Wed, 2 Apr 2008 14:33:48 +0000 (14:33 +0000)]
codemux.logrotate [new file with mode: 0644]
codemux.spec

diff --git a/codemux.logrotate b/codemux.logrotate
new file mode 100644 (file)
index 0000000..18c64bc
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/codemux.log {
+    copytruncate
+    compress
+    daily
+    notifempty
+    rotate 5
+    missingok
+}
index 2a55c61..f889fcb 100644 (file)
@@ -37,6 +37,7 @@ make clean
 make RPM_VERSION=%{version}.%{taglevel}
 
 %install
+install -D -m 644 codemux.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/codemux
 rm -rf $RPM_BUILD_ROOT
 
 make INSTALL_ROOT=$RPM_BUILD_ROOT install