~ubuntu-branches/ubuntu/edgy/logrotate/edgy

« back to all changes in this revision

Viewing changes to README.HPUX

  • Committer: Bazaar Package Importer
  • Author(s): Paul Martin
  • Date: 2005-05-25 10:43:42 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050525104342-kc8tsbw57qbfmi7s
Tags: 3.7-5
Brown paper bag upload.

42-execlp-bin-sh: Fix major flaw in the last patch... it tries to 
execute the logfile. Thanks very much for the quick report, Philipp.
It was my fault, not yours. (Closes: #279965)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
How to build and install logrotate on HP-UX 11.00 (these instructions should
 
2
also work on HP-UX 10.20):
 
3
 
 
4
1.  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
 
 
16
2.  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
 
 
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
 
25
 
 
26
4.  Install logrotate into your desired directory (BASEDIR defaults to
 
27
    /usr/local):
 
28
        gmake install BASEDIR=/usr/local
 
29
 
 
30
5.  Copy the configuration files into your desired location.
 
31
        cp examples/logrotate-default /etc/logrotate.conf
 
32
        mkdir /etc/logrotate.d
 
33
 
 
34
6.  Set up a cron job to run logrotate daily. See examples/logrotate.cron.
 
35
 
 
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.
 
39
 
 
40
 
 
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>