Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
OpenVISP
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
ovs.spec
@@ -6,7 +6,7 @@ %define serverroot %(/usr/sbin/apxs2 -q datadir 2>/dev/null || /usr/sbin/apxs2 -q PREFIX) %define cgi_dir %{serverroot}/cgi-bin %define css_dir %{serverroot}/htdocs/css - +%define css_path /css Name: ovs Summary: Mail & Courier Stats @@ -19,6 +19,7 @@ Source1: %{name}.init Source2: %{name}.logrotate Source3: %{name}.sysconfig +Patch0: %{name}-cgi.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: apache2-devel @@ -44,6 +45,7 @@ #------------------------------------------------------------------------------- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT %setup -n %{name}-%{version} +%patch0 #------------------------------------------------------------------------------- %build @@ -70,6 +72,9 @@ %{__install} -m 755 %{S:3} $RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %{__ln_s} -f ../../etc/init.d/%{name} $RPM_BUILD_ROOT%{_bindir}/rc%{name} +sed -i s#"@CACHDIR@"#"%{_localstatedir}/lib/%{name}"#g $RPM_BUILD_ROOT%{cgi_dir}/%{name}.cgi +sed -i s#"@CSSPATH@"#"%{css_path}"#g $RPM_BUILD_ROOT%{cgi_dir}/%{name}.cgi + #------------------------------------------------------------------------------- %pre #-------------------------------------------------------------------------------