summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-15 14:10:53 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-15 14:10:53 +0300
commitefd1a045ded13cc50e20f0125118139a36df6ff2 (patch)
treee4aec74586bc37ccd195737013ed1666a180bc72 /contrib
parentd423bcad1a9f321c38c707232a625de856b04bc4 (diff)
downloadaccel-ppp-efd1a045ded13cc50e20f0125118139a36df6ff2.tar.gz
accel-ppp-efd1a045ded13cc50e20f0125118139a36df6ff2.zip
cmake: added centos support
Diffstat (limited to 'contrib')
-rw-r--r--contrib/accel-ppp.service (renamed from contrib/debian/accel-ppp.service)0
-rw-r--r--contrib/centos/centos.cmake24
2 files changed, 24 insertions, 0 deletions
diff --git a/contrib/debian/accel-ppp.service b/contrib/accel-ppp.service
index f25a66d..f25a66d 100644
--- a/contrib/debian/accel-ppp.service
+++ b/contrib/accel-ppp.service
diff --git a/contrib/centos/centos.cmake b/contrib/centos/centos.cmake
new file mode 100644
index 0000000..a0dcd27
--- /dev/null
+++ b/contrib/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)
+