1
How to build and install logrotate on HP-UX 11.00 (these instructions should
2
also work on HP-UX 10.20):
4
1. Obtain and install the following GNU packages for HP-UX:
8
I used the packages at the Software Porting and Archive Centre for HP-UX
9
at http://hpux.cs.utah.edu/.
11
Obtain and install the following GNU/Linux to HP-UX Porting package:
13
See http://devresource.hp.com/LPK/index.html for downloads.
14
This library is needed to provide the ??? function.
16
2. Obtain, build, and install popt 1.4 (there doesn't seem to be a build at
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").
22
3. 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
26
4. Install logrotate into your desired directory (BASEDIR defaults to
28
gmake install BASEDIR=/usr/local
30
5. Copy the configuration files into your desired location.
31
cp examples/logrotate-default /etc/logrotate.conf
32
mkdir /etc/logrotate.d
34
6. Set up a cron job to run logrotate daily. See examples/logrotate.cron.
36
7. 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.
41
Questions, 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>