summaryrefslogtreecommitdiff
path: root/cmake/debian
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-18 11:14:33 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-18 11:14:33 +0300
commit862f1cbfe781098be2263443fc108a46f521a163 (patch)
treeb6e4dcd8b0dfe69df8f1b7f3050f4c3b0472c01c /cmake/debian
parent58b5c504ea4bbc8202ad16708a71d7c48dedf32f (diff)
downloadaccel-ppp-862f1cbfe781098be2263443fc108a46f521a163.tar.gz
accel-ppp-862f1cbfe781098be2263443fc108a46f521a163.zip
cpack: add vlan_mon rules
Diffstat (limited to 'cmake/debian')
-rw-r--r--cmake/debian/debian.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index 858f053b..e0e3393e 100644
--- a/cmake/debian/debian.cmake
+++ b/cmake/debian/debian.cmake
@@ -24,6 +24,15 @@ if (BUILD_DRIVER_ONLY)
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian-kmod/postinst")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/drivers/ipoe/driver/ipoe.ko DESTINATION lib/modules/${DEBIAN_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_DEBIAN_PACKAGE_DEPENDS "")
+ SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian-kmod/postinst")
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/drivers/vlan_mon/driver/vlan_mon.ko DESTINATION lib/modules/${DEBIAN_KDIR}/extra)
+ endif (BUILD_VLAN_MON_DRIVER)
else (BUILD_DRIVER_ONLY)
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/conffiles")