Mercurial > hg > freeDiameter
annotate extensions/app_radgw/CMakeLists.txt @ 551:27f833e7f9c4
Removed empty file
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 15 Sep 2010 14:41:50 +0900 |
parents | 715dd6714ce7 |
children | 1cb9352359f4 |
rev | line source |
---|---|
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
1 # The app_radgw extension |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
2 PROJECT("RADIUS/Diameter extensible gateway application for freeDiameter" C) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
3 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
4 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
5 # Overwrite the debug level for the extension code if configured |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
6 OPTION(DEBUG_LEVEL_APP_RADGW "Overwrite debug level for the extension app_radgw if defined (valid values: FULL, ANNOYING, CALL...)" OFF) |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
7 IF (DEBUG_LEVEL_APP_RADGW) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
8 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_APP_RADGW}) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
9 ENDIF (DEBUG_LEVEL_APP_RADGW) |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
10 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
11 MARK_AS_ADVANCED(DEBUG_LEVEL_APP_RADGW) |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
12 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
13 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
14 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
15 ########### Utility library ############# |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
16 # utility libray for the extension and its plugins |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
17 # See rgw_common.h for detail |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
18 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
19 SET( RG_COMMON_SRC |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
20 radius.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
21 md5.c |
255
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
22 rgw_msg_codes.c |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
23 rgw_msg_attrtype.c |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
24 ) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
25 SET( RG_COMMON_HEADER |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
26 rgw_common.h |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
27 radius.h |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
28 md5.h |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
29 hostap_compat.h |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
30 ) |
404
6b71c4c6c562
Build the utility library as shared so that the code is not duplicated -- should fix compilation on AMD64 (#5)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
365
diff
changeset
|
31 ADD_LIBRARY(rgw_common SHARED ${RG_COMMON_SRC}) |
496
9ffc11470ea2
Fix missing library
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
404
diff
changeset
|
32 SET_TARGET_PROPERTIES(rgw_common PROPERTIES PREFIX "" ) |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
33 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
34 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
35 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
36 ########### Main app_radgw extension ############# |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
37 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
38 # Parser files |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
39 BISON_FILE(rgw_conf.y) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
40 FLEX_FILE(rgw_conf.l) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
41 SET_SOURCE_FILES_PROPERTIES(lex.rgw_conf.c rgw_conf.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
42 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
43 # List of source files |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
44 SET( RGW_DEFAULT_SRC |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
45 rgw_main.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
46 lex.rgw_conf.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
47 rgw_conf.tab.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
48 rgw_conf.tab.h |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
49 rgw_clients.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
50 rgw_plugins.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
51 rgw_servers.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
52 rgw_worker.c |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
53 ) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
54 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
55 # Compile these files as a freeDiameter extension. |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
56 FD_ADD_EXTENSION(app_radgw ${RGW_DEFAULT_SRC} ${RG_COMMON_HEADER}) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
57 TARGET_LINK_LIBRARIES(app_radgw rgw_common) |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
58 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
59 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
60 |
255
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
61 ########### RADIUS/Diameter translation agent plugins (support for RADIUS protocol) ############ |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
62 # Use the macro RGWX_ADD_PLUGIN(name files...) to create a plugin. |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
63 # It is equivalent to add_library with the appropriate parameters |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
64 # and naming conventions (.rgwx : Radius GateWay eXtension) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
65 MACRO(RGWX_ADD_PLUGIN PLGNAME) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
66 ADD_LIBRARY(${PLGNAME} MODULE ${ARGN}) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
67 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES PREFIX "" ) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
68 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" ) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
69 TARGET_LINK_LIBRARIES(${PLGNAME} rgw_common) |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
70 INSTALL(TARGETS ${PLGNAME} |
313
6fd1e6f56af5
Completed initial debianization
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
305
diff
changeset
|
71 LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
72 COMPONENT freeDiameter-radius-gateway) |
255
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
73 ENDMACRO(RGWX_ADD_PLUGIN) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
74 |
256
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
75 |
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
76 ### Debug |
255
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
77 # Example of plugin: |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
78 OPTION(BUILD_RGWX_SAMPLE "Build sample plugin? (for developers only)" OFF) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
79 IF (BUILD_RGWX_SAMPLE) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
80 RGWX_ADD_PLUGIN(sample ${RG_COMMON_HEADER} rgwx_sample.c) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
81 ENDIF (BUILD_RGWX_SAMPLE) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
82 |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
83 # A plugin for debug: dumps RADIUS and Diameter messages state at the time the plugin is called. |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
84 OPTION(BUILD_RGWX_DEBUG "Build debug plugin? (display status of RADIUS and Diameter messages)" ON) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
85 IF (BUILD_RGWX_DEBUG) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
86 RGWX_ADD_PLUGIN(debug ${RG_COMMON_HEADER} rgwx_debug.c) |
cb4307a1cd29
Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
254
diff
changeset
|
87 ENDIF (BUILD_RGWX_DEBUG) |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
88 |
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
89 |
256
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
90 ### Authentication, Authorization messages translation. |
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
91 OPTION(BUILD_RGWX_AUTH "Build Authentication & Authorization RADIUS translation plugin? (RFC2865, RFC3579)" ON) |
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
92 IF (BUILD_RGWX_AUTH) |
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
93 RGWX_ADD_PLUGIN(auth ${RG_COMMON_HEADER} rgwx_auth.c) |
042af0000c0a
Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
255
diff
changeset
|
94 ENDIF (BUILD_RGWX_AUTH) |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
95 |
365
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
96 ### SIP Authentication, Authorization messages translation. |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
97 OPTION(BUILD_RGWX_SIP "Build SIP RADIUS translation plugin? (RFC4740 or RFC5090)" OFF) |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
98 IF (BUILD_RGWX_SIP) |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
99 RGWX_ADD_PLUGIN(sip ${RG_COMMON_HEADER} rgwx_sip.c) |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
100 ENDIF (BUILD_RGWX_SIP) |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
101 |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
102 |
4b7dbc0d187f
Added build option for SIP plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
103 |
259
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
104 ### Accounting messages translation. |
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
105 OPTION(BUILD_RGWX_ACCT "Build Accounting RADIUS translation plugin? (RFC2866)" ON) |
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
106 IF (BUILD_RGWX_ACCT) |
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
107 RGWX_ADD_PLUGIN(acct ${RG_COMMON_HEADER} rgwx_acct.c) |
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
108 ENDIF (BUILD_RGWX_ACCT) |
359e8e394423
Ported the incomplete acct plugin (from waaad)
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
256
diff
changeset
|
109 |
254
a857024cb48b
Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
110 |
268
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
111 ### Generic plugin to handle some attributes (either delete them or simply echo them in the answer) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
112 OPTION(BUILD_RGWX_ECHODROP "Build 'echo/drop' plugin? (drop specific RADIUS attributes or echo them in RADIUS answer)" ON) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
113 IF (BUILD_RGWX_ECHODROP) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
114 BISON_FILE(rgwx_echodrop.y) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
115 FLEX_FILE(rgwx_echodrop.l) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
116 SET_SOURCE_FILES_PROPERTIES(lex.rgwx_echodrop.c rgwx_echodrop.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
117 RGWX_ADD_PLUGIN(echodrop ${RG_COMMON_HEADER} rgwx_echodrop.h rgwx_echodrop.c lex.rgwx_echodrop.c rgwx_echodrop.tab.c rgwx_echodrop.tab.h ) |
b364ffffa2ed
Ported the Echo/Drop plugin from waaad
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
259
diff
changeset
|
118 ENDIF (BUILD_RGWX_ECHODROP) |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
119 |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
120 |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
121 #### |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
122 ## INSTALL section ## |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
123 |
497
715dd6714ce7
Fix location where the rgw_common library is installed
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
496
diff
changeset
|
124 INSTALL(TARGETS app_radgw |
313
6fd1e6f56af5
Completed initial debianization
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
305
diff
changeset
|
125 LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
126 COMPONENT freeDiameter-radius-gateway) |
497
715dd6714ce7
Fix location where the rgw_common library is installed
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
496
diff
changeset
|
127 |
715dd6714ce7
Fix location where the rgw_common library is installed
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
496
diff
changeset
|
128 INSTALL(TARGETS rgw_common |
715dd6714ce7
Fix location where the rgw_common library is installed
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
496
diff
changeset
|
129 LIBRARY DESTINATION ${INSTALL_LIBRARY_SUFFIX} |
715dd6714ce7
Fix location where the rgw_common library is installed
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
496
diff
changeset
|
130 COMPONENT freeDiameter-radius-gateway) |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
131 |
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
268
diff
changeset
|
132 # Note that all compiled plugins are added by the RGWX_ADD_PLUGIN macro in the component freeDiameter-radius-gateway as well. |