Ticket #1367: Portfile.2

File Portfile.2, 2.0 KB (added by julien.touche@…, 21 years ago)

portfiles

Line 
1# $Id: $
2PortSystem        1.0
3name              nagios-plugins
4version           1.3.1
5categories        net
6maintainers       julien.touche@touche.fr.st
7description       base plugins for nagios
8long_description  Nagios monitors hosts and services on your network. \
9                  Actual host and service checks are performed by separate \
10                  plugins which return the hsot or service status to Nagios. \
11                  This site is devoted to making the plugins as useful and \
12                  reliable as possible.
13homepage          http://www.nagios.org
14master_sites      sourceforge:nagiosplug
15platforms         darwin openbsd
16checksums         md5 0078c9c8137694181a4cdf596fdbd74f
17configure.args    --with-nagios-user=nagios \
18                        --with-nagios-grp=nagios \
19                        --with-cgiurl=/cgi-bin/nagios \
20                        --with-openssl \
21                        --libexecdir=${prefix}/libexec/nagios \
22                        --without-mysql \
23                        --without-pgsql
24depends_lib       lib:libssl:openssl
25
26pre-destroot {
27        adduser nagios
28        addgroup nagios
29}
30
31## may need a chmod 755 ${prefix}/libexec/nagios
32
33
34## depends could be bin or lib ...
35variant mysql {
36        ## or mysql4 ?
37        depends_lib-append lib:libmysqlclient:mysql
38        configure.args-delete --without-mysql
39        configure.args-append --with-mysql=${prefix}
40}
41
42## need libcrypt from where ???
43variant pgsql {
44        depends_lib-append lib:libcrypt:postgresql
45        configure.args-delete --without-pgsql
46        configure.args-append --with-pgsql=${prefix}
47}
48
49variant fping {
50        depends_lib-append bin:fping:fping
51}
52
53## not in DP
54#variant radius {
55#       depends_lib-append bin:radius:radiusclient
56#}
57
58## system components sufficient on 10.3, but for others system
59## if put variant on darwin, DP built it ...
60## note: configure hasn't any enable/disable for those
61variant openbsd freebsd linux {
62        variant ldap {
63                depends_lib-append lib:libldap:openldap
64                configure.args-append --with-ldap
65        }
66        variant snmp {
67                depends_lib-append bin:snmpget:net-snmp
68        }
69        variant ntp {
70                #depends_lib bin:ntpdate:ntp ## no ntp in DP
71        }
72}
73