summaryrefslogtreecommitdiff
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
parent58b5c504ea4bbc8202ad16708a71d7c48dedf32f (diff)
downloadaccel-ppp-862f1cbfe781098be2263443fc108a46f521a163.tar.gz
accel-ppp-862f1cbfe781098be2263443fc108a46f521a163.zip
cpack: add vlan_mon rules
-rw-r--r--cmake/cpack.cmake4
-rw-r--r--cmake/debian/debian.cmake9
2 files changed, 11 insertions, 2 deletions
diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake
index 5b180bf..8f9a70e 100644
--- a/cmake/cpack.cmake
+++ b/cmake/cpack.cmake
@@ -1,8 +1,8 @@
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
-SET(CPACK_PACKAGE_VERSION_MINOR "10")
-SET(CPACK_PACKAGE_VERSION_PATCH "0")
+SET(CPACK_PACKAGE_VERSION_MINOR "11")
+SET(CPACK_PACKAGE_VERSION_PATCH "dev")
SET(CPACK_PACKAGE_NAME "accel-ppp")
SET(CPACK_PACKAGE_CONTACT "Dmitry Kozlov <xeb@mail.ru>")
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index 858f053..e0e3393 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")