update install and spec file

This commit is contained in:
Justin Hammond 2015-10-18 23:32:02 +08:00
parent e6cbeaa387
commit 4e9483b4df
2 changed files with 7 additions and 4 deletions

View file

@ -41,9 +41,9 @@ set_target_properties(LMBd PROPERTIES OUTPUT_NAME LMBd)
include(GNUInstallDirs)
install(TARGETS LMBd
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(TARGETS LMBd RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES config/LMBd.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})
install(FILES scripts/zabbix_stats.cfg DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})
install(FILES scripts/zabbix_stats.py DESTINATION ${CMAKE_INSTALL_BINDIR})

3
dist/LMBd.spec vendored
View file

@ -29,6 +29,9 @@ make install DESTDIR=${RPM_BUILD_ROOT} && cd ..
%files
%defattr(-,root,root,-)
%{_prefix}/bin/LMBd
%{_prefix}/bin/zabbix_stats.py
%config /etc/LMBd.conf
%config /etc/zabbix_stats.cfg
#%doc README
#%config /etc/ozwwebapp/*