]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- wtf? revert 1.175. if you don't like it, discuss/report bug first, or build with...
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 7 Feb 2012 12:27:42 +0000 (12:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios.spec -> 1.178

nagios.spec

index 5dd49683577d586de2b9632c6406cdaf8a4f99f0..2f17833df8d5fb44e00a0c437ad8b6458e2a6ea1 100644 (file)
@@ -216,7 +216,8 @@ Este pacote contém arquivos de cabeçalho usados no desenvolvimento de
 aplicativos para o Nagios.
 
 %prep
-%setup -q -a4 -n %{name}
+%setup -qc -a4
+mv %{name}/* .
 %undos cgi/*.c
 %undos include/*.h
 %undos base/*
@@ -245,6 +246,10 @@ sed -i -e '
        s,".*/libexec/eventhandlers,"%{_libdir}/%{name}/eventhandlers,
 ' $(find contrib/eventhandlers -type f)
 
+%{__sed} -i -e '
+       s,/usr/local/nagios/var/,/var/log/%{name}/,g
+' p1.pl
+
 sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE1} > apache.conf
 sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE5} > lighttpd.conf
 
@@ -289,11 +294,16 @@ cd ..
        --with-checkresult-dir=%{_var}/spool/%{name}/checkresults \
        --with-ping_command='/bin/ping -n %%s -c %%d' \
        %{!?with_gd:--disable-statusmap --disable-trends} \
+       %{?with_epn:--enable-embedded-perl --with-perlcache} \
        %{?with_tests:--enable-libtap} \
        --enable-event-broker
 
 %{__make} all
 
+%if %{with epn}
+%{__make} -C contrib mini_epn
+%endif
+
 %{?with_tests:%{__make} test}
 
 %install
@@ -315,6 +325,12 @@ cp -p include/*.h  $RPM_BUILD_ROOT%{_includedir}/%{name}
        INIT_OPTS="" \
        COMMAND_OPTS=""
 
+%if %{with epn}
+mv $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/%{name}}/p1.pl
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p contrib/mini_epn $RPM_BUILD_ROOT%{_bindir}
+%endif
+
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
@@ -476,6 +492,12 @@ done
 
 %{_examplesdir}/%{name}-%{version}
 
+# epn
+%if %{with epn}
+%attr(755,root,root) %{_libdir}/%{name}/p1.pl
+%attr(755,root,root) %{_bindir}/mini_epn
+%endif
+
 %files common
 %defattr(644,root,root,755)
 %attr(750,root,nagcmd) %dir %{_sysconfdir}
This page took 0.243012 seconds and 4 git commands to generate.