From efa760a3fa2e66c4e14b60ef3ae16e6d279ffb7d Mon Sep 17 00:00:00 2001 From: clipo1979 Date: Sun, 8 Feb 2015 13:07:53 +0000 Subject: [PATCH 1/4] Create zoneminder-tmpfiles.conf.in --- misc/zoneminder-tmpfiles.conf.in | 1 + 1 file changed, 1 insertion(+) create mode 100644 misc/zoneminder-tmpfiles.conf.in diff --git a/misc/zoneminder-tmpfiles.conf.in b/misc/zoneminder-tmpfiles.conf.in new file mode 100644 index 000000000..3d67f0eba --- /dev/null +++ b/misc/zoneminder-tmpfiles.conf.in @@ -0,0 +1 @@ +d @ZM_RUNDIR@ 0755 apache apache From 6c86811ff09924565da6a159b79406b038f4b83f Mon Sep 17 00:00:00 2001 From: clipo1979 Date: Sun, 8 Feb 2015 13:09:01 +0000 Subject: [PATCH 2/4] Update CMakeLists.txt --- misc/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index c09f630e0..1b3bd7c5a 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -7,6 +7,7 @@ configure_file(syslog.conf.in "${CMAKE_CURRENT_BINARY_DIR}/syslog.conf" @ONLY) configure_file(com.zoneminder.systemctl.policy.in "${CMAKE_CURRENT_BINARY_DIR}/com.zoneminder.systemctl.policy" @ONLY) configure_file(com.zoneminder.systemctl.rules.in "${CMAKE_CURRENT_BINARY_DIR}/com.zoneminder.systemctl.rules" @ONLY) configure_file(zoneminder.service.in "${CMAKE_CURRENT_BINARY_DIR}/zoneminder.service" @ONLY) +configure_file(zoneminder-tmpfiles.conf.in "${CMAKE_CURRENT_BINARY_DIR}/zoneminder-tmpfiles.conf" @ONLY) # Do not install the misc files by default #install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apache.conf" "${CMAKE_CURRENT_BINARY_DIR}/logrotate.conf" "${CMAKE_CURRENT_BINARY_DIR}/syslog.conf" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/misc") From 33fef4223333dc19725ff2bfcc8058d46b74b2b5 Mon Sep 17 00:00:00 2001 From: clipo1979 Date: Sun, 8 Feb 2015 16:11:07 +0000 Subject: [PATCH 3/4] Update zoneminder-tmpfiles.conf.in --- misc/zoneminder-tmpfiles.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/zoneminder-tmpfiles.conf.in b/misc/zoneminder-tmpfiles.conf.in index 3d67f0eba..8f55ce295 100644 --- a/misc/zoneminder-tmpfiles.conf.in +++ b/misc/zoneminder-tmpfiles.conf.in @@ -1 +1 @@ -d @ZM_RUNDIR@ 0755 apache apache +d @ZM_RUNDIR@ 0755 @WEB_USER@ @WEB_GROUP@ From 0c257405b06c9f9eb0215a88c271934c0ed4ef5b Mon Sep 17 00:00:00 2001 From: clipo1979 Date: Sun, 8 Feb 2015 16:22:19 +0000 Subject: [PATCH 4/4] Update Makefile.am --- misc/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/Makefile.am b/misc/Makefile.am index b854d66f6..5578e4373 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = \ apache.conf.in \ logrotate.conf.in \ syslog.conf.in \ + zoneminder-tmpfiles.conf.in \ zoneminder.service.in \ com.zoneminder.systemctl.policy.in \ com.zoneminder.systemctl.rules.in