summaryrefslogtreecommitdiff
path: root/cmake/cpack.cmake
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-15 14:10:53 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-15 14:10:53 +0300
commitefd1a045ded13cc50e20f0125118139a36df6ff2 (patch)
treee4aec74586bc37ccd195737013ed1666a180bc72 /cmake/cpack.cmake
parentd423bcad1a9f321c38c707232a625de856b04bc4 (diff)
downloadaccel-ppp-efd1a045ded13cc50e20f0125118139a36df6ff2.tar.gz
accel-ppp-efd1a045ded13cc50e20f0125118139a36df6ff2.zip
cmake: added centos support
Diffstat (limited to 'cmake/cpack.cmake')
-rw-r--r--cmake/cpack.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake
index 692fbf7c..412eadff 100644
--- a/cmake/cpack.cmake
+++ b/cmake/cpack.cmake
@@ -32,4 +32,12 @@ IF(CPACK_TYPE STREQUAL Debian8)
INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/debian/debian.cmake)
ENDIF(CPACK_TYPE STREQUAL Debian8)
+IF(CPACK_TYPE STREQUAL Centos7)
+ SET(CPACK_RPM_PACKAGE_LICENSE "GPL")
+ SET(CPACK_RPM_PACKAGE_URL "http://accel-ppp.org")
+ SET(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/sbin")
+ SET(CPACK_RPM_PACKAGE_REQUIRES "glibc >= 2.17, openssl-libs >= 1.0.2k, pcre >= 8.32")
+ INCLUDE(${CMAKE_HOME_DIRECTORY}/cmake/centos/centos.cmake)
+ENDIF()
+
INCLUDE(CPack)