forked from dragonflydb/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(packaging): create deb packaging dragonflydb#249 (dragonflydb#313)
- Loading branch information
1 parent
0a1b5eb
commit 751bcb9
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ include_directories(helio) | |
|
||
add_subdirectory(helio) | ||
add_subdirectory(src) | ||
|
||
include(cmake/Packing.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Packages the dragonfly binary into a .deb package | ||
# Use this to generate .deb package from build directory | ||
# cpack -G DEB | ||
# | ||
# Resulting packages can be found under _packages/ | ||
|
||
set(CPACK_PACKAGE_NAME "dragonflydb" | ||
CACHE STRING "dragonflydb" | ||
) | ||
|
||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A modern replacement for Redis and Memcached" | ||
CACHE STRING "A modern replacement for Redis and Memcached" | ||
) | ||
|
||
set(CPACK_PACKAGE_VENDOR "DragonflyDB") | ||
|
||
set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_SOURCE_DIR}/_packages") | ||
|
||
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/share/dragonfly") | ||
|
||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) | ||
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) | ||
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) | ||
|
||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "DragonflyDB maintainers") | ||
|
||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") | ||
|
||
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE) | ||
|
||
set(CPACK_DEB_COMPONENT_INSTALL YES) | ||
|
||
install(TARGETS dragonfly DESTINATION . COMPONENT dragonfly) | ||
|
||
set(CPACK_COMPONENTS_ALL dragonfly) | ||
|
||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters