Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
build-aux/ | H | 12-Oct-2017 | - | 234 | 108 | |
examples/ | H | 12-Oct-2017 | - | 70 | 53 | |
test/ | H | 12-Oct-2017 | - | 3,279 | 2,208 | |
.gitattributes | H A D | 12-Oct-2017 | 26 | 2 | 1 | |
.gitignore | H A D | 12-Oct-2017 | 391 | 34 | 33 | |
.travis.yml | H A D | 12-Oct-2017 | 2.8 KiB | 129 | 123 | |
CONTRIBUTING.md | H A D | 12-Oct-2017 | 731 | 18 | 15 | |
COPYING | H A D | 12-Oct-2017 | 17.7 KiB | 340 | 281 | |
ChangeLog.md | H A D | 12-Oct-2017 | 22.1 KiB | 594 | 436 | |
INSTALL | H A D | 12-Oct-2017 | 763 | 24 | 14 | |
Makefile.am | H A D | 12-Oct-2017 | 1,011 | 34 | 14 | |
README.HPUX | H A D | 12-Oct-2017 | 1.7 KiB | 44 | 33 | |
README.Solaris | H A D | 12-Oct-2017 | 533 | 20 | 14 | |
README.md | H A D | 12-Oct-2017 | 4.2 KiB | 89 | 57 | |
autogen.sh | H A D | 12-Oct-2017 | 393 | 20 | 9 | |
config.c | H A D | 03-May-2022 | 48.7 KiB | 1,914 | 1,646 | |
configure.ac | H A D | 12-Oct-2017 | 5.6 KiB | 191 | 166 | |
log.c | H A D | 12-Oct-2017 | 1.7 KiB | 107 | 91 | |
log.h | H A D | 12-Oct-2017 | 436 | 26 | 20 | |
logrotate.8.in | H A D | 12-Oct-2017 | 23.5 KiB | 638 | 546 | |
logrotate.c | H A D | 03-May-2022 | 70.2 KiB | 2,706 | 2,235 | |
logrotate.conf.5 | H A D | 12-Oct-2017 | 21 | 2 | 1 | |
logrotate.h | H A D | 03-May-2022 | 2.4 KiB | 96 | 81 | |
logrotate.spec.in | H A D | 12-Oct-2017 | 2 KiB | 57 | 47 | |
queue.h | H A D | 12-Oct-2017 | 19.1 KiB | 575 | 367 | |
upload-release.sh | H A D | 12-Oct-2017 | 1.9 KiB | 76 | 53 |
README.HPUX
1How to build and install logrotate on HP-UX 11.00 (these instructions should 2also work on HP-UX 10.20): 3 41. Obtain and install the following GNU packages for HP-UX: 5 binutils 2.9.1 6 gcc 2.95.2 7 make 3.78.1 8 I used the packages at the Software Porting and Archive Centre for HP-UX 9 at http://hpux.cs.utah.edu/. 10 11 Obtain and install the following GNU/Linux to HP-UX Porting package: 12 libhplx library 13 See http://devresource.hp.com/LPK/index.html for downloads. 14 This library is needed to provide the ??? function. 15 162. Obtain, build, and install popt 1.4 (there doesn't seem to be a build at 17 the Porting Centre.) 18 See ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/popt-1.6.4.tar.gz 19 Install it into the directory of your choice (i.e. 20 "./configure --prefix=/opt/popt"). 21 223. Build logrotate, telling it where to find popt and hplx installation. The 23 POPT_DIR defaults to /usr/local and HPLX_DIR defaults to /usr/local/hplx: 24 gmake POPT_DIR=/usr/local HPLX_DIR=/usr/local/hplx 25 264. Install logrotate into your desired directory (BASEDIR defaults to 27 /usr/local): 28 gmake install BASEDIR=/usr/local 29 305. Copy the configuration files into your desired location. 31 cp examples/logrotate-default /etc/logrotate.conf 32 mkdir /etc/logrotate.d 33 346. Set up a cron job to run logrotate daily. See examples/logrotate.cron. 35 367. I also recommend setting CLEAN_ADM=0 in /etc/rc.config.d/clean, and 37 setting up an init script to use logrotate for this instead. This way, 38 logrotate manages all logfile pruning. 39 40 41Questions, comments, abuse to: 42 Paul D. Gear <citecpdg@citec.qld.gov.au>, <paulgear@bigfoot.com> 43 Danial M. Howard <howadani@isu.edu>, <dmhoward@byu.edu> 44
README.Solaris
1Steps to build and install logrotate on Solaris 2.6 2 31. Obtain and install the following GNU packages from http://Sunfreeware.com: 4 gcc 2.95.2 5 make 3.80 6 popt-1.6.3 7 82. Build and install logrotate: 9 gmake 10 gmake install 11 12OBS.: If you want to use the test script on Solaris 2.6, you'll need to have 13 bash installed, adjust the path after the sha-bang (#!) properly and 14 substitute the sintax $(...) for backticks `...` in all 15 "test-config.?.in" files. 16 17-- 18Fidelis Assis <fidelis@embratel.net.br> 19 20
README.md
1# logrotate 2 3The 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. 4 5## Download 6 7The latest release is: 8 9* [logrotate-3.13.0](https://github.com/logrotate/logrotate/releases/download/3.13.0/logrotate-3.13.0.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.13.0/logrotate-3.13.0.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.13.0)) 10 11Previous releases: 12 13* [logrotate-3.12.3](https://github.com/logrotate/logrotate/releases/download/3.12.3/logrotate-3.12.3.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.12.3/logrotate-3.12.3.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.12.3)) 14* [logrotate-3.12.2](https://github.com/logrotate/logrotate/releases/download/3.12.2/logrotate-3.12.2.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.12.2/logrotate-3.12.2.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.12.2)) 15* [logrotate-3.12.1](https://github.com/logrotate/logrotate/releases/download/3.12.1/logrotate-3.12.1.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.12.1/logrotate-3.12.1.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.12.1)) 16* [logrotate-3.12.0](https://github.com/logrotate/logrotate/releases/download/3.12.0/logrotate-3.12.0.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.12.0/logrotate-3.12.0.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.12.0)) 17* [logrotate-3.11.0](https://github.com/logrotate/logrotate/releases/download/3.11.0/logrotate-3.11.0.tar.xz) ([sig](https://github.com/logrotate/logrotate/releases/download/3.11.0/logrotate-3.11.0.tar.xz.asc)) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.11.0)) 18* [logrotate-3.10.0](https://github.com/logrotate/logrotate/releases/download/3.10.0/logrotate-3.10.0.tar.gz) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.10.0)) 19* [logrotate-3.9.2](https://github.com/logrotate/logrotate/releases/download/3.9.2/logrotate-3.9.2.tar.gz) ([Changelog](https://github.com/logrotate/logrotate/releases/tag/3.9.2)) 20 21## Git checkout 22 23You can also obtain code by using git checkout: 24``` 25git clone https://github.com/logrotate/logrotate.git -b master 26``` 27 28Replace `master` with branch or tag you intend to checkout 29 30## Verify and unpack 31 32After downloading the tarball and .asc signature file, check the signature: 33 34Get Kamil's PGP key rsa4096/72A37B36 35(almost any keyserver will do if pgp.mit.edu is temporarily unavailable): 36 37 $ gpg --keyserver pgp.mit.edu --recv-key 992A96E075056E79CD8214F9873DB37572A37B36 38 39and verify the PGP signature on the distribution tarball: 40 41 42 $ gpg --verify logrotate-3.11.0.tar.xz.asc logrotate-3.11.0.tar.xz 43 44 45If successful your GPG output should look like this: 46 47 gpg: Signature made Fri 02 Dec 2016 08:30:39 AM EST 48 gpg: using RSA key 873DB37572A37B36 49 gpg: Good signature from "Kamil Dudka <kdudka@redhat.com>" [unknown] 50 gpg: WARNING: This key is not certified with a trusted signature! 51 gpg: There is no indication that the signature belongs to the owner. 52 Primary key fingerprint: 992A 96E0 7505 6E79 CD82 14F9 873D B375 72A3 7B36 53 54You may then unpack the tarball: 55 56 $ tar -xJf logrotate-3.11.0.tar.xz 57 58Notice that git tags are signed with same key: 59 60 $ git tag --verify 3.11.0 61 62## Compiling 63 64Obtain source either by [Downloading](#download) it or doing [Git checkout](#git-checkout). 65 66Install dependencies for Debian systems: 67``` 68apt-get update 69apt-get install make autoconf libtool libpopt-dev xz-utils 70``` 71 72Install dependencies for Fedora/CentOS systems: 73 74``` 75yum install make autoconf automake libtool popt-devel xz 76``` 77 78Compilation (`autoreconf` is optional if you obtained source from tarball): 79``` 80cd logrotate-X.Y.Z 81autoreconf -fiv 82./configure 83make 84``` 85 86# Patches and Questions 87 88Open issues or pull requests on GitHub. 89