git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/check_rbl/check_rbl-1.4.4/INSTALL
blob: e63587bf1d0c386234c5a042919229c155c16b5f (plain)
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
Build and install check_rbl

Dependences
===========

check_rbl depends on several Perl modules:

 * Data::Validate::Domain
 * Data::Validate::IP
 * IO::Select
 * Monitoring::Plugin
 * Monitoring::Plugin::Getopt
 * Monitoring::Plugin::Threshold
 * Net::DNS
 * Net::IP
 * Readonly

Perl modules can be found on the "Comprehensive Perl Archive Network"
(CPAN). The "How to install CPAN modules" guide summarizes how these
can be installed

        http://www.cpan.org/modules/INSTALL.html

On many systems Perl modules are also available as installation
packages (refer to your system documentation on how to install them).

The 'perl Makefile.PL' command (see below) will list the missing
packages the you will need to install.

Install to /usr/lib/nagios/plugins/contrib
==========================================

In the source directory run:

    perl Makefile.PL
    make
    make install

Install to a custom directory (CUSTOM_DIR)
=========================================

In the source directory run:

    perl Makefile.PL INSTALLSITESCRIPT=CUSTOM_DIR
    make
    make install

You can override the INSTALLSCRIPT, INSTALLNBIN or INSTALLSITESCRIPT
variable depending on your perl installation.

The man page is installed to /usr/share/man/man1/check_rbl.1
you can customize the path by setting INSTALLMAN1DIR as follows

    perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR
    make
    make install

Manual installation
===================

Substitute #!perl at the beginning of the script with the location of
your Perl interpreter and copy it to the desired location

Generate the man page with pod2man

    pod2man check_rbl.pod > CUSTOM_MAN_FILE

Please report any bugs or feature requests through the
web interface at https://github.com/matteocorti/check_rbl/issues

Dependencies on Debian
======================

apt-get install libdata-validate-ip-perl libdata-validate-domain-perl libnet-dns-perl libreadonly-perl libnagios-plugin-perl