From 7cefb22751ddde881d2061efea3a4b26ea8e02c8 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 12 Aug 2010 04:09:47 -0500 Subject: [PATCH] Include /var/run/freeswitch and /var/log/freeswitch in RPM --- freeswitch.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/freeswitch.spec b/freeswitch.spec index eaf34fc89e..76f9df4fb9 100644 --- a/freeswitch.spec +++ b/freeswitch.spec @@ -35,6 +35,8 @@ %define prefix %{_prefix} %define sysconfdir /opt/freeswitch/conf %define _sysconfdir %{sysconfdir} +%define logfiledir /var/log/freeswitch +%define runtimedir /var/run/freeswitch Name: freeswitch Summary: FreeSWITCH open source telephony platform @@ -476,6 +478,8 @@ touch .noversion # Create a log dir %{__mkdir} -p %{buildroot}%{prefix}/log +%{__mkdir} -p %{buildroot}%{logfiledir} +%{__mkdir} -p %{buildroot}%{runtimedir} %ifos linux # Install init files @@ -554,7 +558,8 @@ fi %dir %attr(0750, freeswitch, daemon) %{prefix}/db %dir %attr(0750, freeswitch, daemon) %{prefix}/grammar %dir %attr(0750, freeswitch, daemon) %{prefix}/htdocs -%dir %attr(0750, freeswitch, daemon) %{prefix}/log +%dir %attr(0750, freeswitch, daemon) %{logfiledir} +%dir %attr(0750, freeswitch, daemon) %{runtimedir} %dir %attr(0750, freeswitch, daemon) %{prefix}/scripts # #################################### Config Directory Structure ################################################################