SPECS: nagios-fruity.spec - 1.0-beta2
glen
glen at pld-linux.org
Fri Sep 9 01:45:43 CEST 2005
Author: glen Date: Thu Sep 8 23:45:43 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 1.0-beta2
---- Files affected:
SPECS:
nagios-fruity.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/nagios-fruity.spec
diff -u SPECS/nagios-fruity.spec:1.5 SPECS/nagios-fruity.spec:1.6
--- SPECS/nagios-fruity.spec:1.5 Wed Jul 20 21:06:15 2005
+++ SPECS/nagios-fruity.spec Fri Sep 9 01:45:37 2005
@@ -3,15 +3,13 @@
Summary(pl): Narzędzie konfiguracyjne dla Nagiosa
Name: nagios-fruity
Version: 1.0
-%define _beta beta1
-%define _rc pl3
-Release: 0.%{_beta}.%{_rc}.1
+%define _beta beta2
+Release: 0.%{_beta}.1
Epoch: 0
License: GPL v2
Group: Applications/WWW
-Source0: http://dl.sourceforge.net/fruity/fruity-%{version}-%{_beta}-%{_rc}.tar.gz
-# Source0-md5: 5b0f6caa5a4377fb8da77fd18a70f29a
-Patch0: %{name}-indent.patch
+Source0: http://dl.sourceforge.net/fruity/fruity-%{version}-%{_beta}.tar.gz
+# Source0-md5: ead530130964ad3158d6cfb7824425ec
URL: http://fruity.sourceforge.net/
BuildRequires: rpmbuild(macros) >= 1.226
BuildRequires: sed >= 4.0
@@ -24,6 +22,7 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sysconfdir /etc/fruity
%define _appdir %{_datadir}/fruity
%description
@@ -33,8 +32,7 @@
Narzędzie konfiguracyjne dla Nagiosa.
%prep
-%setup -q -n fruity
-%patch0 -p1
+%setup -q -n fruity-%{version}-%{_beta}
rm -rf CVS
rm -rf config # no longer used
@@ -48,9 +46,9 @@
install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
cp -a *.php *.js $RPM_BUILD_ROOT%{_appdir}
-cp -a images includes modules output session sitedb style $RPM_BUILD_ROOT%{_appdir}
+cp -a images includes modules output sitedb style $RPM_BUILD_ROOT%{_appdir}
-cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/apache-fruity.conf
+cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
Alias /fruity %{_appdir}
<Location /fruity>
allow from all
@@ -60,13 +58,17 @@
EOF
sed -e "
-s,/usr/local/groundwork/fruity/logos,/usr/share/nagios/images/logos,
-s,/usr/local/groundwork/fruity,/usr/share/fruity,
+s,%{_prefix}/local/groundwork/fruity/logos,%{_datadir}/nagios/images/logos,
+s,%{_prefix}/local/groundwork/fruity,%{_datadir}/fruity,
s,sitedb_config\[.username.\].=.'root',sitedb_config['username'] = 'mysql',
" includes/config.inc.dist > $RPM_BUILD_ROOT%{_appdir}/includes/config.inc
rm -f $RPM_BUILD_ROOT%{_appdir}/includes/config.inc.dist
+# config
+mv -f $RPM_BUILD_ROOT%{_appdir}/includes/config.inc $RPM_BUILD_ROOT%{_sysconfdir}/fruity.php
+ln -s %{_sysconfdir}/fruity.php $RPM_BUILD_ROOT%{_appdir}/includes/config.inc
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -80,13 +82,13 @@
fi
%triggerin -- apache1 >= 1.3.33-2
-%apache_config_install -v 1 -c %{_sysconfdir}/apache-fruity.conf
+%apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
%triggerun -- apache1 >= 1.3.33-2
%apache_config_uninstall -v 1
%triggerin -- apache >= 2.0.0
-%apache_config_install -v 2 -c %{_sysconfdir}/apache-fruity.conf
+%apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
%triggerun -- apache >= 2.0.0
%apache_config_uninstall -v 2
@@ -94,7 +96,9 @@
%files
%defattr(644,root,root,755)
%doc INSTALL sqldata/*
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-fruity.conf
+%attr(750,root,http) %dir %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fruity.php
%{_appdir}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -103,6 +107,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2005/09/08 23:45:37 glen
+- 1.0-beta2
+
Revision 1.5 2005/07/20 19:06:15 glen
- Fruity 1.0 Beta 2 Patchlevel 3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nagios-fruity.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list