1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name spine |
---|
7 | version 0.8.8b |
---|
8 | categories net |
---|
9 | license GPL-2+ |
---|
10 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
11 | platforms darwin |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description poller for Cacti that primarily strives to be as fast as possible |
---|
15 | long_description ${description} |
---|
16 | |
---|
17 | homepage http://cacti.net/spine_info.php |
---|
18 | master_sites http://www.cacti.net/downloads/spine |
---|
19 | distname cacti-spine-${version} |
---|
20 | |
---|
21 | checksums rmd160 606eeafc73061bd4d9bf8aa0f5b0fa62b5339727 \ |
---|
22 | sha256 fc5d512c1de46db2b48422856e8c6a5816d110083d0bbbf7f9d660f0829912a6 |
---|
23 | |
---|
24 | depends_build port:net-snmp |
---|
25 | depends_run port:cacti |
---|
26 | |
---|
27 | configure.args --with-snmp=${prefix}/include/net-snmp |
---|
28 | patchfiles patch-configure.diff |
---|
29 | |
---|
30 | post-configure { |
---|
31 | reinplace "s|^LDFLAGS = -L -L|LDFLAGS = -L|" ${worksrcpath}/Makefile |
---|
32 | } |
---|
33 | |
---|
34 | if {![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mariadb] && ![variant_isset percona]} { |
---|
35 | default_variants +mysql56 |
---|
36 | } |
---|
37 | |
---|
38 | variant mysql5 \ |
---|
39 | conflicts mysql51 mysql55 mysql56 mariadb percona \ |
---|
40 | description "Enable MySQL 5.1 support" { |
---|
41 | |
---|
42 | depends_lib-append port:mysql5 |
---|
43 | configure.env-append MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config |
---|
44 | configure.args-append --with-mysql=${prefix}/include/mysql5/mysql |
---|
45 | configure.env CFLAGS="-L${prefix}/lib/mysql5/mysql" |
---|
46 | } |
---|
47 | |
---|
48 | variant mysql51 \ |
---|
49 | conflicts mysql5 mysql55 mysql56 mariadb percona \ |
---|
50 | description "Enable MySQL 5.1 support" { |
---|
51 | |
---|
52 | depends_lib-append port:mysql51 |
---|
53 | configure.env-append MYSQL_CONFIG=${prefix}/lib/mysql51/bin/mysql_config |
---|
54 | configure.args-append --with-mysql=${prefix}/include/mysql51/mysql |
---|
55 | configure.env CFLAGS="-L${prefix}/lib/mysql51/mysql" |
---|
56 | } |
---|
57 | |
---|
58 | variant mysql55 \ |
---|
59 | conflicts mysql5 mysql51 mysql56 mariadb percona \ |
---|
60 | description "Enable MySQL 5.5 support" { |
---|
61 | |
---|
62 | depends_lib-append port:mysql55 |
---|
63 | configure.env-append MYSQL_CONFIG=${prefix}/lib/mysql55/bin/mysql_config |
---|
64 | configure.args-append --with-mysql=${prefix}/include/mysql55/mysql |
---|
65 | configure.env CFLAGS="-L${prefix}/lib/mysql55/mysql" |
---|
66 | } |
---|
67 | |
---|
68 | variant mysql56 \ |
---|
69 | conflicts mysql5 mysql51 mysql55 mariadb percona \ |
---|
70 | description "Enable MySQL 5.6 support" { |
---|
71 | |
---|
72 | depends_lib-append port:mysql56 |
---|
73 | configure.env-append MYSQL_CONFIG=${prefix}/lib/mysql56/bin/mysql_config |
---|
74 | configure.args-append --with-mysql=${prefix}/include/mysql56/mysql |
---|
75 | configure.env CFLAGS="-L${prefix}/lib/mysql56/mysql" |
---|
76 | } |
---|
77 | |
---|
78 | variant mariadb \ |
---|
79 | conflicts mysql5 mysql51 mysql55 mysql56 percona \ |
---|
80 | description "Enable MariaDB (MySQL) support" { |
---|
81 | |
---|
82 | depends_lib-append port:mariadb |
---|
83 | configure.env-append MYSQL_CONFIG=${prefix}/lib/mariadb/bin/mysql_config |
---|
84 | configure.args-append --with-mysql=${prefix}/include/mariadb/mysql |
---|
85 | configure.env CFLAGS="-L${prefix}/lib/mariadb/mysql" |
---|
86 | } |
---|
87 | |
---|
88 | variant percona \ |
---|
89 | conflicts mysql5 mysql51 mysql55 mysql56 mariadb \ |
---|
90 | description "Enable Percona (MySQL) support" { |
---|
91 | depends_lib-append port:percona |
---|
92 | configure.env-append MYSQL_CONFIG=${prefix}/lib/percona/bin/mysql_config |
---|
93 | configure.args-append --with-mysql=${prefix}/include/percona/mysql |
---|
94 | configure.env CFLAGS="-L${prefix}/lib/percona/mysql" |
---|
95 | } |
---|
96 | |
---|
97 | livecheck.type regex |
---|
98 | livecheck.url ${homepage} |
---|
99 | livecheck.regex "latest version: <strong><a href=\"/release_notes_.*.php\">(\\d+\.\\d+\\.\\S+)</a></strong>" |
---|