diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-20 14:30:13 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-07-11 14:59:11 +0400 |
commit | 24dcdece7e41c8d104776e39a9ae8c69c058c5a1 (patch) | |
tree | 8e0bcc1cc8055f34bea37a5874089742d8e57876 /cmake | |
parent | 111e1beef442d0fa8ee9ff45db53999684a7f31a (diff) | |
download | accel-ppp-24dcdece7e41c8d104776e39a9ae8c69c058c5a1.tar.gz accel-ppp-24dcdece7e41c8d104776e39a9ae8c69c058c5a1.zip |
cmake: restore Debian6 specific install rules
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/debian/debian.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake index c4adbcab..040e07ca 100644 --- a/cmake/debian/debian.cmake +++ b/cmake/debian/debian.cmake @@ -16,7 +16,13 @@ if (BUILD_DRIVER_ONLY) 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) |