From 4e39b82b126bcee5b19f482a0f5048b25692abb3 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sat, 28 Apr 2018 15:11:24 +0300 Subject: move contrib/centos/centos.cmake -> cmake/centos/centos.cmake --- cmake/centos/centos.cmake | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cmake/centos/centos.cmake (limited to 'cmake') diff --git a/cmake/centos/centos.cmake b/cmake/centos/centos.cmake new file mode 100644 index 0000000..a0dcd27 --- /dev/null +++ b/cmake/centos/centos.cmake @@ -0,0 +1,24 @@ +SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr") +SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}) + +if (BUILD_DRIVER_ONLY) + if (BUILD_IPOE_DRIVER) + SET(CPACK_PACKAGING_INSTALL_PREFIX "/") + SET(CPACK_PACKAGE_NAME "accel-ppp-ipoe-kmod") + SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-ppp IPoE kernel module") + SET(CPACK_RPM_PACKAGE_REQUIRES "") + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/drivers/ipoe/driver/ipoe.ko DESTINATION lib/modules/${CENTOS_KDIR}/extra) + endif (BUILD_IPOE_DRIVER) + + if (BUILD_VLAN_MON_DRIVER) + SET(CPACK_PACKAGING_INSTALL_PREFIX "/") + SET(CPACK_PACKAGE_NAME "accel-ppp-vlan_mon-kmod") + SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-ppp vlan monitoring kernel module") + SET(CPACK_RPM_PACKAGE_REQUIRES "") + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/drivers/vlan_mon/driver/vlan_mon.ko DESTINATION lib/modules/${CENTOS_KDIR}/extra) + endif (BUILD_VLAN_MON_DRIVER) +else (BUILD_DRIVER_ONLY) + INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/accel-ppp.service DESTINATION /usr/lib/systemd/system) + INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pppd/accel-ppp.conf DESTINATION /etc RENAME accel-ppp.conf.dist) +endif (BUILD_DRIVER_ONLY) + -- cgit v1.2.3