• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

build-aux/H12-Oct-2017-234108

examples/H12-Oct-2017-7053

test/H12-Oct-2017-3,2792,208

.gitattributesH A D12-Oct-201726 21

.gitignoreH A D12-Oct-2017391 3433

.travis.ymlH A D12-Oct-20172.8 KiB129123

CONTRIBUTING.mdH A D12-Oct-2017731 1815

COPYINGH A D12-Oct-201717.7 KiB340281

ChangeLog.mdH A D12-Oct-201722.1 KiB594436

INSTALLH A D12-Oct-2017763 2414

Makefile.amH A D12-Oct-20171,011 3414

README.HPUXH A D12-Oct-20171.7 KiB4433

README.SolarisH A D12-Oct-2017533 2014

README.mdH A D12-Oct-20174.2 KiB8957

autogen.shH A D12-Oct-2017393 209

config.cH A D03-May-202248.7 KiB1,9141,646

configure.acH A D12-Oct-20175.6 KiB191166

log.cH A D12-Oct-20171.7 KiB10791

log.hH A D12-Oct-2017436 2620

logrotate.8.inH A D12-Oct-201723.5 KiB638546

logrotate.cH A D03-May-202270.2 KiB2,7062,235

logrotate.conf.5H A D12-Oct-201721 21

logrotate.hH A D03-May-20222.4 KiB9681

logrotate.spec.inH A D12-Oct-20172 KiB5747

queue.hH A D12-Oct-201719.1 KiB575367

upload-release.shH A D12-Oct-20171.9 KiB7653

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