summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-20 14:30:13 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-20 14:30:13 +0400
commit799b6ad6d23e9bc32e6af180b6924d30ecd67a60 (patch)
treec17501cfa0a3647d536544354e6b571487d21e3e /cmake
parent8d9a9bda82b6aaea652e0485e75adad035e28d51 (diff)
downloadaccel-ppp-799b6ad6d23e9bc32e6af180b6924d30ecd67a60.tar.gz
accel-ppp-799b6ad6d23e9bc32e6af180b6924d30ecd67a60.zip
cmake: restore Debian6 specific install rules
Diffstat (limited to 'cmake')
-rw-r--r--cmake/debian/debian.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index 5ba44c8..c02a4a4 100644
--- a/cmake/debian/debian.cmake
+++ b/cmake/debian/debian.cmake
@@ -27,7 +27,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)