Ticket #1367: Portfile

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

new portfile

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
32## depends could be bin or lib ...
33variant mysql {
34        ## or mysql4 ?
35        depends_lib-append lib:libmysqlclient:mysql
36        configure.args-delete --without-mysql
37        configure.args-append --with-mysql=${prefix}
38}
39
40## need libcrypt from where ???
41variant pgsql {
42        depends_lib-append lib:libcrypt:postgresql
43        configure.args-delete --without-pgsql
44        configure.args-append --with-pgsql=${prefix}
45}
46
47variant fping {
48        depends_lib-append bin:fping:fping
49}
50
51## not in DP
52#variant radius {
53#       depends_lib-append bin:radius:radiusclient
54#}
55
56## system components sufficient on 10.3, but for others system
57## if put variant on darwin, DP built it ...
58variant openbsd freebsd linux {
59        variant ldap {
60                depends_lib-append lib:libldap:openldap
61                configure.args-append --with-ldap
62        }
63        variant snmp {
64                depends_lib-append bin:snmpget:net-snmp
65        }
66        variant ntp {
67                #depends_lib bin:ntpdate:ntp ## no ntp in DP
68        }
69}
70