summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-12-25 20:35:12 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-12-25 22:25:00 +0300
commitccaeb500e38d82c37568292d7850b66691793626 (patch)
treed74aee5c45f7b40ec7c35b9c7edeb71a2e60630d /cmake
parenta6da012c288e2759e8985482da397a8a4cd874b2 (diff)
downloadaccel-ppp-ccaeb500e38d82c37568292d7850b66691793626.tar.gz
accel-ppp-ccaeb500e38d82c37568292d7850b66691793626.zip
1.3.2 release
Diffstat (limited to 'cmake')
-rw-r--r--cmake/cpack.cmake6
-rw-r--r--cmake/debian/debian.cmake12
2 files changed, 9 insertions, 9 deletions
diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake
index b627b43b..c8aa4e02 100644
--- a/cmake/cpack.cmake
+++ b/cmake/cpack.cmake
@@ -2,7 +2,7 @@ INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "3")
-SET(CPACK_PACKAGE_VERSION_PATCH "1")
+SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_NAME "accel-pptp")
SET(CPACK_PACKAGE_CONTACT "Dmitry Kozlov <xeb@mail.ru>")
@@ -15,8 +15,8 @@ SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
#SET(CPACK_STRIP_FILES "usr/sbin/accel-pptpd")
#SET(CPACK_PACKAGE_EXECUTABLES "usr/sbin/accel-ppptp")
-IF(CMAKE_BUILD_TYPE STREQUAL Debian)
+IF(CPACK_TYPE STREQUAL Debian)
INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/debian/debian.cmake)
-ENDIF(CMAKE_BUILD_TYPE STREQUAL Debian)
+ENDIF(CPACK_TYPE STREQUAL Debian)
INCLUDE(CPack)
diff --git a/cmake/debian/debian.cmake b/cmake/debian/debian.cmake
index 8fe2be28..1e8f0b79 100644
--- a/cmake/debian/debian.cmake
+++ b/cmake/debian/debian.cmake
@@ -1,5 +1,5 @@
-SET(CPACK_PACKAGING_INSTALL_PREFIX "/")
-SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH})
+SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
+SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME})
if (BUILD_DRIVER_ONLY)
SET(CPACK_PACKAGE_NAME "accel-pptp-kmod")
@@ -9,9 +9,9 @@ if (BUILD_DRIVER_ONLY)
#SET(CPACK_DEBIAN_PACKAGE_DEPENDS "linux-image (= ${LINUX_IMAGE})")
else (BUILD_DRIVER_ONLY)
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.7), libssl0.9.8 (>= 0.9.8), libpcre3 (>= 7.6)")
- SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst")
+ 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-pptpd/accel-pptp.conf DESTINATION etc RENAME accel-pptp.conf.dist)
- INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-init DESTINATION etc/init.d RENAME accel-pptp)
- INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-default DESTINATION etc/default RENAME accel-pptp)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/accel-pptpd/accel-pptp.conf DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc RENAME accel-pptp.conf.dist)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-init DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/init.d RENAME accel-pptp)
+ INSTALL(FILES ${CMAKE_HOME_DIRECTORY}/contrib/debian/accel-pptp-default DESTINATION ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux/DEB/${CPACK_PACKAGE_FILE_NAME}/etc/default RENAME accel-pptp)
endif (BUILD_DRIVER_ONLY)