|
|
@@ -25,15 +25,15 @@
|
|
|
|
|
|
# package information
|
|
|
Name: monit
|
|
|
-Summary: Service monitoring daemon
|
|
|
+Summary: Service Monitoring Daemon
|
|
|
URL: http://www.tildeslash.com/monit/
|
|
|
-Vendor: Jan-Henrik Haukeland and other contributors
|
|
|
+Vendor: Jan-Henrik Haukeland et al.
|
|
|
Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EVAL]
|
|
|
Group: System
|
|
|
License: GPL
|
|
|
Version: 3.2
|
|
|
-Release: 20030507
|
|
|
+Release: 20030508
|
|
|
|
|
|
# package options
|
|
|
%option with_ssl no
|
|
|
@@ -62,19 +62,21 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
- %patch0 -p0
|
|
|
+ %patch -p0
|
|
|
%{l_shtool} subst \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
- configure \
|
|
|
- files.c \
|
|
|
- monit.1
|
|
|
+ files.c monit.1
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;piddir=;dummy=;' \
|
|
|
+ configure
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/fsl-config --all --cflags`" \
|
|
|
- CPPFLAGS="%{l_cppflags} `%{l_prefix}/bin/fsl-config --all --cflags`" \
|
|
|
+ CFLAGS="%{l_cflags -O}" \
|
|
|
+ CPPFLAGS="%{l_cppflags}" \
|
|
|
LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/fsl-config --all --ldflags`" \
|
|
|
LIBS="`%{l_prefix}/bin/fsl-config --all --libs`" \
|
|
|
+ piddir="%{l_prefix}/var/monit" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
%if "%{with_ssl}" == "yes"
|
|
|
@@ -86,10 +88,7 @@ AutoReqProv: no
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
- %{l_shtool} subst -s \
|
|
|
- -e "s;^\(DESTDIR[ ]*=\).*$;\1 $RPM_BUILD_ROOT;" \
|
|
|
- Makefile
|
|
|
- %{l_make} %{l_mflags} install
|
|
|
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|
|
|
@@ -110,7 +109,7 @@ AutoReqProv: no
|
|
|
%{SOURCE monitrc} $RPM_BUILD_ROOT%{l_prefix}/etc/monit/
|
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 700 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var/monit/log
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/monit
|
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
'%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/monit/*' \
|