Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
icinga-web
> icinga-web.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File icinga-web.spec of Package icinga-web (Revision 31)
Currently displaying revision
31
,
show latest
# $Id$ # Authority: michael.friedrich(at)univie.ac.at # Upstream: The icinga devel team <icinga-devel at lists.sourceforge.net> # Needs icinga-api # ExcludeDist: el4 el3 %define pkgversion 1.5.0-beta %if "%{_vendor}" == "suse" %define apacheconfdir %{_sysconfdir}/apache2/conf.d %define apacheuser wwwrun %define apachegroup www BuildRequires: apache2 %endif %if "%{_vendor}" == "redhat" %define apacheconfdir %{_sysconfdir}/httpd/conf.d %define apacheuser apache %define apachegroup apache BuildRequires: httpd %endif Summary: Open Source host, service and network monitoring Web UI Name: icinga-web Version: 1.4.991 Release: 1 License: GPL Group: Applications/System URL: http://www.icinga.org/ Source0: icinga-web-%{pkgversion}.tar.bz2 Source1: icinga-web-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: php >= 5.2.3 php-pear php-gd php-xml php-ldap php-pdo php-dom php-spl php-xsl php-mysql pcre >= 7.6 icinga-api BuildRequires: mysql-client BuildRequires: phing Requires: php >= 5.2.3 Requires: php-pear Requires: php-gd Requires: php-xml Requires: php-ldap Requires: php-pdo Requires: php-dom Requires: php-spl Requires: php-xsl Requires: php-mysql Requires: pcre >= 7.6 Requires: mysql-client Requires: icinga-api Requires: python Requires: perl AutoReqProv: off BuildArch: noarch ############################## %description Icinga Webinterface for Icinga Core, requires Icinga API. ############################## %prep ############################## %setup -q -n %{name}-%{pkgversion} ############################## %build ############################## # before we start, make sure that $(MAKE) fix-priv fix-libs will be kicked out # we'll apply that ourselves in %post # instead this is in make install - patch in the copying of etc/build.properties :D %{__perl} -pi -e ' s|\$\(MAKE\)\sfix-priv\sfix-libs|\$\(INSTALL\) -m 664 \$\(INSTALL_OPTS\) etc\/build\.properties \$\(DESTDIR\)\$\(prefix\)\/etc\/build\.properties|; ' Makefile.in %configure \ --prefix="%{_datadir}/icinga-web" \ --datadir="%{_datadir}/icinga-web" \ --datarootdir="%{_datadir}/icinga-web" \ --with-web-user='%{apacheuser}' \ --with-web-group='%{apacheuser}' \ --with-icinga-api='%{_datadir}/icinga/icinga-api' || cat config.log # --with-db-type, --with-db-host, --with-db-port, --with-db-name, --with-db-user, --with-db-pass # resolve possible wrong files for makefile #%{__make} devclean ############################## %install ############################## %{__rm} -rf %{buildroot} %{__make} install \ DESTDIR="%{buildroot}" \ INSTALL_OPTS="" \ INSTALL_OPTS_CACHE="" \ INSTALL_OPTS_WEB="" \ COMMAND_OPTS="" \ INIT_OPTS="" ############################## %pre ############################## #uncomment if building from git #%{__rm} -rf %{buildroot}%{_datadir}/icinga-web/.git ############################## %preun ############################## #uncomment if having problems with cache dir #%{__rm} -rf %{buildroot}%{_datadir}/icinga-web/app/cache ############################## %post ############################## ### apply fixes after install #mkdir %{_datadir}/icinga-web/app/cache ### fix-privs taken from Makefile.in chown -R %{apacheuser}.%{apachegroup} \ %{_datadir}/icinga-web/app/cache \ %{_datadir}/icinga-web/app/data/log chmod -R 775 %{_datadir}/icinga-web/app/cache chmod +x \ %{_datadir}/icinga-web/bin/agavi \ %{_datadir}/icinga-web/bin/create-rescuescheme.sh \ %{_datadir}/icinga-web/bin/doctrinemodels.php \ %{_datadir}/icinga-web/bin/phing \ %{_datadir}/icinga-web/bin/testdeps.php \ %{_datadir}/icinga-web/bin/loc-create-catalog.pl \ %{_datadir}/icinga-web/bin/loc-create-json.sh \ %{_datadir}/icinga-web/bin/loc-create-mo.sh \ %{_datadir}/icinga-web/bin/loc-merge-template.sh \ %{_datadir}/icinga-web/bin/rmtmp-files.sh ### fix-libs taken from Makefile.in ln -fs %{_datadir}/icinga-web/lib %{_datadir}/icinga-web/pub/js ln -fs %{_datadir}/icinga/icinga-api %{_datadir}/icinga-web/lib/ ############################## %files ############################## %defattr(755,root,root) %dir %{_datadir}/icinga-web %dir %{_datadir}/icinga-web/app %dir %{_datadir}/icinga-web/app/cache %dir %{_datadir}/icinga-web/app/cache/config %dir %{_datadir}/icinga-web/app/config %config(noreplace) %{_datadir}/icinga-web/app/config/translation.site.xml %config(noreplace) %{_datadir}/icinga-web/app/config/factories.site.xml %config(noreplace) %{_datadir}/icinga-web/app/config/icinga.site.xml %config(noreplace) %{_datadir}/icinga-web/app/config/databases.site.xml %config(noreplace) %{_datadir}/icinga-web/app/config/settings.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/Cronks/config/cronks.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/Cronks/config/module.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/Web/config/icinga-io.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/Web/config/module.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/Api/config/module.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/AppKit/config/auth.site.xml %config(noreplace) %{_datadir}/icinga-web/app/modules/AppKit/config/module.site.xml %config %{_datadir}/icinga-web/app/config/action_filters.xml %config %{_datadir}/icinga-web/app/config/autoload.xml %config %{_datadir}/icinga-web/app/config/compile.xml %config %{_datadir}/icinga-web/app/config/config_handlers.xml %config %{_datadir}/icinga-web/app/config/databases.xml %config %{_datadir}/icinga-web/app/config/factories.xml %config %{_datadir}/icinga-web/app/config/global_filters.xml %config %{_datadir}/icinga-web/app/config/icinga.xml %config %{_datadir}/icinga-web/app/config/logging.xml %config %{_datadir}/icinga-web/app/config/output_types.xml %config %{_datadir}/icinga-web/app/config/rbac_definitions.xml %config %{_datadir}/icinga-web/app/config/routing.xml %config %{_datadir}/icinga-web/app/config/schedules.xml %config %{_datadir}/icinga-web/app/config/settings.xml %config %{_datadir}/icinga-web/app/config/translation.xml %config %{_datadir}/icinga-web/app/config/validators.xml %config %{_datadir}/icinga-web/app/config/routing.modules.xml %{_datadir}/icinga-web/app/data %{_datadir}/icinga-web/app/lib %{_datadir}/icinga-web/app/modules %{_datadir}/icinga-web/app/templates %{_datadir}/icinga-web/app/config.php %{_datadir}/icinga-web/bin %{_datadir}/icinga-web/etc #%{_datadir}/icinga-web/etc/build.properties #%{_datadir}/icinga-web/etc/build.xml %{_datadir}/icinga-web/doc %{_datadir}/icinga-web/lib %{_datadir}/icinga-web/pub ############################## %changelog ############################## * Thu Mar 31 2011 Carsten Schoene <cs@linux-administrator.com> - 1.3.1-1 - update to release 1.3.1 * Wed Feb 16 2011 Carsten Schoene <cs@linux-administrator.com> - 1.3.0-1 - update to release 1.3.0 * Mon Oct 25 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.1-1 - update to release 1.2.1 * Wed Aug 18 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.3-1 - update to release 1.0.3 * Tue Jun 29 2010 Michael Friedrich <michael.friedrich@univie.ac.at> - 1.0.1-1 - updated for 1.0.1 * Fri Apr 16 2010 Michael Friedrich <michael.friedrich@univie.ac.at> - 0.9.1-1 - initial creation