mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
When generating an RPM, attempt to exclude system directories
This commit is contained in:
parent
6fe678fe84
commit
eeaac4e78c
@ -87,5 +87,14 @@ if(UNIX)
|
|||||||
set(CPACK_RPM_PACKAGE_GROUP "Applications/Internet")
|
set(CPACK_RPM_PACKAGE_GROUP "Applications/Internet")
|
||||||
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
|
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
|
||||||
|
|
||||||
|
# Exclude system directories
|
||||||
|
if(CPACK_GENERATOR STREQUAL "RPM")
|
||||||
|
execute_process(
|
||||||
|
COMMAND rpm -ql filesystem
|
||||||
|
COMMAND tr \n \;
|
||||||
|
OUTPUT_VARIABLE CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
|
||||||
|
ERROR_QUIET)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user