Пакет logrotate: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | Name: logrotate Version: 3.20.1 Release: alt2 Summary: Rotates, compresses, and mails system logs License: GPL-2.0-or-later Group: File tools Url: https://github.com/logrotate/logrotate # https://github.com/logrotate/logrotate/releases/download/%version/logrotate-%version.tar.xz Source: logrotate-%version.tar Source1: logrotate.cron Patch1: 0001-ALT-Improve-messages-about-wrong-file-types.patch Patch2: 0002-ALT-Change-logrotate-defaults.patch Patch3: 0003-ALT-insecure-permissions.patch Patch4: 0004-ALT-Add-more-taboo-suffixes.patch Provides: /etc/logrotate.d %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %set_verify_elf_method strict %def_with selinux BuildRequires: libacl-devel libpopt-devel %{?_with_selinux:BuildPreReq: libselinux-devel} %description The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. logrotate allows for the automatic rotation, compression, removal and mailing of log files. logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job. %prep %setup %autopatch -p1 %build touch AUTHORS ChangeLog NEWS README %autoreconf %configure %{subst_with selinux} %make_build %install %makeinstall_std mkdir -p %buildroot{/etc/logrotate.d,%_unitdir} install -pD -m640 examples/logrotate.conf %buildroot/etc/logrotate.conf install -pD -m640 examples/btmp %buildroot/etc/logrotate.d/btmp install -pD -m640 examples/wtmp %buildroot/etc/logrotate.d/wtmp install -pD -m755 %_sourcedir/logrotate.cron %buildroot/etc/cron.daily/logrotate install -pD -m644 /dev/null %buildroot%_localstatedir/logrotate/status install -pD -m644 examples/logrotate.{service,timer} %buildroot%_unitdir/ %check make test %post if [ ! -s %_localstatedir/logrotate/status -a -s %_localstatedir/logrotate.status ]; then mv -f %_localstatedir/logrotate.status %_localstatedir/logrotate/status fi if sd_booted; then %post_service logrotate.timer fi %preun if sd_booted; then %preun_service logrotate.timer fi %files %_sbindir/* %config(noreplace) /etc/cron.daily/logrotate %config(noreplace) /etc/logrotate.conf %config(noreplace) /etc/logrotate.d/btmp %config(noreplace) /etc/logrotate.d/wtmp %_mandir/man?/* %attr(750,root,root) %dir /etc/logrotate.d %attr(700,root,root) %dir %_localstatedir/logrotate %attr(644,root,root) %verify(not size md5 mtime) %config(noreplace) %_localstatedir/logrotate/status %_unitdir/logrotate.* %doc ChangeLog.md %changelog * Wed May 24 2023 Alexey Shabalin <shaba@altlinux.org> 3.20.1-alt2 - Add systemd service and timer to package. * Sat May 28 2022 Alexey Gladkov <legion@altlinux.ru> 3.20.1-alt1 - New version (3.20.1). - Security fixes: - CVE-2022-1348: potential DoS from unprivileged users via the state file. * Sun Apr 26 2020 Alexey Gladkov <legion@altlinux.ru> 3.16.0-alt1.git35_6e8dfb8 - Update from git (6e8dfb8). * Sat Apr 25 2020 Alexey Gladkov <legion@altlinux.ru> 3.16.0-alt1 - New version (3.16.0). - Update project url. * Tue Jan 09 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.9.1-alt5 - Fixed build. * Tue Nov 28 2017 Dmitry V. Levin <ldv@altlinux.org> 3.9.1-alt4 - Applied upstream LFS fix (closes: #34140). * Tue Jul 11 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.9.1-alt3 - Fixed build with gcc-6. * Tue Dec 15 2015 Dmitry V. Levin <ldv@altlinux.org> 3.9.1-alt2 - Apply ALT Secure Packaging Policy (closes: #31623). * Sun Dec 13 2015 Dmitry V. Levin <ldv@altlinux.org> 3.9.1-alt1 - Updated to 3.9.1 (closes: #12593, #29681, #31616). * Thu Jul 21 2011 Dmitry V. Levin <ldv@altlinux.org> 3.7.9-alt3 - Dropped unused /var/run/logrotate directory (closes: #25583). * Mon Oct 18 2010 Dmitry V. Levin <ldv@altlinux.org> 3.7.9-alt2 - Really enabled SELinux support (patch by vvk@; closes: #24350). * Tue Aug 24 2010 Dmitry V. Levin <ldv@altlinux.org> 3.7.9-alt1 - Updated to 3.7.9. - Enabled SELinux support. * Fri Sep 28 2007 Stanislav Ievlev <inger@altlinux.org> 3.7.6-alt1 - 3.6.7 * Thu Apr 12 2007 Dmitry V. Levin <ldv@altlinux.org> 3.6.2-alt4 - Unhardcoded script directory for non-root processes, thus allowed unprivileged users to use logrotate (#9959). * Wed Jun 09 2004 Dmitry V. Levin <ldv@altlinux.org> 3.6.2-alt3 - Rebuilt in new environment (#3523). * Wed Sep 25 2002 Dmitry V. Levin <ldv@altlinux.org> 3.6.2-alt2 - Provides: /etc/logrotate.d * Sat Mar 23 2002 Dmitry V. Levin <ldv@altlinux.org> 3.6.2-alt1 - 3.6.2. - Removed readState patch (merged upstream). - Marked %_localstatedir/logrotate/status ad %%config(noreplace). - Added %%post script to handle logrotate/status move. * Sun Jan 20 2002 Dmitry V. Levin <ldv@altlinux.org> 3.6-alt3 - Optimized cron script. * Fri Dec 28 2001 Dmitry V. Levin <ldv@altlinux.org> 3.6-alt2 - Fixed taboo patch. * Wed Dec 26 2001 Dmitry V. Levin <ldv@altlinux.org> 3.6-alt1 - 3.6, updated our patches. - Fixed typo in readState error check. - Merged fchmod/fchown race (owl). * Mon Jun 04 2001 Dmitry V. Levin <ldv@altlinux.ru> 3.5.4-alt1 - 3.5.4 (some fixes went to mainstream). - Added ".number" taboo suffix. * Sun Dec 31 2000 Dmitry V. Levin <ldv@fandra.org> 3.5.2-ipl1mdk - 3.5.2. - Updated all patches for new version. * Tue Sep 19 2000 Dmitry V. Levin <ldv@fandra.org> 3.3-ipl10mdk - Moved %_localstatedir/logrotate.status --> %_localstatedir/logrotate/status (and fixed perms). - Automatically added BuildRequires. * Thu Sep 14 2000 Dmitry V. Levin <ldv@fandra.org> 3.3-ipl9mdk - Patched config handling to support taboo suffixes. * Mon Sep 11 2000 Dmitry V. Levin <ldv@fandra.org> 3.3-ipl8mdk - Rewritten runScript function in secure manner. - Merged with MDK. * Wed Nov 10 1999 Dmitry V. Levin <ldv@fandra.org> - update to 3.3 - Fandra adaptions * Mon Apr 12 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - update to 2.1. * Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - Mandrake adaptions - bzip2 man/info pages - add de locale |