Willy TARREAU | 3dc0644 | 2006-06-15 21:48:13 +0200 | [diff] [blame] | 1 | /* |
Willy Tarreau | 08c4b79 | 2010-08-27 11:09:17 +0200 | [diff] [blame] | 2 | * include/common/version.h |
| 3 | * This file serves as a template for future include files. |
| 4 | * |
| 5 | * Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation, version 2.1 |
| 10 | * exclusively. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ |
Willy TARREAU | 3dc0644 | 2006-06-15 21:48:13 +0200 | [diff] [blame] | 21 | |
Willy Tarreau | 2dd0d47 | 2006-06-29 17:53:05 +0200 | [diff] [blame] | 22 | #ifndef _COMMON_VERSION_H |
| 23 | #define _COMMON_VERSION_H |
Willy TARREAU | 3dc0644 | 2006-06-15 21:48:13 +0200 | [diff] [blame] | 24 | |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 25 | #include <common/config.h> |
| 26 | |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 27 | #ifdef CONFIG_PRODUCT_NAME |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 28 | #define PRODUCT_NAME CONFIG_PRODUCT_NAME |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 29 | #else |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 30 | #define PRODUCT_NAME "HAProxy" |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 31 | #endif |
Willy TARREAU | 3dc0644 | 2006-06-15 21:48:13 +0200 | [diff] [blame] | 32 | |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 33 | #ifdef CONFIG_PRODUCT_BRANCH |
| 34 | #define PRODUCT_BRANCH CONFIG_PRODUCT_BRANCH |
| 35 | #else |
Willy Tarreau | 2e077f8 | 2019-11-25 20:36:16 +0100 | [diff] [blame^] | 36 | #define PRODUCT_BRANCH "2.2" |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 37 | #endif |
| 38 | |
Willy Tarreau | 08dd202 | 2019-11-21 18:07:30 +0100 | [diff] [blame] | 39 | #ifdef CONFIG_PRODUCT_STATUS |
| 40 | #define PRODUCT_STATUS CONFIG_PRODUCT_STATUS |
| 41 | #else |
Willy Tarreau | 9ca7f8c | 2019-11-25 19:27:55 +0100 | [diff] [blame] | 42 | #define PRODUCT_STATUS "Status: stable branch - will stop receiving fixes around Q1 2021." |
Willy Tarreau | 08dd202 | 2019-11-21 18:07:30 +0100 | [diff] [blame] | 43 | #endif |
| 44 | |
Willy Tarreau | 47479eb | 2019-11-21 18:48:20 +0100 | [diff] [blame] | 45 | #ifdef CONFIG_PRODUCT_URL_BUGS |
| 46 | #define PRODUCT_URL_BUGS CONFIG_PRODUCT_URL_BUGS |
| 47 | #else |
| 48 | #define PRODUCT_URL_BUGS "http://www.haproxy.org/bugs/bugs-%s.html" |
| 49 | #endif |
| 50 | |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 51 | #ifdef CONFIG_PRODUCT_URL |
| 52 | #define PRODUCT_URL CONFIG_PRODUCT_URL |
| 53 | #else |
Willy Tarreau | 6346f0a | 2014-05-10 11:04:39 +0200 | [diff] [blame] | 54 | #define PRODUCT_URL "http://www.haproxy.org/" |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 55 | #endif |
| 56 | |
| 57 | #ifdef CONFIG_PRODUCT_URL_UPD |
| 58 | #define PRODUCT_URL_UPD CONFIG_PRODUCT_URL_UPD |
| 59 | #else |
Willy Tarreau | 6346f0a | 2014-05-10 11:04:39 +0200 | [diff] [blame] | 60 | #define PRODUCT_URL_UPD "http://www.haproxy.org/#down" |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 61 | #endif |
| 62 | |
| 63 | #ifdef CONFIG_PRODUCT_URL_DOC |
| 64 | #define PRODUCT_URL_DOC CONFIG_PRODUCT_URL_DOC |
| 65 | #else |
Willy Tarreau | 6346f0a | 2014-05-10 11:04:39 +0200 | [diff] [blame] | 66 | #define PRODUCT_URL_DOC "http://www.haproxy.org/#docs" |
Willy Tarreau | c0dde7a | 2007-01-01 21:38:07 +0100 | [diff] [blame] | 67 | #endif |
| 68 | |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 69 | #ifdef CONFIG_HAPROXY_VERSION |
| 70 | #define HAPROXY_VERSION CONFIG_HAPROXY_VERSION |
| 71 | #else |
Willy Tarreau | ec69256 | 2007-09-09 23:31:11 +0200 | [diff] [blame] | 72 | #error "Must define CONFIG_HAPROXY_VERSION" |
Willy TARREAU | 3dc0644 | 2006-06-15 21:48:13 +0200 | [diff] [blame] | 73 | #endif |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 74 | |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 75 | #ifdef CONFIG_HAPROXY_DATE |
| 76 | #define HAPROXY_DATE CONFIG_HAPROXY_DATE |
| 77 | #else |
Willy Tarreau | ec69256 | 2007-09-09 23:31:11 +0200 | [diff] [blame] | 78 | #error "Must define CONFIG_HAPROXY_DATE" |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 79 | #endif |
| 80 | |
Willy Tarreau | abefa34 | 2019-10-16 09:44:55 +0200 | [diff] [blame] | 81 | extern char haproxy_version[]; |
| 82 | extern char haproxy_date[]; |
| 83 | extern char stats_version_string[]; |
Willy Tarreau | 909b9d8 | 2019-01-04 18:20:32 +0100 | [diff] [blame] | 84 | |
Willy Tarreau | 2dd0d47 | 2006-06-29 17:53:05 +0200 | [diff] [blame] | 85 | #endif /* _COMMON_VERSION_H */ |
Willy Tarreau | 85270da | 2007-01-02 00:59:39 +0100 | [diff] [blame] | 86 | |