Author: jkupec Date: Wed Sep 24 18:10:37 2008 New Revision: 11144 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11144&view=rev Log: - logrotate for history Added: trunk/libzypp/zypp-history.lr Modified: trunk/libzypp/CMakeLists.txt trunk/libzypp/libzypp.spec.cmake Modified: trunk/libzypp/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/CMakeLists.txt?rev=11144&r1=11143&r2=11144&view=diff ============================================================================== --- trunk/libzypp/CMakeLists.txt (original) +++ trunk/libzypp/CMakeLists.txt Wed Sep 24 18:10:37 2008 @@ -146,6 +146,9 @@ MESSAGE(STATUS "systemCheck will be installed in ${SYSCONFDIR}/zypp") INSTALL( FILES ${CMAKE_SOURCE_DIR}/systemCheck DESTINATION ${SYSCONFDIR}/zypp ) +# logrotate config file +INSTALL( FILES ${CMAKE_SOURCE_DIR}/zypp-history.lr DESTINATION ${SYSCONFDIR}/logrotate.d ) + #################################################################### # SUBDIRECTORIES # #################################################################### Modified: trunk/libzypp/libzypp.spec.cmake URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/libzypp.spec.cmake?rev=11144&r1=11143&r2=11144&view=diff ============================================================================== --- trunk/libzypp/libzypp.spec.cmake (original) +++ trunk/libzypp/libzypp.spec.cmake Wed Sep 24 18:10:37 2008 @@ -72,6 +72,7 @@ Requires: libxml2-devel curl-devel openssl-devel rpm-devel glibc-devel zlib-devel Requires: bzip2 popt-devel dbus-1-devel glib2-devel hal-devel boost-devel libstdc++-devel Requires: cmake libsatsolver-devel +Recommends: logrotate Summary: Package, Patch, Pattern, and Product Management - developers files Group: System/Packages Provides: yast2-packagemanager-devel @@ -234,5 +235,10 @@ %{prefix}/include/zypp/* %{prefix}/share/cmake/Modules/* %{_libdir}/pkgconfig/libzypp.pc +%dir %{_var}/log/zypp +# declare ownership of the log file but prevent +# it from being erased by rpm -e +%ghost %config(noreplace) %{_var}/log/zypp/history +%{_sysconfdir}/logrotate.d/zypp-history.lr %changelog Added: trunk/libzypp/zypp-history.lr URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp-history.lr?rev=11144&view=auto ============================================================================== --- trunk/libzypp/zypp-history.lr (added) +++ trunk/libzypp/zypp-history.lr Wed Sep 24 18:10:37 2008 @@ -0,0 +1,11 @@ +/var/log/zypp/history { + compress + dateext + notifempty + missingok + nocreate + + maxage 1827 + rotate 99 + size 10M +} -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org