rpm specfile - move tmpfile config under /usr/lib

This commit is contained in:
Andrew Bauer 2016-12-26 08:31:21 -06:00
parent eb0b85ec13
commit 0dd6f4916e
2 changed files with 2 additions and 2 deletions

View File

@ -82,6 +82,6 @@ if(ZM_TARGET_DISTRO STREQUAL "el6")
install(FILES zoneminder.sysvinit DESTINATION /etc/rc.d/init.d RENAME zoneminder PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
else(ZM_TARGET_DISTRO STREQUAL "el6")
install(FILES zoneminder.service DESTINATION /usr/lib/systemd/system PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
install(FILES zoneminder.tmpfiles DESTINATION /etc/tmpfiles.d RENAME zoneminder.conf PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
install(FILES zoneminder.tmpfiles DESTINATION /usr/lib/tmpfiles.d RENAME zoneminder.conf PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
endif(ZM_TARGET_DISTRO STREQUAL "el6")

View File

@ -250,7 +250,7 @@ rm -rf %{_docdir}/%{name}-%{version}
%endif
%if 0%{?with_init_systemd}
%config(noreplace) /etc/tmpfiles.d/zoneminder.conf
%{_tmpfilesdir}/zoneminder.conf
%{_unitdir}/zoneminder.service
%endif