mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-31 01:44:29 +02:00
"%make" and "%makeinstall_std" macros does not exists in RHEL5, revert to
"make" and "make DESTDIR=%{buildroot} install" which are more compatible
This commit is contained in:
parent
dbff767f2d
commit
b5f0eef0f5
@ -30,12 +30,12 @@ or more often with heavy proxy usage.
|
|||||||
%build
|
%build
|
||||||
perl Makefile.PL DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log BINDIR=%{_sbindir} HTMLDIR=%{contentdir}/html/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 QUIET=yes
|
perl Makefile.PL DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log BINDIR=%{_sbindir} HTMLDIR=%{contentdir}/html/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 QUIET=yes
|
||||||
|
|
||||||
%make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%makeinstall_std
|
make DESTDIR=%{buildroot} install
|
||||||
install etc/* %{buildroot}%{_sysconfdir}/%{name}/
|
install etc/* %{buildroot}%{_sysconfdir}/%{name}/
|
||||||
install -d %{buildroot}%{_sysconfdir}/cron.daily
|
install -d %{buildroot}%{_sysconfdir}/cron.daily
|
||||||
echo -e "#!/bin/sh\n%{_sbindir}/squid-analyzer" > %{buildroot}%{_sysconfdir}/cron.daily/0%{name}
|
echo -e "#!/bin/sh\n%{_sbindir}/squid-analyzer" > %{buildroot}%{_sysconfdir}/cron.daily/0%{name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user