mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-07 09:42:34 +00:00
CONTRIB: move src/da.c and contrib/deviceatlas to addons/deviceatlas
Both the source file and the dummy library are now at the same place. Maybe the build howto could be moved there as well to make things even cleaner. The Makefile, MAINTAINERS, doc, github build matrix, coverity checks and travis CI's build were updated.
This commit is contained in:
parent
977209d1d8
commit
f8d9ec57f0
4
.github/matrix.py
vendored
4
.github/matrix.py
vendored
@ -80,7 +80,7 @@ for CC in ["gcc", "clang"]:
|
|||||||
"WURFL_INC=contrib/wurfl",
|
"WURFL_INC=contrib/wurfl",
|
||||||
"WURFL_LIB=contrib/wurfl",
|
"WURFL_LIB=contrib/wurfl",
|
||||||
"USE_DEVICEATLAS=1",
|
"USE_DEVICEATLAS=1",
|
||||||
"DEVICEATLAS_SRC=contrib/deviceatlas",
|
"DEVICEATLAS_SRC=addons/deviceatlas/dummy",
|
||||||
"USE_PROMEX=1",
|
"USE_PROMEX=1",
|
||||||
"USE_51DEGREES=1",
|
"USE_51DEGREES=1",
|
||||||
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
||||||
@ -146,7 +146,7 @@ matrix.append(
|
|||||||
"WURFL_INC=contrib/wurfl",
|
"WURFL_INC=contrib/wurfl",
|
||||||
"WURFL_LIB=contrib/wurfl",
|
"WURFL_LIB=contrib/wurfl",
|
||||||
"USE_DEVICEATLAS=1",
|
"USE_DEVICEATLAS=1",
|
||||||
"DEVICEATLAS_SRC=contrib/deviceatlas",
|
"DEVICEATLAS_SRC=addons/deviceatlas/dummy",
|
||||||
"USE_PROMEX=1",
|
"USE_PROMEX=1",
|
||||||
"USE_51DEGREES=1",
|
"USE_51DEGREES=1",
|
||||||
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
||||||
|
2
.github/workflows/coverity.yml
vendored
2
.github/workflows/coverity.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
COVERITY_SCAN_PROJECT_NAME: 'Haproxy'
|
COVERITY_SCAN_PROJECT_NAME: 'Haproxy'
|
||||||
COVERITY_SCAN_BRANCH_PATTERN: '*'
|
COVERITY_SCAN_BRANCH_PATTERN: '*'
|
||||||
COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com'
|
COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com'
|
||||||
COVERITY_SCAN_BUILD_COMMAND: "make CC=clang TARGET=linux-glibc USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=contrib/deviceatlas USE_51DEGREES=1 51DEGREES_SRC=addons/51degrees/dummy/pattern"
|
COVERITY_SCAN_BUILD_COMMAND: "make CC=clang TARGET=linux-glibc USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1 51DEGREES_SRC=addons/51degrees/dummy/pattern"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install apt dependencies
|
- name: Install apt dependencies
|
||||||
|
@ -11,7 +11,7 @@ branches:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=contrib/deviceatlas USE_51DEGREES=1"
|
- FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1"
|
||||||
- TMPDIR=/tmp
|
- TMPDIR=/tmp
|
||||||
- FIFTYONEDEGREES_SRC="addons/51degrees/dummy/pattern"
|
- FIFTYONEDEGREES_SRC="addons/51degrees/dummy/pattern"
|
||||||
- DEBUG_OPTIONS="DEBUG_STRICT=1"
|
- DEBUG_OPTIONS="DEBUG_STRICT=1"
|
||||||
|
@ -28,7 +28,7 @@ Files: src/cache.c, include/haproxy/cache*.h
|
|||||||
|
|
||||||
DeviceAtlas device identification
|
DeviceAtlas device identification
|
||||||
Maintainer: David Carlier <dcarlier@deviceatlas.com>
|
Maintainer: David Carlier <dcarlier@deviceatlas.com>
|
||||||
Files: src/da.c, contrib/deviceatlas, doc/DeviceAtlas-device-detection.txt
|
Files: addons/deviceatlas, doc/DeviceAtlas-device-detection.txt
|
||||||
|
|
||||||
DNS and Resolvers
|
DNS and Resolvers
|
||||||
Maintainer: Emeric Brun <ebrun@haproxy.com>
|
Maintainer: Emeric Brun <ebrun@haproxy.com>
|
||||||
|
3
Makefile
3
Makefile
@ -640,7 +640,7 @@ endif
|
|||||||
OPTIONS_OBJS += $(DEVICEATLAS_LIB)/json.o
|
OPTIONS_OBJS += $(DEVICEATLAS_LIB)/json.o
|
||||||
OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
|
OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
|
||||||
endif
|
endif
|
||||||
OPTIONS_OBJS += src/da.o
|
OPTIONS_OBJS += addons/deviceatlas/da.o
|
||||||
OPTIONS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
|
OPTIONS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -1005,6 +1005,7 @@ clean:
|
|||||||
$(Q)rm -f {admin,dev,contrib}/*/*.[oas] {admin,dev,contrib}/*/*/*.[oas] {admin,dev,contrib}/*/*/*/*.[oas]
|
$(Q)rm -f {admin,dev,contrib}/*/*.[oas] {admin,dev,contrib}/*/*/*.[oas] {admin,dev,contrib}/*/*/*/*.[oas]
|
||||||
$(Q)rm -f addons/promex/*.[oas]
|
$(Q)rm -f addons/promex/*.[oas]
|
||||||
$(Q)rm -f addons/51degrees/*.[oas] addons/51degrees/dummy/*.[oas] addons/51degrees/dummy/*/*.[oas]
|
$(Q)rm -f addons/51degrees/*.[oas] addons/51degrees/dummy/*.[oas] addons/51degrees/dummy/*/*.[oas]
|
||||||
|
$(Q)rm -f addons/deviceatlas/*.[oas] addons/deviceatlas/dummy/*.[oas]
|
||||||
$(Q)rm -f admin/iprange/iprange admin/iprange/ip6range admin/halog/halog
|
$(Q)rm -f admin/iprange/iprange admin/iprange/ip6range admin/halog/halog
|
||||||
$(Q)rm -f dev/flags/flags dev/poll/poll dev/tcploop/tcploop
|
$(Q)rm -f dev/flags/flags dev/poll/poll dev/tcploop/tcploop
|
||||||
$(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht
|
$(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# makefile for dummy DeviceAtlas library
|
# makefile for dummy DeviceAtlas library
|
||||||
#
|
#
|
||||||
# To enable the DeviceAtlas module support, the following are needed
|
# To enable the DeviceAtlas module support, the following are needed
|
||||||
# make TARGET=<target> DEVICEATLAS_SRC=./contrib/deviceatlas USE_PCRE=1 USE_DEVICEATLAS=1
|
# make TARGET=<target> DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_PCRE=1 USE_DEVICEATLAS=1
|
||||||
|
|
||||||
build: libda.a
|
build: libda.a
|
||||||
|
|
@ -13,12 +13,12 @@ directory.
|
|||||||
|
|
||||||
For HAProxy developers who need to verify that their changes didn't accidentally
|
For HAProxy developers who need to verify that their changes didn't accidentally
|
||||||
break the DeviceAtlas code, it is possible to build a dummy library provided in
|
break the DeviceAtlas code, it is possible to build a dummy library provided in
|
||||||
the contrib/deviceatlas directory and to use it as an alternative for the full
|
the addons/deviceatlas/dummy directory and to use it as an alternative for the
|
||||||
library. This will not provide the full functionalities, it will just allow
|
full library. This will not provide the full functionalities, it will just allow
|
||||||
haproxy to start with a deviceatlas configuration, which generally is enough to
|
haproxy to start with a deviceatlas configuration, which generally is enough to
|
||||||
validate API changes :
|
validate API changes :
|
||||||
|
|
||||||
$ make TARGET=<target> USE_PCRE=1 USE_DEVICEATLAS=1 DEVICEATLAS_SRC=$PWD/contrib/deviceatlas
|
$ make TARGET=<target> USE_PCRE=1 USE_DEVICEATLAS=1 DEVICEATLAS_SRC=$PWD/addons/deviceatlas/dummy
|
||||||
|
|
||||||
These are supported DeviceAtlas directives (see doc/configuration.txt) :
|
These are supported DeviceAtlas directives (see doc/configuration.txt) :
|
||||||
- deviceatlas-json-file <path to the DeviceAtlas JSON data file>.
|
- deviceatlas-json-file <path to the DeviceAtlas JSON data file>.
|
||||||
|
Loading…
Reference in New Issue
Block a user