[icinga-checkins] icinga.org: icinga-api/master: mark as deprecated, standalone project

git at icinga.org git at icinga.org
Tue Nov 15 16:36:51 CET 2011


Module: icinga-api
Branch: master
Commit: 9b0ad36fd640ba812beec4f5397fb3246bfd1aed
URL:    https://git.icinga.org/?p=icinga-api.git;a=commit;h=9b0ad36fd640ba812beec4f5397fb3246bfd1aed

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Nov 15 16:36:19 2011 +0100

mark as deprecated, standalone project

add spec file for further playground.

---

 Makefile.in     |    8 ++++-
 README          |   16 +++++++++
 icinga-api.spec |   92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 115 insertions(+), 1 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index c7c1fa8..cc472ab 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,3 +1,8 @@
+###############################
+# Global
+###############################
+ICINGA_PHPAPI_VERSION=1.5.0
+
 CC=@CC@
 CFLAGS=@CFLAGS@ @DEFS@
 LDFLAGS=@LDFLAGS@ @LIBS@
@@ -19,7 +24,8 @@ WEB_USER=@web_user@
 WEB_GROUP=@web_group@
 
 none:
-	@echo "Please supply a command line argument (i.e. 'make install')."
+	@printf "Please supply a command line argument (i.e. 'make install').\n\n"
+	@printf "Generic targets: install, clean, distclean\n\n"
 
 all api:
 
diff --git a/README b/README
new file mode 100644
index 0000000..6f4e34c
--- /dev/null
+++ b/README
@@ -0,0 +1,16 @@
+Icinga PHP API
+==============
+
+This project has been deprecated from usage with Icinga Web, now using
+an internal database abstraction layer.
+
+The Icinga API is mainly an abstracted database abstraction layer written
+in PHP. It adds it's own objectorientied oci8 wrapper, because php's oci
+is totally broken.
+
+If you wanna maintain this project, or send patches, please refer to
+icinga-devel at lists.sourceforge.net or https://dev.icinga.org
+
+This project will be kept alive as long as there's the need to, but
+as of 1.5.0 independant of the official release tree. It's being shipped
+as seperated package and got it's own spec file for future reference.
diff --git a/icinga-api.spec b/icinga-api.spec
new file mode 100644
index 0000000..8ddf014
--- /dev/null
+++ b/icinga-api.spec
@@ -0,0 +1,92 @@
+##############################
+# icinga-api.spec
+##############################
+
+%define logdir %{_localstatedir}/log/icinga
+
+%if "%{_vendor}" == "suse"
+%define apacheconfdir  %{_sysconfdir}/apache2/conf.d
+%define apacheuser wwwrun
+%define apachegroup wwwrun
+%endif
+%if "%{_vendor}" == "redhat"
+%define apacheconfdir  %{_sysconfdir}/httpd/conf.d
+%define apacheuser apache
+%define apachegroup apache
+%endif
+
+Summary: Open Source host, service and network monitoring program
+Name: icinga-phpapi
+Version: 1.5.0
+Release: 1%{?dist}
+License: GPLv2
+Group: Applications/System
+URL: http://www.icinga.org/
+
+Source0: icinga-api-1.5.0.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Requires: php
+#Requires: icinga
+
+##############################
+%description
+##############################
+
+Icinga PHP API
+
+##############################
+%prep
+##############################
+
+%setup -n icinga-api-%{version}
+
+##############################
+%build
+##############################
+
+%configure \
+    --datadir="%{_datadir}" \
+    --datarootdir="%{_datadir}" \
+    --localstatedir="%{_localstatedir}/icinga" \
+    --sysconfdir="%{_sysconfdir}/icinga" \
+    --with-command-user="icinga" \
+    --with-command-group="icingacmd" \
+    --with-icinga-user= %{apacheuser} \
+    --with-icinga-group=%{apachegroup} \
+    --with-httpd-conf=%{apacheconfdir} \
+    --with-init-dir=%{_initrddir} \
+    --with-phpapi-log-dir=%{logdir}/api \
+    --with-phpapi-ext-cmd-dir=%{_localstatedir}/icinga/rw/
+
+
+#%{__make} %{?_smp_mflags} all
+
+
+##############################
+%install
+##############################
+
+%{__rm} -rf %{buildroot}
+#%{__mkdir} -p %{buildroot}/%{apacheconfdir}
+%{__make} install \
+    DESTDIR="%{buildroot}" \
+    INSTALL_OPTS="" \
+    INSTALL_OPTS_WEB="" \
+    COMMAND_OPTS="" \
+    INIT_OPTS=""
+
+
+##############################
+%files
+##############################
+%defattr(-,icinga,icinga,-)
+%{_datadir}/icinga-api
+%attr(2775,icinga,icingacmd) %dir %{logdir}/api
+
+##############################
+%changelog
+##############################
+* Tue Nov 15 2011 Michael Friedrich <michael.friedrich at univie.ac.at) - 1.5.0-1
+- created for standalone
+





More information about the icinga-checkins mailing list