hi community,

i need to install init.d script along in my rpm. as I see in spec file
simple:

install(FILES ${CMAKE_SOURCE_DIR}/scripts/${PROJECT_NAME} DESTINATION
/etc/init.d PERMISSIONS
        OWNER_WRITE OWNER_READ OWNER_EXECUTE
        GROUP_READ GROUP_EXECUTE
        WORLD_READ WORLD_EXECUTE)

works fine.

but it adds %config for some unknown reason in spec:

%config "/etc/init.d/cacheproxyd"


I install my config file similar way:

install(FILES ${CMAKE_SOURCE_DIR}/conf/static.conf DESTINATION conf PERMISSIONS
        OWNER_WRITE OWNER_READ OWNER_EXECUTE
        GROUP_READ GROUP_EXECUTE
        WORLD_READ WORLD_EXECUTE)

but it results differently in spec:

%dir "/box/services/cacheproxyd/conf"

"/box/services/cacheproxyd/conf/static.conf"


why is this difference?


also, i want to precreate some folders, like

install(DIRECTORY DESTINATION "/var/run/cacheproxyd" DIRECTORY_PERMISSIONS
        OWNER_WRITE OWNER_READ
        GROUP_WRITE GROUP_READ
        WORLD_WRITE WORLD_READ WORLD_EXECUTE)

but it also for some unknown reason results as %config:

%config "/var/run/cacheproxyd/"

i would expect just:

%dir "/box/services/cacheproxyd"


my cmake is 2.8.12, CentOS


Any insight will be appreciated.


-denis
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to