Navigation


Changeset 313:6fd1e6f56af5 in freeDiameter for CMakeLists.txt


Ignore:
Timestamp:
May 19, 2010, 11:08:05 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Completed initial debianization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r310 r313  
    2424SET(DEFAULT_CONF_PATH ${CMAKE_INSTALL_PREFIX}/etc/freeDiameter CACHE PATH "Default location of freeDiameter configuration files")
    2525
    26 SET(INSTALL_DOCUMENTATION_PATH  ${CMAKE_INSTALL_PREFIX}/doc/freeDiameter        CACHE PATH "Directory where the documentation is installed.")
    27 SET(INSTALL_HEADERS_PATH        ${CMAKE_INSTALL_PREFIX}/include/freeDiameter    CACHE PATH "Directory where the headers are installed.")
    28 SET(INSTALL_EXTENSIONS_PATH     ${CMAKE_INSTALL_PREFIX}/lib/freeDiameter        CACHE PATH "Directory where the extensions are installed / searched.")
    29 SET(INSTALL_DAEMON_PATH         ${CMAKE_INSTALL_PREFIX}/bin                     CACHE PATH "Directory where the daemon binary is installed.")
    30 SET(INSTALL_LIBRARY_PATH        ${CMAKE_INSTALL_PREFIX}/lib                     CACHE PATH "Directory where the libfreeDiameter library is installed.")
     26SET(INSTALL_HEADERS_SUFFIX              include/freeDiameter    CACHE PATH "Directory where the headers are installed (relative to CMAKE_INSTALL_PREFIX).")
     27SET(INSTALL_EXTENSIONS_SUFFIX           lib/freeDiameter        CACHE PATH "Directory where the extensions are installed / searched (relative to CMAKE_INSTALL_PREFIX).")
     28SET(INSTALL_DAEMON_SUFFIX               bin                     CACHE PATH "Directory where the daemon binary is installed (relative to CMAKE_INSTALL_PREFIX).")
     29SET(INSTALL_LIBRARY_SUFFIX              lib                     CACHE PATH "Directory where the libfreeDiameter library is installed (relative to CMAKE_INSTALL_PREFIX).")
    3130
    3231# All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
     
    5958# Extensions (there is no point in freeDiameter without any extension)
    6059SUBDIRS(extensions)
    61 
    62 
    63 ####
    64 ## INSTALL section ##
    65 
    66 INSTALL(FILES README LICENSE doc/freediameter.conf.sample
    67         DESTINATION ${INSTALL_DOCUMENTATION_PATH}
    68         COMPONENT freeDiameter-daemon)
    69 
    70 
    71 
    72 ####
    73 ## Packaging section ##
    74 
    75 # Default: build a debian package
    76 SET(CPACK_GENERATOR DEB)
    77 
    78 # Parameters for the package
    79 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
    80 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "freeDiameter: a Diameter implementation (protocol for Authentication, Authorization and Accounting, evolution of RADIUS)")
    81 SET(CPACK_PACKAGE_VENDOR "This is open software")
    82 SET(CPACK_PACKAGE_VERSION_MAJOR "${FD_PROJECT_VERSION_MAJOR}")
    83 SET(CPACK_PACKAGE_VERSION_MINOR "${FD_PROJECT_VERSION_MINOR}")
    84 SET(CPACK_PACKAGE_VERSION_PATCH "${FD_PROJECT_VERSION_REV}")
    85 
    86 SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
    87 SET(CPACK_PACKAGE_CONTACT "Sebastien Decugis <sdecugis@nict.go.jp>")
    88 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
    89 
    90 SET(CPACK_COMPONENTS_ALL
    91         freeDiameter-common
    92         freeDiameter-daemon
    93         freeDiameter-dictionary-RFC4005
    94         freeDiameter-dictionary-RFC4072
    95         freeDiameter-radius-gateway
    96         freeDiameter-accounting-server
    97         freeDiameter-dev
    98         freeDiameter-debug-tools
    99         )
    100        
    101 # freeDiameter-common
    102 SET( CPACK_COMPONENT_FREEDIAMETER-COMMON_DISPLAY_NAME "freeDiameter library" )
    103 SET( CPACK_COMPONENT_FREEDIAMETER-COMMON_DESCRIPTION "The library needed by all freeDiameter components" )
    104 SET( CPACK_COMPONENT_FREEDIAMETER-COMMON_REQUIRED ON)
    105 
    106 # freeDiameter-daemon
    107 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DISPLAY_NAME "freeDiameter daemon binary" )
    108 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DESCRIPTION "The daemon providing Diameter Base Protocol support" )
    109 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DEPENDS freeDiameter-common)
    110 
    111 # freeDiameter-dictionary-RFC4005
    112 SET( CPACK_COMPONENT_FREEDIAMETER-DICTIONARY-RFC4005_DISPLAY_NAME "freeDiameter RFC4005 (NASREQ) dictionary" )
    113 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DESCRIPTION "An extension to the daemon's dictionary, providing commands and AVPs for NASREQ application" )
    114 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DEPENDS freeDiameter-daemon)
    115 
    116 # freeDiameter-dictionary-RFC4072
    117 SET( CPACK_COMPONENT_FREEDIAMETER-DICTIONARY-RFC4072_DISPLAY_NAME "freeDiameter RFC4072 (EAP) dictionary" )
    118 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DESCRIPTION "An extension to the daemon's dictionary, providing commands and AVPs for Diameter EAP application" )
    119 SET( CPACK_COMPONENT_FREEDIAMETER-DAEMON_DEPENDS freeDiameter-dictionary-RFC4005)
    120 
    121 # freeDiameter-radius-gateway
    122 SET( CPACK_COMPONENT_FREEDIAMETER-RADIUS-GATEWAY_DISPLAY_NAME "RADIUS/Diameter gateway extension for freeDiameter" )
    123 SET( CPACK_COMPONENT_FREEDIAMETER-RADIUS-GATEWAY_DESCRIPTION "This extension provides translation of RADIUS client messages to Diameter servers" )
    124 SET( CPACK_COMPONENT_FREEDIAMETER-RADIUS-GATEWAY_DEPENDS freeDiameter-dictionary-RFC4072)
    125 
    126 # freeDiameter-accounting-server
    127 SET( CPACK_COMPONENT_FREEDIAMETER-ACCOUNTING-SERVER_DISPLAY_NAME "Accounting server extension for freeDiameter" )
    128 SET( CPACK_COMPONENT_FREEDIAMETER-ACCOUNTING-SERVER_DESCRIPTION "This extension provides a simple configurable Diameter Base Accounting implementation" )
    129 SET( CPACK_COMPONENT_FREEDIAMETER-ACCOUNTING-SERVER_DEPENDS freeDiameter-daemon)
    130 
    131 # freeDiameter-dev
    132 SET( CPACK_COMPONENT_FREEDIAMETER-DEV_DISPLAY_NAME "freeDiameter headers" )
    133 SET( CPACK_COMPONENT_FREEDIAMETER-DEV_DESCRIPTION "Install the headers if you plan to develop new freeDiameter extensions" )
    134 SET( CPACK_COMPONENT_FREEDIAMETER-DEV_DEPENDS freeDiameter-common)
    135 
    136 # freeDiameter-debug-tools
    137 SET( CPACK_COMPONENT_FREEDIAMETER-DEBUG-TOOLS_DISPLAY_NAME "freeDiameter debug tools" )
    138 SET( CPACK_COMPONENT_FREEDIAMETER-DEBUG-TOOLS_DESCRIPTION "A set of tools meant for debugging freeDiameter" )
    139 SET( CPACK_COMPONENT_FREEDIAMETER-DEBUG-TOOLS_DEPENDS freeDiameter-daemon)
    140 
    141 # This is not working well at this time (may 2010), so leave it commented out for the moment.
    142 # INCLUDE(CPack)
    143 
    144 
Note: See TracChangeset for help on using the changeset viewer.