summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-20 12:18:43 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-20 12:18:43 +0400
commitc317ff519717c5c9f0513b85bb7d10ba084c74e9 (patch)
tree82735ec4d11a063d373f16d2f88a3a3ca5b23228
parent0bf9ca6351598bb1302e8a5b787c1eb309f1e752 (diff)
downloadaccel-ppp-c317ff519717c5c9f0513b85bb7d10ba084c74e9.tar.gz
accel-ppp-c317ff519717c5c9f0513b85bb7d10ba084c74e9.zip
cmake: restore Debian6 specific install rules
-rw-r--r--cmake/debian/debian.cmake46
1 files changed, 21 insertions, 25 deletions
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index 5ba44c88..8cf7aac0 100644
--- a/cmake/debian/debian.cmake
+++ b/cmake/debian/debian.cmake
@@ -2,32 +2,28 @@ SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME})
if (BUILD_DRIVER_ONLY)
- if (BUILD_PPTP_DRIVER)
- SET(CPACK_PACKAGE_VERSION_MAJOR "0")
- SET(CPACK_PACKAGE_VERSION_MINOR "8")
- SET(CPACK_PACKAGE_VERSION_PATCH "5")
- SET(CPACK_PACKAGING_INSTALL_PREFIX "/")
- SET(CPACK_PACKAGE_NAME "accel-pptp-kmod")
- SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-pptp kernel module")
- SET(CPACK_DEBIAN_PACKAGE_DEPENDS "")
- SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian-kmod/postinst")
- #INSTALL(DIRECTORY lib/modules/${DEBIAN_KDIR}/extra)
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/driver/driver/pptp.ko DESTINATION lib/modules/${DEBIAN_KDIR}/extra)
- #SET(CPACK_DEBIAN_PACKAGE_DEPENDS "linux-image (= ${LINUX_IMAGE})")
- endif (BUILD_PPTP_DRIVER)
-
- 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_DEBIAN_PACKAGE_DEPENDS "")
- 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)
+ SET(CPACK_PACKAGE_VERSION_MAJOR "0")
+ SET(CPACK_PACKAGE_VERSION_MINOR "8")
+ SET(CPACK_PACKAGE_VERSION_PATCH "5")
+ SET(CPACK_PACKAGING_INSTALL_PREFIX "/")
+ SET(CPACK_PACKAGE_NAME "accel-pptp-kmod")
+ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "accel-pptp kernel module")
+ SET(CPACK_DEBIAN_PACKAGE_DEPENDS "")
+ SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian-kmod/postinst")
+ #INSTALL(DIRECTORY lib/modules/${DEBIAN_KDIR}/extra)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/driver/driver/pptp.ko DESTINATION lib/modules/${DEBIAN_KDIR}/extra)
+ #SET(CPACK_DEBIAN_PACKAGE_DEPENDS "linux-image (= ${LINUX_IMAGE})")
else (BUILD_DRIVER_ONLY)
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/conffiles")
- INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pppd/accel-ppp.conf DESTINATION /etc RENAME accel-ppp.conf.dist)
- INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-init DESTINATION /etc/init.d RENAME accel-ppp)
- INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-default DESTINATION /etc/default RENAME accel-ppp)
+ if (CPACK_TYPE STREQUAL Debian7)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pppd/accel-ppp.conf DESTINATION /etc RENAME accel-ppp.conf.dist)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-init DESTINATION /etc/init.d RENAME accel-ppp)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-default DESTINATION /etc/default RENAME accel-ppp)
+ else (CPACK_TYPE STREQUAL Debian7)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pppd/accel-ppp.conf DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc RENAME accel-ppp.conf.dist)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-init DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/init.d RENAME accel-ppp)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-ppp-default DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/default RENAME accel-ppp)
+ endif (CPACK_TYPE STREQUAL Debian7)
+
endif (BUILD_DRIVER_ONLY)